Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 6 |
|||||||||
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(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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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 nullMethod Detail |
---|
public URL getURL()
ValidationEventLocator
getURL
in interface ValidationEventLocator
ValidationEventLocator.getURL()
public void setURL(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 Object getObject()
ValidationEventLocator
getObject
in interface ValidationEventLocator
ValidationEventLocator.getObject()
public void setObject(Object _object)
_object
- the java content objectpublic Node getNode()
ValidationEventLocator
getNode
in interface ValidationEventLocator
ValidationEventLocator.getNode()
public void setNode(Node _node)
_node
- the Nodepublic String toString()
toString
in class Object
Object.equals(Object)
|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the