org.jibx.schema.validation
Class ProblemLocation

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

public class ProblemLocation
extends 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

Constructor Summary
ProblemLocation(IUnmarshallingContext ictx)
          Constructor.
 
Method Summary
 String getName()
          Get the element name.
 int jibx_getColumnNumber()
           
 String jibx_getDocumentName()
           
 int jibx_getLineNumber()
           
 void jibx_setSource(String name, int line, int column)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProblemLocation

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

Parameters:
ictx -
Method Detail

getName

public String getName()
Get the element name.

Returns:
name

jibx_setSource

public void jibx_setSource(String name,
                           int line,
                           int column)
Specified by:
jibx_setSource in interface ITrackSourceImpl

jibx_getColumnNumber

public int jibx_getColumnNumber()
Specified by:
jibx_getColumnNumber in interface ITrackSource

jibx_getDocumentName

public String jibx_getDocumentName()
Specified by:
jibx_getDocumentName in interface ITrackSource

jibx_getLineNumber

public int jibx_getLineNumber()
Specified by:
jibx_getLineNumber in interface ITrackSource


Copyright © 2005-2012 jibx.org. All Rights Reserved.