public class ValidationEventLocatorImpl extends Objectimplements ValidationEventLocator
JAXB providers are allowed to use whatever class that implements the ValidationEventLocator interface. This class is just provided for a convenience.
Validator,
ValidationEventHandler,
ValidationEvent,
ValidationEventLocator
| Constructor and Description |
|---|
ValidationEventLocatorImpl()
Creates an object with all fields unavailable.
|
ValidationEventLocatorImpl(Locator
Constructs an object from an org.xml.sax.Locator.
|
ValidationEventLocatorImpl(Node
Constructs an object that points to a DOM Node.
|
ValidationEventLocatorImpl(Object
Constructs an object that points to a JAXB content object.
|
ValidationEventLocatorImpl(SAXParseException
Constructs an object from the location information of a SAXParseException.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnNumber()
Return the column number if available
|
int |
getLineNumber()
Return the line number if available
|
Node |
getNode()
Return a reference to the DOM Node if available
|
Object |
getObject()
Return a reference to the object in the Java content tree if available
|
int |
getOffset()
Return the byte offset if available
|
URL |
getURL()
Return the name of the XML source as a URL if available
|
void |
setColumnNumber(int _columnNumber)
Set the columnNumber field on this event locator.
|
void |
setLineNumber(int _lineNumber)
Set the lineNumber field on this event locator.
|
void |
setNode(Node
Set the Node field on this event locator.
|
void |
setObject(Object
Set the Object field on this event locator.
|
void |
setOffset(int _offset)
Set the offset field on this event locator.
|
void |
setURL(URL
Set the URL field on this event locator.
|
String |
toString()
Returns a string representation of this object in a format helpful to debugging.
|
public ValidationEventLocatorImpl()
public ValidationEventLocatorImpl(Locatorloc)
loc - the SAX Locator object that will be used to populate this event locator.
IllegalArgumentException - if the Locator is null
public ValidationEventLocatorImpl(SAXParseExceptione)
e - the SAXParseException object that will be used to populate this event locator.
IllegalArgumentException - if the SAXParseException is null
public ValidationEventLocatorImpl(Node_node)
_node - the DOM Node object that will be used to populate this event locator.
IllegalArgumentException - if the Node is null
public ValidationEventLocatorImpl(Object_object)
_object - the Object that will be used to populate this event locator.
IllegalArgumentException - if the Object is null
public URLgetURL()
ValidationEventLocator
getURL in interface
ValidationEventLocator
ValidationEventLocator.getURL()
public void setURL(URL_url)
_url - the url
public int getOffset()
ValidationEventLocator
getOffset in interface
ValidationEventLocator
ValidationEventLocator.getOffset()
public void setOffset(int _offset)
_offset - the offset
public int getLineNumber()
ValidationEventLocator
getLineNumber in interface
ValidationEventLocator
ValidationEventLocator.getLineNumber()
public void setLineNumber(int _lineNumber)
_lineNumber - the line number
public int getColumnNumber()
ValidationEventLocator
getColumnNumber in interface
ValidationEventLocator
ValidationEventLocator.getColumnNumber()
public void setColumnNumber(int _columnNumber)
_columnNumber - the column number
public ObjectgetObject()
ValidationEventLocator
getObject in interface
ValidationEventLocator
ValidationEventLocator.getObject()
public void setObject(Object_object)
_object - the java content object
public NodegetNode()
ValidationEventLocator
getNode in interface
ValidationEventLocator
ValidationEventLocator.getNode()
public void setNode(Node_node)
_node - the Node
public StringtoString()
toString in class
Object
Object.equals(Object)