org.apache.xml.serializer.dom3
Class DOMLocatorImpl

java.lang.Object
  extended by org.apache.xml.serializer.dom3.DOMLocatorImpl
All Implemented Interfaces:
org.w3c.dom.DOMLocator

final class DOMLocatorImpl
extends java.lang.Object
implements org.w3c.dom.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. This class is a copy of the Xerces-2J class org.apache.xerces.dom.DOMLocatorImpl.java v 1.10


Field Summary
private  int fByteOffset
          The byte offset into the input source this locator is pointing to or -1 if there is no byte offset available
private  int fColumnNumber
          The column number where the error occured, or -1 if there is no column number available.
private  int fLineNumber
          The line number where the error occured, or -1 if there is no line number available.
private  org.w3c.dom.Node fRelatedNode
          related data node
private  java.lang.String fUri
          The URI where the error occured, or null if there is no URI available.
private  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 Summary
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 utf16Offset)
           
DOMLocatorImpl(int lineNumber, int columnNumber, int utf16Offset, java.lang.String uri)
           
DOMLocatorImpl(int lineNumber, int columnNumber, java.lang.String uri)
           
 
Method Summary
 int getByteOffset()
          The byte offset into the input source this locator is pointing to or -1 if there is no byte offset available
 int getColumnNumber()
          The column number where the error occured, or -1 if there is no column number available.
 int getLineNumber()
          The line number where the error occured, or -1 if there is no line number available.
 org.w3c.dom.Node getRelatedNode()
           
 java.lang.String getUri()
          The URI where the error occured, or null if there is no URI available.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fColumnNumber

private final int fColumnNumber
The column number where the error occured, or -1 if there is no column number available.


fLineNumber

private final int fLineNumber
The line number where the error occured, or -1 if there is no line number available.


fRelatedNode

private final org.w3c.dom.Node fRelatedNode
related data node


fUri

private final java.lang.String fUri
The URI where the error occured, or null if there is no URI available.


fByteOffset

private final int fByteOffset
The byte offset into the input source this locator is pointing to or -1 if there is no byte offset available


fUtf16Offset

private final 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

DOMLocatorImpl()

DOMLocatorImpl

DOMLocatorImpl(int lineNumber,
               int columnNumber,
               java.lang.String uri)

DOMLocatorImpl

DOMLocatorImpl(int lineNumber,
               int columnNumber,
               int utf16Offset,
               java.lang.String uri)

DOMLocatorImpl

DOMLocatorImpl(int lineNumber,
               int columnNumber,
               int byteoffset,
               org.w3c.dom.Node relatedData,
               java.lang.String uri)

DOMLocatorImpl

DOMLocatorImpl(int lineNumber,
               int columnNumber,
               int byteoffset,
               org.w3c.dom.Node relatedData,
               java.lang.String uri,
               int utf16Offset)
Method Detail

getLineNumber

public int getLineNumber()
The line number where the error occured, or -1 if there is no line number available.

Specified by:
getLineNumber in interface org.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:
getColumnNumber in interface org.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:
getUri in interface org.w3c.dom.DOMLocator

getRelatedNode

public org.w3c.dom.Node getRelatedNode()
Specified by:
getRelatedNode in interface org.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:
getByteOffset in interface org.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:
getUtf16Offset in interface org.w3c.dom.DOMLocator