|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
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 the ValidationEventLocator interface.
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 nullMethod Detail |
---|
public java.net.URL getURL()
ValidationEventLocator
getURL
in interface ValidationEventLocator
ValidationEventLocator.getURL()
public void setURL(java.net.URL _url)
_url
- the urlpublic int getOffset()
ValidationEventLocator
getOffset
in interface ValidationEventLocator
ValidationEventLocator.getOffset()
public void setOffset(int _offset)
_offset
- the offsetpublic int getLineNumber()
ValidationEventLocator
getLineNumber
in interface ValidationEventLocator
ValidationEventLocator.getLineNumber()
public void setLineNumber(int _lineNumber)
_lineNumber
- the line numberpublic int getColumnNumber()
ValidationEventLocator
getColumnNumber
in interface ValidationEventLocator
ValidationEventLocator.getColumnNumber()
public void setColumnNumber(int _columnNumber)
_columnNumber
- the column numberpublic java.lang.Object getObject()
ValidationEventLocator
getObject
in interface ValidationEventLocator
ValidationEventLocator.getObject()
public void setObject(java.lang.Object _object)
_object
- the java content objectpublic org.w3c.dom.Node getNode()
ValidationEventLocator
getNode
in interface ValidationEventLocator
ValidationEventLocator.getNode()
public void setNode(org.w3c.dom.Node _node)
_node
- the Nodepublic java.lang.String toString()
toString
in class java.lang.Object
Object.equals(Object)
|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |