Class DOMLocatorImpl
- java.lang.Object
-
- org.apache.jackrabbit.vault.util.xml.xerces.dom.DOMLocatorImpl
-
- All Implemented Interfaces:
org.w3c.dom.DOMLocator
public class DOMLocatorImpl extends java.lang.Object implements org.w3c.dom.DOMLocatorDOMLocatorImplis an implementaion that describes a location (e.g. where an error occured).See also the Document Object Model (DOM) Level 3 Core Specification.
-
-
Field Summary
Fields Modifier and Type Field Description intfByteOffsetThe byte offset into the input source this locator is pointing to or -1 if there is no byte offset availableintfColumnNumberThe column number where the error occured, or -1 if there is no column number available.intfLineNumberThe line number where the error occured, or -1 if there is no line number available.org.w3c.dom.NodefRelatedNoderelated data nodejava.lang.StringfUriThe URI where the error occured, or null if there is no URI available.intfUtf16OffsetThe 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
Constructors Constructor Description DOMLocatorImpl()DOMLocatorImpl(int lineNumber, int columnNumber, int byteoffset, org.w3c.dom.Node relatedData, java.lang.String uri)DOMLocatorImpl(int lineNumber, int columnNumber, int byteoffset, org.w3c.dom.Node relatedData, java.lang.String uri, int utf16Offsert)DOMLocatorImpl(int lineNumber, int columnNumber, java.lang.String uri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetByteOffset()The byte offset into the input source this locator is pointing to or -1 if there is no byte offset availableintgetColumnNumber()The column number where the error occured, or -1 if there is no column number available.intgetLineNumber()The line number where the error occured, or -1 if there is no line number available.org.w3c.dom.NodegetRelatedNode()java.lang.StringgetUri()The URI where the error occured, or null if there is no URI available.intgetUtf16Offset()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 Detail
-
fColumnNumber
public int fColumnNumber
The column number where the error occured, or -1 if there is no column number available.
-
fLineNumber
public int fLineNumber
The line number where the error occured, or -1 if there is no line number available.
-
fRelatedNode
public org.w3c.dom.Node fRelatedNode
related data node
-
fUri
public java.lang.String fUri
The URI where the error occured, or null if there is no URI available.
-
fByteOffset
public int fByteOffset
The byte offset into the input source this locator is pointing to or -1 if there is no byte offset available
-
fUtf16Offset
public int fUtf16Offset
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 Detail
-
DOMLocatorImpl
public DOMLocatorImpl()
-
DOMLocatorImpl
public DOMLocatorImpl(int lineNumber, int columnNumber, java.lang.String uri)
-
DOMLocatorImpl
public DOMLocatorImpl(int lineNumber, int columnNumber, int byteoffset, org.w3c.dom.Node relatedData, java.lang.String uri)
-
DOMLocatorImpl
public DOMLocatorImpl(int lineNumber, int columnNumber, int byteoffset, org.w3c.dom.Node relatedData, java.lang.String uri, int utf16Offsert)
-
-
Method Detail
-
getLineNumber
public int getLineNumber()
The line number where the error occured, or -1 if there is no line number available.- Specified by:
getLineNumberin interfaceorg.w3c.dom.DOMLocator
-
getColumnNumber
public int getColumnNumber()
The column number where the error occured, or -1 if there is no column number available.- Specified by:
getColumnNumberin interfaceorg.w3c.dom.DOMLocator
-
getUri
public java.lang.String getUri()
The URI where the error occured, or null if there is no URI available.- Specified by:
getUriin interfaceorg.w3c.dom.DOMLocator
-
getRelatedNode
public org.w3c.dom.Node getRelatedNode()
- Specified by:
getRelatedNodein interfaceorg.w3c.dom.DOMLocator
-
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:
getByteOffsetin interfaceorg.w3c.dom.DOMLocator
-
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:
getUtf16Offsetin interfaceorg.w3c.dom.DOMLocator
-
-