public class ValidationEventLocatorImpl extends java.lang.Object implements 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(org.xml.sax.Locator loc)
Constructs an object from an org.xml.sax.Locator.
|
ValidationEventLocatorImpl(org.w3c.dom.Node _node)
Constructs an object that points to a DOM Node.
|
ValidationEventLocatorImpl(java.lang.Object _object)
Constructs an object that points to a JAXB content object.
|
ValidationEventLocatorImpl(org.xml.sax.SAXParseException e)
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
|
org.w3c.dom.Node |
getNode()
Return a reference to the DOM Node if available
|
java.lang.Object |
getObject()
Return a reference to the object in the Java content tree if available
|
int |
getOffset()
Return the byte offset if available
|
java.net.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(org.w3c.dom.Node _node)
Set the Node field on this event locator.
|
void |
setObject(java.lang.Object _object)
Set the Object field on this event locator.
|
void |
setOffset(int _offset)
Set the offset field on this event locator.
|
void |
setURL(java.net.URL _url)
Set the URL field on this event locator.
|
java.lang.String |
toString()
Returns a string representation of this object in a format
helpful to debugging.
|
public ValidationEventLocatorImpl()
public ValidationEventLocatorImpl(org.xml.sax.Locator loc)
loc - the SAX Locator object that will be used to populate this
event locator.java.lang.IllegalArgumentException - if the Locator is nullpublic ValidationEventLocatorImpl(org.xml.sax.SAXParseException e)
e - the SAXParseException object that will be used to populate this
event locator.java.lang.IllegalArgumentException - if the SAXParseException is nullpublic ValidationEventLocatorImpl(org.w3c.dom.Node _node)
_node - the DOM Node object that will be used to populate this
event locator.java.lang.IllegalArgumentException - if the Node is nullpublic ValidationEventLocatorImpl(java.lang.Object _object)
_object - the Object that will be used to populate this
event locator.java.lang.IllegalArgumentException - if the Object is nullpublic java.net.URL getURL()
ValidationEventLocatorgetURL in interface ValidationEventLocatorValidationEventLocator.getURL()public void setURL(java.net.URL _url)
_url - the urlpublic int getOffset()
ValidationEventLocatorgetOffset in interface ValidationEventLocatorValidationEventLocator.getOffset()public void setOffset(int _offset)
_offset - the offsetpublic int getLineNumber()
ValidationEventLocatorgetLineNumber in interface ValidationEventLocatorValidationEventLocator.getLineNumber()public void setLineNumber(int _lineNumber)
_lineNumber - the line numberpublic int getColumnNumber()
ValidationEventLocatorgetColumnNumber in interface ValidationEventLocatorValidationEventLocator.getColumnNumber()public void setColumnNumber(int _columnNumber)
_columnNumber - the column numberpublic java.lang.Object getObject()
ValidationEventLocatorgetObject in interface ValidationEventLocatorValidationEventLocator.getObject()public void setObject(java.lang.Object _object)
_object - the java content objectpublic org.w3c.dom.Node getNode()
ValidationEventLocatorgetNode in interface ValidationEventLocatorValidationEventLocator.getNode()public void setNode(org.w3c.dom.Node _node)
_node - the Nodepublic java.lang.String toString()
toString in class java.lang.ObjectObject.equals(Object)