|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--intradoc.common.ParseStringLocation
Used for parsing numbers and dates. Note that this class "knows" about the possible objects it will parse and internal information about how those objects are formatted. Although this means that this class may have to be extended in the future with more constants or attributes, it allows a cleaner usage when actually parsing and reporting errors.
| Field Summary | |
static short |
ERROR_EMPTY_STRING
|
static short |
ERROR_GENERAL
|
static short |
ERROR_INVALID_NUMBER
|
static short |
ERROR_NUMBER_NOT_IN_RANGE
|
static short |
ERROR_PATTERN_MISMATCH
|
static short |
ERROR_STRING_TOO_LONG
|
static short |
ERROR_SUCCESS
Possible error codes. |
static short |
ERROR_UNEXPECTED_STRING_END
|
static short |
ERROR_UNKNOWN_STRING
|
static short |
ERROR_UNSUPPORTED_FORMAT_SPECIFIER
|
java.lang.Object |
m_activeParsingObject
The current parsing object being used. |
java.lang.String |
m_elementLocation
Element part location state. |
java.lang.String |
m_errMsg
Error message. |
int |
m_errorIndex
Error index, if different from regular index. |
java.util.Vector |
m_failedParsingLocations
These are the ParseStringLocation objects that were used when the target object failed to parse under previous trials. |
int |
m_index
Current offset into string where we are doing our processing. |
boolean |
m_indexIsErrorOffset
Indicates whether index has meaning for error reports. |
java.lang.String |
m_objectPartLocation
General object location state. |
int |
m_state
Parsing error code. |
java.lang.String[] |
m_traceErrorStrings
Trace strings for error codes. |
| Constructor Summary | |
ParseStringLocation()
|
|
ParseStringLocation(int index)
|
|
| Method Summary | |
void |
clearError()
|
void |
copyErrorState(ParseStringLocation parseLocation)
|
ParseStringLocation |
createRetryCopy()
|
int |
determineErrorIndex()
|
java.lang.String |
getFirstErrorMessage()
|
ParseStringLocation |
getFirstParseError()
|
java.lang.String |
getStateTraceString()
|
void |
setErrorMessage(int index,
int state,
java.lang.String msg)
|
void |
setErrorState(int index,
int state)
|
ParseStringLocation |
shallowClone()
|
void |
shallowCopy(ParseStringLocation psl)
Parameter has object data copied into it. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final short ERROR_SUCCESS
public static final short ERROR_GENERAL
public static final short ERROR_PATTERN_MISMATCH
public static final short ERROR_INVALID_NUMBER
public static final short ERROR_NUMBER_NOT_IN_RANGE
public static final short ERROR_UNKNOWN_STRING
public static final short ERROR_UNSUPPORTED_FORMAT_SPECIFIER
public static final short ERROR_UNEXPECTED_STRING_END
public static final short ERROR_EMPTY_STRING
public static final short ERROR_STRING_TOO_LONG
public final java.lang.String[] m_traceErrorStrings
public int m_index
public int m_errorIndex
public boolean m_indexIsErrorOffset
public java.lang.String m_errMsg
public java.lang.String m_objectPartLocation
public java.lang.String m_elementLocation
public java.lang.Object m_activeParsingObject
public java.util.Vector m_failedParsingLocations
public int m_state
| Constructor Detail |
public ParseStringLocation()
public ParseStringLocation(int index)
| Method Detail |
public void setErrorState(int index,
int state)
public void setErrorMessage(int index,
int state,
java.lang.String msg)
public void copyErrorState(ParseStringLocation parseLocation)
public int determineErrorIndex()
public void clearError()
public ParseStringLocation getFirstParseError()
public java.lang.String getFirstErrorMessage()
public ParseStringLocation shallowClone()
public void shallowCopy(ParseStringLocation psl)
public ParseStringLocation createRetryCopy()
public java.lang.String getStateTraceString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
(c) 1996-2005 All rights reserved. Stellent, Inc. |