JAXB providers are allowed to use whatever class that implements the ValidationEventLocator interface. This class is just provided for a convenience.
javax.xml.bind.Validator, javax.xml.bind.ValidationEventHandler, javax.xml.bind.ValidationEvent, javax.xml.bind.ValidationEventLocator
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private int | |
| private Node | |
| private Object | |
| private int | |
| private URL |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ValidationEventLocatorImpl(Locator
the SAX Locator object that will be used to populate this
event locator. loc)Constructs an object from an org.xml.sax.Locator. |
| public | ValidationEventLocatorImpl(SAXParseException
the SAXParseException object that will be used to populate this
event locator. e)Constructs an object from the location information of a SAXParseException. |
| public | ValidationEventLocatorImpl(Node
the DOM Node object that will be used to populate this
event locator. _node)Constructs an object that points to a DOM Node. |
| public | ValidationEventLocatorImpl(Object
the Object that will be used to populate this
event locator. _object)Constructs an object that points to a JAXB content object. |
| Modifier and Type | Method and Description |
|---|---|
| public int | getColumnNumber()
Implements javax. |
| public int | getLineNumber()
Implements javax. |
| public Node | getNode()
Implements javax. |
| public Object | getObject()
Implements javax. |
| public int | getOffset()
Implements javax. |
| public URL | getURL()
Implements javax. |
| public void | setColumnNumber(int
the column number _columnNumber)Set the columnNumber field on this event locator. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | toString()
Overrides java. |
| private static URL |
| columnNumber | back to summary |
|---|---|
| private int columnNumber | |
| lineNumber | back to summary |
|---|---|
| private int lineNumber | |
| node | back to summary |
|---|---|
| private Node node | |
| object | back to summary |
|---|---|
| private Object object | |
| offset | back to summary |
|---|---|
| private int offset | |
| url | back to summary |
|---|---|
| private URL url | |
| ValidationEventLocatorImpl | back to summary |
|---|---|
| public ValidationEventLocatorImpl() Creates an object with all fields unavailable. | |
| ValidationEventLocatorImpl | back to summary |
|---|---|
| public ValidationEventLocatorImpl(Locator loc) Constructs an object from an org.xml.sax.Locator. The object's ColumnNumber, LineNumber, and URL become available from the values returned by the locator's getColumnNumber(), getLineNumber(), and getSystemId() methods respectively. Node, Object, and Offset are not available.
| |
| ValidationEventLocatorImpl | back to summary |
|---|---|
| public ValidationEventLocatorImpl(SAXParseException e) Constructs an object from the location information of a SAXParseException. The object's ColumnNumber, LineNumber, and URL become available from the values returned by the locator's getColumnNumber(), getLineNumber(), and getSystemId() methods respectively. Node, Object, and Offset are not available.
| |
| ValidationEventLocatorImpl | back to summary |
|---|---|
| public ValidationEventLocatorImpl(Node _node) Constructs an object that points to a DOM Node. The object's Node becomes available. ColumnNumber, LineNumber, Object, Offset, and URL are not available.
| |
| ValidationEventLocatorImpl | back to summary |
|---|---|
| public ValidationEventLocatorImpl(Object _object) Constructs an object that points to a JAXB content object. The object's Object becomes available. ColumnNumber, LineNumber, Node, Offset, and URL are not available.
| |
| getColumnNumber | back to summary |
|---|---|
| public int getColumnNumber() Implements javax. Doc from javax. Return the column number if available
| |
| getLineNumber | back to summary |
|---|---|
| public int getLineNumber() Implements javax. Doc from javax. Return the line number if available
| |
| getNode | back to summary |
|---|---|
| public Node getNode() Implements javax. Doc from javax. Return a reference to the DOM Node if available
| |
| getObject | back to summary |
|---|---|
| public Object getObject() Implements javax. Doc from javax. Return a reference to the object in the Java content tree if available
| |
| getOffset | back to summary |
|---|---|
| public int getOffset() Implements javax. Doc from javax. Return the byte offset if available
| |
| getURL | back to summary |
|---|---|
| public URL getURL() Implements javax. Doc from javax. Return the name of the XML source as a URL if available
| |
| setColumnNumber | back to summary |
|---|---|
| public void setColumnNumber(int _columnNumber) Set the columnNumber field on this event locator.
| |
| setLineNumber | back to summary |
|---|---|
| public void setLineNumber(int _lineNumber) Set the lineNumber field on this event locator.
| |
| setNode | back to summary |
|---|---|
| public void setNode(Node _node) Set the Node field on this event locator. Null values are allowed.
| |
| setObject | back to summary |
|---|---|
| public void setObject(Object _object) Set the Object field on this event locator. Null values are allowed.
| |
| setOffset | back to summary |
|---|---|
| public void setOffset(int _offset) Set the offset field on this event locator.
| |
| setURL | back to summary |
|---|---|
| public void setURL(URL _url) Set the URL field on this event locator. Null values are allowed.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this object in a format helpful to debugging.
| |
| toURL | back to summary |
|---|---|
| private static URL toURL(String systemId) Converts a system ID to an URL object. | |