The ValidationEventLocator indicates where the ValidationEvent
occurred. Different fields will be set depending on the type of
validation that was being performed when the error or warning was detected.
For example, on-demand validation would produce locators that contained
references to objects in the Java content tree while unmarshal-time
validation would produce locators containing information appropriate to the
source of the XML data (file, url, Node, etc).
ValidationEvent
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the column number or -1 if unavailableReturn the column number if available |
| public int | |
| public Node | Returns: a reference to the DOM Node or null if unavailableReturn a reference to the DOM Node if available |
| public Object | Returns: a reference to the object in the Java content tree or null if unavailableReturn a reference to the object in the Java content tree if available |
| public int | Returns: the byte offset into the input source or -1 if unavailableReturn the byte offset if available |
| public URL | Returns: the name of the XML source as a URL or null if unavailableReturn the name of the XML source as a URL if available |
| getColumnNumber | back to summary |
|---|---|
| public int getColumnNumber() Return the column number if available
| |
| getLineNumber | back to summary |
|---|---|
| public int getLineNumber() Return the line number if available
| |
| getNode | back to summary |
|---|---|
| public Node getNode() Return a reference to the DOM Node if available
| |
| getObject | back to summary |
|---|---|
| public Object getObject() Return a reference to the object in the Java content tree if available
| |
| getOffset | back to summary |
|---|---|
| public int getOffset() Return the byte offset if available
| |
| getURL | back to summary |
|---|---|
| public URL getURL() Return the name of the XML source as a URL if available
| |