Package org.apache.xerces.dom
Class DOMLocatorImpl
java.lang.Object
org.apache.xerces.dom.DOMLocatorImpl
- All Implemented Interfaces:
DOMLocator
DOMLocatorImpl
is an implementaion that describes a location (e.g.
where an error occured).
See also the Document Object Model (DOM) Level 3 Core Specification.
INTERNAL:
- Usage of this class is not supported. It may be altered or removed at any time.
- Version:
- $Id: DOMLocatorImpl.java 447266 2006-09-18 05:57:49Z mrglavas $
- Author:
- Gopal Sharma, SUN Microsystems Inc.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
The byte offset into the input source this locator is pointing to or -1 if there is no byte offset availableint
The column number where the error occured, or -1 if there is no column number available.int
The line number where the error occured, or -1 if there is no line number available.related data nodeThe URI where the error occured, or null if there is no URI available.int
The UTF-16, as defined in [Unicode] and Amendment 1 of [ISO/IEC 10646], offset into the input source this locator is pointing to or -1 if there is no UTF-16 offset available. -
Constructor Summary
ConstructorsConstructorDescriptionDOMLocatorImpl
(int lineNumber, int columnNumber, int utf16Offset, String uri) DOMLocatorImpl
(int lineNumber, int columnNumber, int byteoffset, Node relatedData, String uri) DOMLocatorImpl
(int lineNumber, int columnNumber, int byteoffset, Node relatedData, String uri, int utf16Offset) DOMLocatorImpl
(int lineNumber, int columnNumber, String uri) -
Method Summary
Modifier and TypeMethodDescriptionint
The byte offset into the input source this locator is pointing to or -1 if there is no byte offset availableint
The column number where the error occured, or -1 if there is no column number available.int
The line number where the error occured, or -1 if there is no line number available.getUri()
The URI where the error occured, or null if there is no URI available.int
The UTF-16, as defined in [Unicode] and Amendment 1 of [ISO/IEC 10646], offset into the input source this locator is pointing to or -1 if there is no UTF-16 offset available.
-
Field Details
-
fColumnNumber
public int fColumnNumberThe column number where the error occured, or -1 if there is no column number available. -
fLineNumber
public int fLineNumberThe line number where the error occured, or -1 if there is no line number available. -
fRelatedNode
related data node -
fUri
The URI where the error occured, or null if there is no URI available. -
fByteOffset
public int fByteOffsetThe byte offset into the input source this locator is pointing to or -1 if there is no byte offset available -
fUtf16Offset
public int fUtf16OffsetThe UTF-16, as defined in [Unicode] and Amendment 1 of [ISO/IEC 10646], offset into the input source this locator is pointing to or -1 if there is no UTF-16 offset available.
-
-
Constructor Details
-
DOMLocatorImpl
public DOMLocatorImpl() -
DOMLocatorImpl
-
DOMLocatorImpl
-
DOMLocatorImpl
-
DOMLocatorImpl
-
-
Method Details
-
getLineNumber
public int getLineNumber()The line number where the error occured, or -1 if there is no line number available.- Specified by:
getLineNumber
in interfaceDOMLocator
-
getColumnNumber
public int getColumnNumber()The column number where the error occured, or -1 if there is no column number available.- Specified by:
getColumnNumber
in interfaceDOMLocator
-
getUri
The URI where the error occured, or null if there is no URI available.- Specified by:
getUri
in interfaceDOMLocator
-
getRelatedNode
- Specified by:
getRelatedNode
in interfaceDOMLocator
-
getByteOffset
public int getByteOffset()The byte offset into the input source this locator is pointing to or -1 if there is no byte offset available- Specified by:
getByteOffset
in interfaceDOMLocator
-
getUtf16Offset
public int getUtf16Offset()The UTF-16, as defined in [Unicode] and Amendment 1 of [ISO/IEC 10646], offset into the input source this locator is pointing to or -1 if there is no UTF-16 offset available.- Specified by:
getUtf16Offset
in interfaceDOMLocator
-