Package org.jibx.schema.validation
Class ProblemLocation
java.lang.Object
org.jibx.schema.validation.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 TypeMethodDescriptiongetName()
Get the element name.int
Get source document column number.Get source document name.int
Get source document line number.void
jibx_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 -
m_name
-
-
Constructor Details
-
ProblemLocation
Constructor. This initializes the location information from the context.- Parameters:
ictx
-
-
-
Method Details
-
getName
Get the element name.- Returns:
- name
-
jibx_setSource
Description copied from interface:ITrackSourceImpl
Set source document information.- Specified by:
jibx_setSource
in interfaceITrackSourceImpl
- Parameters:
name
- of source document, ornull
if noneline
- source document line number, or-1
if unknowncolumn
- source document column position, or-1
if unknown
-
jibx_getColumnNumber
public int jibx_getColumnNumber()Description copied from interface:ITrackSource
Get source document column number.- Specified by:
jibx_getColumnNumber
in interfaceITrackSource
- Returns:
- column number in source document, or
-1
if unknown
-
jibx_getDocumentName
Description copied from interface:ITrackSource
Get source document name.- Specified by:
jibx_getDocumentName
in interfaceITrackSource
- Returns:
- name given for source document, or
null
if none
-
jibx_getLineNumber
public int jibx_getLineNumber()Description copied from interface:ITrackSource
Get source document line number.- Specified by:
jibx_getLineNumber
in interfaceITrackSource
- Returns:
- line number in source document, or
-1
if unknown
-