Package org.jibx.v2
Class ProblemLocation
java.lang.Object
org.jibx.v2.ProblemLocation
- All Implemented Interfaces:
ITrackSourceImpl,ITrackSource
Location of validation problem. An instance of this can be used in place of
an unmarshalled element in cases where the validation problem prevents the
creation of the element object.
TODO: move this out of the schema package, generalize
- Author:
- Dennis M. Sosnoski
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet source document column number.Get source document name.intGet source document line number.voidjibx_setSource(String name, int line, int column) Set source document information.
-
Field Details
-
m_document
-
m_line
private int m_line -
m_column
private int m_column
-
-
Constructor Details
-
ProblemLocation
Constructor. This initializes the location information from the context.- Parameters:
ictx-
-
-
Method Details
-
jibx_setSource
Description copied from interface:ITrackSourceImplSet source document information.- Specified by:
jibx_setSourcein interfaceITrackSourceImpl- Parameters:
name- of source document, ornullif noneline- source document line number, or-1if unknowncolumn- source document column position, or-1if unknown
-
jibx_getColumnNumber
public int jibx_getColumnNumber()Description copied from interface:ITrackSourceGet source document column number.- Specified by:
jibx_getColumnNumberin interfaceITrackSource- Returns:
- column number in source document, or
-1if unknown
-
jibx_getDocumentName
Description copied from interface:ITrackSourceGet source document name.- Specified by:
jibx_getDocumentNamein interfaceITrackSource- Returns:
- name given for source document, or
nullif none
-
jibx_getLineNumber
public int jibx_getLineNumber()Description copied from interface:ITrackSourceGet source document line number.- Specified by:
jibx_getLineNumberin interfaceITrackSource- Returns:
- line number in source document, or
-1if unknown
-