Class LocatorEx.Snapshot
- java.lang.Object
-
- com.sun.xml.bind.v2.runtime.unmarshaller.LocatorEx.Snapshot
-
- All Implemented Interfaces:
LocatorEx,ValidationEventLocator,Locator
- Enclosing interface:
- LocatorEx
public static final class LocatorEx.Snapshot extends Object implements LocatorEx, ValidationEventLocator
Immutable snapshot of aLocatorEx
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.sun.xml.bind.v2.runtime.unmarshaller.LocatorEx
LocatorEx.Snapshot
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumnNumber()Return the column number if availableintgetLineNumber()Return the line number if availableValidationEventLocatorgetLocation()Gets the current location in aValidationEventLocatorobject.NodegetNode()Return a reference to the DOM Node if availableObjectgetObject()Return a reference to the object in the Java content tree if availableintgetOffset()Return the byte offset if availableStringgetPublicId()StringgetSystemId()URLgetURL()Return the name of the XML source as a URL if available
-
-
-
Constructor Detail
-
Snapshot
public Snapshot(LocatorEx loc)
-
-
Method Detail
-
getObject
public Object getObject()
Description copied from interface:ValidationEventLocatorReturn a reference to the object in the Java content tree if available- Specified by:
getObjectin interfaceValidationEventLocator- Returns:
- a reference to the object in the Java content tree or null if unavailable
-
getNode
public Node getNode()
Description copied from interface:ValidationEventLocatorReturn a reference to the DOM Node if available- Specified by:
getNodein interfaceValidationEventLocator- Returns:
- a reference to the DOM Node or null if unavailable
-
getOffset
public int getOffset()
Description copied from interface:ValidationEventLocatorReturn the byte offset if available- Specified by:
getOffsetin interfaceValidationEventLocator- Returns:
- the byte offset into the input source or -1 if unavailable
-
getURL
public URL getURL()
Description copied from interface:ValidationEventLocatorReturn the name of the XML source as a URL if available- Specified by:
getURLin interfaceValidationEventLocator- Returns:
- the name of the XML source as a URL or null if unavailable
-
getColumnNumber
public int getColumnNumber()
Description copied from interface:ValidationEventLocatorReturn the column number if available- Specified by:
getColumnNumberin interfaceLocator- Specified by:
getColumnNumberin interfaceValidationEventLocator- Returns:
- the column number or -1 if unavailable
-
getLineNumber
public int getLineNumber()
Description copied from interface:ValidationEventLocatorReturn the line number if available- Specified by:
getLineNumberin interfaceLocator- Specified by:
getLineNumberin interfaceValidationEventLocator- Returns:
- the line number or -1 if unavailable
-
getSystemId
public String getSystemId()
- Specified by:
getSystemIdin interfaceLocator
-
getPublicId
public String getPublicId()
- Specified by:
getPublicIdin interfaceLocator
-
getLocation
public ValidationEventLocator getLocation()
Description copied from interface:LocatorExGets the current location in aValidationEventLocatorobject.- Specified by:
getLocationin interfaceLocatorEx- Returns:
-
-