public class

DOMLocatorImpl

extends Object
implements DOMLocator
java.lang.Object
   ↳ org.apache.xerces.dom.DOMLocatorImpl

Class Overview

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.@xerces.internal

Summary

Fields
public int fByteOffset The byte offset into the input source this locator is pointing to or -1 if there is no byte offset available
public int fColumnNumber The column number where the error occured, or -1 if there is no column number available.
public int fLineNumber The line number where the error occured, or -1 if there is no line number available.
public Node fRelatedNode related data node
public String fUri The URI where the error occured, or null if there is no URI available.
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.
Public Constructors
DOMLocatorImpl()
DOMLocatorImpl(int lineNumber, int columnNumber, String uri)
DOMLocatorImpl(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)
Public Methods
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.
Node getRelatedNode()
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.w3c.dom.DOMLocator

Fields

public int fByteOffset

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

public int fColumnNumber

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

public int fLineNumber

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

public Node fRelatedNode

related data node

public String fUri

The URI where the error occured, or null if there is no URI available.

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.

Public Constructors

public DOMLocatorImpl ()

public DOMLocatorImpl (int lineNumber, int columnNumber, String uri)

public DOMLocatorImpl (int lineNumber, int columnNumber, int utf16Offset, String uri)

public DOMLocatorImpl (int lineNumber, int columnNumber, int byteoffset, Node relatedData, String uri)

public DOMLocatorImpl (int lineNumber, int columnNumber, int byteoffset, Node relatedData, String uri, int utf16Offset)

Public Methods

public int getByteOffset ()

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

public int getColumnNumber ()

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

public int getLineNumber ()

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

public Node getRelatedNode ()

public String getUri ()

The URI where the error occured, or null if there is no URI available.

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.