Top Description Inners Methods
org.glassfish.jaxb.core.v2.runtime.unmarshaller

public Interface LocatorEx

extends Locator
Known Direct Implementers
org.glassfish.jaxb.core.v2.runtime.unmarshaller.LocatorEx.Snapshot, org.glassfish.jaxb.runtime.v2.runtime.unmarshaller.LocatorExWrapper, org.glassfish.jaxb.core.unmarshaller.DOMScanner
Imports
java.net.URL, jakarta.xml.bind.ValidationEventLocator, org.xml.sax.Locator, org.w3c.dom.Node

Object that returns the current location that the org.glassfish.jaxb.core.v2.runtime.unmarshaller.XmlVisitor is parsing.
Author
Kohsuke Kawaguchi

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
LocatorEx.Snapshot

Immutable snapshot of a LocatorEx

Method Summary

Modifier and TypeMethod and Description
public ValidationEventLocator
getLocation()

Gets the current location in a ValidationEventLocator object.

Inherited from org.xml.sax.Locator:
getColumnNumbergetLineNumbergetPublicIdgetSystemId

Method Detail

getLocationback to summary
public ValidationEventLocator getLocation()

Gets the current location in a ValidationEventLocator object.

org.glassfish.jaxb.core.v2.runtime.unmarshaller back to summary

public final Class LocatorEx.Snapshot

extends Object
implements LocatorEx, ValidationEventLocator
Class Inheritance
  • java.lang.Object
  • org.glassfish.jaxb.core.v2.runtime.unmarshaller.LocatorEx.Snapshot
All Implemented Interfaces
jakarta.xml.bind.ValidationEventLocator, org.glassfish.jaxb.core.v2.runtime.unmarshaller.LocatorEx, org.xml.sax.Locator

Immutable snapshot of a LocatorEx

Field Summary

Modifier and TypeField and Description
private final int
private final int
private final Node
private final Object
private final int
private final String
private final String
private final URL

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
public int
public ValidationEventLocator
public Node
getNode()

Implements jakarta.xml.bind.ValidationEventLocator.getNode.

Return a reference to the DOM Node if available

public Object
getObject()

Implements jakarta.xml.bind.ValidationEventLocator.getObject.

Return a reference to the object in the Java content tree if available

public int
getOffset()

Implements jakarta.xml.bind.ValidationEventLocator.getOffset.

Return the byte offset if available

public String
getPublicId()

Implements org.xml.sax.Locator.getPublicId.

Return the public identifier for the current document event.

public String
getSystemId()

Implements org.xml.sax.Locator.getSystemId.

Return the system identifier for the current document event.

public URL
getURL()

Implements jakarta.xml.bind.ValidationEventLocator.getURL.

Return the name of the XML source as a URL if available

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

columnNumberback to summary
private final int columnNumber
lineNumberback to summary
private final int lineNumber
nodeback to summary
private final Node node
objectback to summary
private final Object object
offsetback to summary
private final int offset
publicIdback to summary
private final String publicId
systemIdback to summary
private final String systemId
urlback to summary
private final URL url

Constructor Detail

Snapshotback to summary
public Snapshot(LocatorEx loc)

Method Detail

getColumnNumberback to summary
public int getColumnNumber()

Implements org.xml.sax.Locator.getColumnNumber, jakarta.xml.bind.ValidationEventLocator.getColumnNumber.

Doc from jakarta.xml.bind.ValidationEventLocator.getColumnNumber.

Return the column number if available

Annotations
@Override
getLineNumberback to summary
public int getLineNumber()

Implements org.xml.sax.Locator.getLineNumber, jakarta.xml.bind.ValidationEventLocator.getLineNumber.

Doc from jakarta.xml.bind.ValidationEventLocator.getLineNumber.

Return the line number if available

Annotations
@Override
getLocationback to summary
public ValidationEventLocator getLocation()

Implements org.glassfish.jaxb.core.v2.runtime.unmarshaller.LocatorEx.getLocation.

Doc from org.glassfish.jaxb.core.v2.runtime.unmarshaller.LocatorEx.getLocation.

Gets the current location in a ValidationEventLocator object.

Annotations
@Override
getNodeback to summary
public Node getNode()

Implements jakarta.xml.bind.ValidationEventLocator.getNode.

Doc from jakarta.xml.bind.ValidationEventLocator.getNode.

Return a reference to the DOM Node if available

Annotations
@Override
getObjectback to summary
public Object getObject()

Implements jakarta.xml.bind.ValidationEventLocator.getObject.

Doc from jakarta.xml.bind.ValidationEventLocator.getObject.

Return a reference to the object in the Java content tree if available

Annotations
@Override
getOffsetback to summary
public int getOffset()

Implements jakarta.xml.bind.ValidationEventLocator.getOffset.

Doc from jakarta.xml.bind.ValidationEventLocator.getOffset.

Return the byte offset if available

Annotations
@Override
getPublicIdback to summary
public String getPublicId()

Implements org.xml.sax.Locator.getPublicId.

Doc from org.xml.sax.Locator.getPublicId.

Return the public identifier for the current document event.

The return value is the public identifier of the document entity or of the external parsed entity in which the markup triggering the event appears.

Annotations
@Override
getSystemIdback to summary
public String getSystemId()

Implements org.xml.sax.Locator.getSystemId.

Doc from org.xml.sax.Locator.getSystemId.

Return the system identifier for the current document event.

The return value is the system identifier of the document entity or of the external parsed entity in which the markup triggering the event appears.

If the system identifier is a URL, the parser must resolve it fully before passing it to the application. For example, a file name must always be provided as a file:... URL, and other kinds of relative URI are also resolved against their bases.

Annotations
@Override
getURLback to summary
public URL getURL()

Implements jakarta.xml.bind.ValidationEventLocator.getURL.

Doc from jakarta.xml.bind.ValidationEventLocator.getURL.

Return the name of the XML source as a URL if available

Annotations
@Override