Home » xml-commons-external-1.4.01-src » javax » xml » bind » helpers » [javadoc | source]
javax.xml.bind.helpers
public class: ValidationEventLocatorImpl [javadoc | source]
java.lang.Object
   javax.xml.bind.helpers.ValidationEventLocatorImpl

All Implemented Interfaces:
    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.

Constructor:
 public ValidationEventLocatorImpl() 
 public ValidationEventLocatorImpl(Locator loc) 
    Constructs an object from an org.xml.sax.Locator. The object's ColumnNumber, LineNumber, and URL become available from the values returned by the locator's getColumnNumber(), getLineNumber(), and getSystemId() methods respectively. Node, Object, and Offset are not available.
    Parameters:
    loc - the SAX Locator object that will be used to populate this event locator.
    Throws:
    IllegalArgumentException - if the Locator is null
 public ValidationEventLocatorImpl(SAXParseException e) 
    Constructs an object from the location information of a SAXParseException. The object's ColumnNumber, LineNumber, and URL become available from the values returned by the locator's getColumnNumber(), getLineNumber(), and getSystemId() methods respectively. Node, Object, and Offset are not available.
    Parameters:
    e - the SAXParseException object that will be used to populate this event locator.
    Throws:
    IllegalArgumentException - if the SAXParseException is null
 public ValidationEventLocatorImpl(Node _node) 
    Constructs an object that points to a DOM Node. The object's Node becomes available. ColumnNumber, LineNumber, Object, Offset, and URL are not available.
    Parameters:
    _node - the DOM Node object that will be used to populate this event locator.
    Throws:
    IllegalArgumentException - if the Node is null
 public ValidationEventLocatorImpl(Object _object) 
    Constructs an object that points to a JAXB content object. The object's Object becomes available. ColumnNumber, LineNumber, Node, Offset, and URL are not available.
    Parameters:
    _object - the Object that will be used to populate this event locator.
    Throws:
    IllegalArgumentException - if the Object is null
Method from javax.xml.bind.helpers.ValidationEventLocatorImpl Summary:
getColumnNumber,   getLineNumber,   getNode,   getObject,   getOffset,   getURL,   setColumnNumber,   setLineNumber,   setNode,   setObject,   setOffset,   setURL,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.xml.bind.helpers.ValidationEventLocatorImpl Detail:
 public int getColumnNumber() 
 public int getLineNumber() 
 public Node getNode() 
 public Object getObject() 
 public int getOffset() 
 public URL getURL() 
 public  void setColumnNumber(int _columnNumber) 
    Set the columnNumber field on this event locator.
 public  void setLineNumber(int _lineNumber) 
    Set the lineNumber field on this event locator.
 public  void setNode(Node _node) 
    Set the Node field on this event locator. Null values are allowed.
 public  void setObject(Object _object) 
    Set the Object field on this event locator. Null values are allowed.
 public  void setOffset(int _offset) 
    Set the offset field on this event locator.
 public  void setURL(URL _url) 
    Set the URL field on this event locator. Null values are allowed.
 public String toString() 
    Returns a string representation of this object in a format helpful to debugging.