org.jibx.v2
Class ProblemLocation

java.lang.Object
  extended by org.jibx.v2.ProblemLocation
All Implemented Interfaces:
ITrackSourceImpl, ITrackSource

public class ProblemLocation
extends java.lang.Object
implements ITrackSourceImpl

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
private  int m_column
           
private  java.lang.String m_document
           
private  int m_line
           
 
Constructor Summary
ProblemLocation(IUnmarshallingContext ictx)
          Constructor.
 
Method Summary
 int jibx_getColumnNumber()
          Get source document column number.
 java.lang.String jibx_getDocumentName()
          Get source document name.
 int jibx_getLineNumber()
          Get source document line number.
 void jibx_setSource(java.lang.String name, int line, int column)
          Set source document information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_document

private java.lang.String m_document

m_line

private int m_line

m_column

private int m_column
Constructor Detail

ProblemLocation

public ProblemLocation(IUnmarshallingContext ictx)
Constructor. This initializes the location information from the context.

Parameters:
ictx -
Method Detail

jibx_setSource

public void jibx_setSource(java.lang.String name,
                           int line,
                           int column)
Description copied from interface: ITrackSourceImpl
Set source document information.

Specified by:
jibx_setSource in interface ITrackSourceImpl
Parameters:
name - of source document, or null if none
line - source document line number, or -1 if unknown
column - 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 interface ITrackSource
Returns:
column number in source document, or -1 if unknown

jibx_getDocumentName

public java.lang.String jibx_getDocumentName()
Description copied from interface: ITrackSource
Get source document name.

Specified by:
jibx_getDocumentName in interface ITrackSource
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 interface ITrackSource
Returns:
line number in source document, or -1 if unknown


Project Web Site