|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.xml.bind.helpers.ValidationEventLocatorImpl
public class ValidationEventLocatorImpl
Default implementation of a ValidationEventLocator
.
Constructor Summary | |
---|---|
ValidationEventLocatorImpl()
Creates a new instance of ValidationEventLocatorImpl . |
|
ValidationEventLocatorImpl(org.xml.sax.Locator pLocator)
Creates a new instance of ValidationEventLocatorImpl
by copying data from the given Locator . |
|
ValidationEventLocatorImpl(org.w3c.dom.Node pNode)
Creates a new instance of ValidationEventLocatorImpl
by setting the node property. |
|
ValidationEventLocatorImpl(java.lang.Object pObject)
Creates a new instance of ValidationEventLocatorImpl
by setting the object property. |
|
ValidationEventLocatorImpl(org.xml.sax.SAXParseException pException)
Creates a new instance of ValidationEventLocatorImpl
by copying data from the given SAXParseException . |
Method Summary | |
---|---|
int |
getColumnNumber()
Returns a column number related to the validation event, if available. |
int |
getLineNumber()
Returns a line number related to the validation event, if available. |
org.w3c.dom.Node |
getNode()
Returns a DOM node related to the validation event. |
java.lang.Object |
getObject()
Returns an object in the JAXB objects content tree related to the validation event. |
int |
getOffset()
Returns a byte offset related to the validation event, if available. |
java.net.URL |
getURL()
Returns a URL related to the validation event, if available. |
void |
setColumnNumber(int pColumnNumber)
Sets the column number. |
void |
setLineNumber(int pLineNumber)
Sets the line number. |
void |
setNode(org.w3c.dom.Node pNode)
Sets the node. |
void |
setObject(java.lang.Object pObject)
Sets the object. |
void |
setOffset(int pOffset)
Sets the offset. |
void |
setURL(java.net.URL pURL)
Sets the URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidationEventLocatorImpl()
Creates a new instance of ValidationEventLocatorImpl
.
public ValidationEventLocatorImpl(org.xml.sax.Locator pLocator)
Creates a new instance of ValidationEventLocatorImpl
by copying data from the given Locator
.
pLocator
- The SAX locator where to copy from.public ValidationEventLocatorImpl(org.w3c.dom.Node pNode)
Creates a new instance of ValidationEventLocatorImpl
by setting the node property.
pNode
- The node being referenced.public ValidationEventLocatorImpl(java.lang.Object pObject)
Creates a new instance of ValidationEventLocatorImpl
by setting the object property.
pObject
- The object being referenced.public ValidationEventLocatorImpl(org.xml.sax.SAXParseException pException)
Creates a new instance of ValidationEventLocatorImpl
by copying data from the given SAXParseException
.
pException
- The SAX exception where to copy from.Method Detail |
---|
public void setURL(java.net.URL pURL)
Sets the URL.
public java.net.URL getURL()
ValidationEventLocator
Returns a URL related to the validation event, if available.
For example, when parsing an InputSource
, this
might be the URL given by InputSource.getSystemId()
.
getURL
in interface ValidationEventLocator
public void setOffset(int pOffset)
Sets the offset.
public int getOffset()
ValidationEventLocator
Returns a byte offset related to the validation event, if
available. For example, when parsing an InputStream
,
this might be the position where the event occurred.
getOffset
in interface ValidationEventLocator
public void setLineNumber(int pLineNumber)
Sets the line number.
public int getLineNumber()
ValidationEventLocator
Returns a line number related to the validation event, if
available. For example, when parsing an InputStream
,
this might be the line, in which the event occurred.
getLineNumber
in interface ValidationEventLocator
public void setColumnNumber(int pColumnNumber)
Sets the column number.
public int getColumnNumber()
ValidationEventLocator
Returns a column number related to the validation event, if
available. For example, when parsing an InputStream
,
this might be the column, in which the event occurred.
getColumnNumber
in interface ValidationEventLocator
public void setObject(java.lang.Object pObject)
Sets the object.
public java.lang.Object getObject()
ValidationEventLocator
Returns an object in the JAXB objects content tree related to the validation event. Usually this is the invalid object or child object.
getObject
in interface ValidationEventLocator
public void setNode(org.w3c.dom.Node pNode)
Sets the node.
public org.w3c.dom.Node getNode()
ValidationEventLocator
Returns a DOM node related to the validation event. For example, this might be an element node with a missing attribute. It might as well be an attribute node with an invalid value.
getNode
in interface ValidationEventLocator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |