Class ValidationEventLocatorImpl

java.lang.Object
jakarta.xml.bind.helpers.ValidationEventLocatorImpl
All Implemented Interfaces:
ValidationEventLocator

public class ValidationEventLocatorImpl extends Object implements ValidationEventLocator
Default implementation of the ValidationEventLocator interface.

Jakarta XML Binding providers are allowed to use whatever class that implements the ValidationEventLocator interface. This class is just provided for a convenience.

Since:
1.6, JAXB 1.0
Author:
  • Kohsuke Kawaguchi, Sun Microsystems, Inc.
See Also:
  • Constructor Details

    • ValidationEventLocatorImpl

      public ValidationEventLocatorImpl()
      Creates an object with all fields unavailable.
    • 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
    • ValidationEventLocatorImpl

      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
    • ValidationEventLocatorImpl

      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
    • ValidationEventLocatorImpl

      public ValidationEventLocatorImpl(Object _object)
      Constructs an object that points to a Jakarta XML Binding 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 Details