public class ValidationEventLocatorImpl extends 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(Locator loc)Constructs an object from an org.xml.sax.Locator. | 
| ValidationEventLocatorImpl(Node _node)Constructs an object that points to a DOM Node. | 
| ValidationEventLocatorImpl(Object _object)Constructs an object that points to a JAXB content object. | 
| ValidationEventLocatorImpl(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 | 
| 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 _node)Set the Node field on this event locator. | 
| void | setObject(Object _object)Set the Object field on this event locator. | 
| void | setOffset(int _offset)Set the offset field on this event locator. | 
| void | setURL(URL _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(Locator loc)
loc - the SAX Locator object that will be used to populate this
 event locator.IllegalArgumentException - if the Locator is nullpublic ValidationEventLocatorImpl(SAXParseException e)
e - the SAXParseException object that will be used to populate this
 event locator.IllegalArgumentException - if the SAXParseException is nullpublic ValidationEventLocatorImpl(Node _node)
_node - the DOM Node object that will be used to populate this
 event locator.IllegalArgumentException - if the Node is nullpublic ValidationEventLocatorImpl(Object _object)
_object - the Object that will be used to populate this
 event locator.IllegalArgumentException - if the Object is nullpublic URL getURL()
ValidationEventLocatorgetURL in interface ValidationEventLocatorValidationEventLocator.getURL()public void setURL(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 Object getObject()
ValidationEventLocatorgetObject in interface ValidationEventLocatorValidationEventLocator.getObject()public void setObject(Object _object)
_object - the java content objectpublic Node getNode()
ValidationEventLocatorgetNode in interface ValidationEventLocatorValidationEventLocator.getNode()public void setNode(Node _node)
_node - the Nodepublic String toString()
toString in class ObjectObject.equals(Object) Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2017, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.