|
Spec-Zone .ru
спецификации, руководства, описания, API
|
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.xml.bind.helpers.ValidationEventLocatorImpl
public class ValidationEventLocatorImpl extends Object implements ValidationEventLocator
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 and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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 null| Method Detail |
|---|
public URL getURL()
ValidationEventLocator
getURL in interface ValidationEventLocatorValidationEventLocator.getURL()public void setURL(URL _url)
_url - the urlpublic int getOffset()
ValidationEventLocator
getOffset in interface ValidationEventLocatorValidationEventLocator.getOffset()public void setOffset(int _offset)
_offset - the offsetpublic int getLineNumber()
ValidationEventLocator
getLineNumber in interface ValidationEventLocatorValidationEventLocator.getLineNumber()public void setLineNumber(int _lineNumber)
_lineNumber - the line numberpublic int getColumnNumber()
ValidationEventLocator
getColumnNumber in interface ValidationEventLocatorValidationEventLocator.getColumnNumber()public void setColumnNumber(int _columnNumber)
_columnNumber - the column numberpublic Object getObject()
ValidationEventLocator
getObject in interface ValidationEventLocatorValidationEventLocator.getObject()public void setObject(Object _object)
_object - the java content objectpublic Node getNode()
ValidationEventLocator
getNode in interface ValidationEventLocatorValidationEventLocator.getNode()public void setNode(Node _node)
_node - the Nodepublic String toString()
toString in class ObjectObject.equals(Object)
|
Java™ Platform Standard Ed. 7 DRAFT ea-b118 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 1993, 2010, Oracle Corporation. All rights reserved.