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 int
getColumnNumber()
Return the column number if availableint
getLineNumber()
Return the line number if availableValidationEventLocator
getLocation()
Gets the current location in aValidationEventLocator
object.Node
getNode()
Return a reference to the DOM Node if availableObject
getObject()
Return a reference to the object in the Java content tree if availableint
getOffset()
Return the byte offset if availableString
getPublicId()
String
getSystemId()
URL
getURL()
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:ValidationEventLocator
Return a reference to the object in the Java content tree if available- Specified by:
getObject
in interfaceValidationEventLocator
- Returns:
- a reference to the object in the Java content tree or null if unavailable
-
getNode
public Node getNode()
Description copied from interface:ValidationEventLocator
Return a reference to the DOM Node if available- Specified by:
getNode
in interfaceValidationEventLocator
- Returns:
- a reference to the DOM Node or null if unavailable
-
getOffset
public int getOffset()
Description copied from interface:ValidationEventLocator
Return the byte offset if available- Specified by:
getOffset
in interfaceValidationEventLocator
- Returns:
- the byte offset into the input source or -1 if unavailable
-
getURL
public URL getURL()
Description copied from interface:ValidationEventLocator
Return the name of the XML source as a URL if available- Specified by:
getURL
in interfaceValidationEventLocator
- Returns:
- the name of the XML source as a URL or null if unavailable
-
getColumnNumber
public int getColumnNumber()
Description copied from interface:ValidationEventLocator
Return the column number if available- Specified by:
getColumnNumber
in interfaceLocator
- Specified by:
getColumnNumber
in interfaceValidationEventLocator
- Returns:
- the column number or -1 if unavailable
-
getLineNumber
public int getLineNumber()
Description copied from interface:ValidationEventLocator
Return the line number if available- Specified by:
getLineNumber
in interfaceLocator
- Specified by:
getLineNumber
in interfaceValidationEventLocator
- Returns:
- the line number or -1 if unavailable
-
getSystemId
public String getSystemId()
- Specified by:
getSystemId
in interfaceLocator
-
getPublicId
public String getPublicId()
- Specified by:
getPublicId
in interfaceLocator
-
getLocation
public ValidationEventLocator getLocation()
Description copied from interface:LocatorEx
Gets the current location in aValidationEventLocator
object.- Specified by:
getLocation
in interfaceLocatorEx
- Returns:
-
-