org.apache.xerces.dom

Class DOMLocatorImpl

public class DOMLocatorImpl extends Object implements 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.

Version: $Id: DOMLocatorImpl.java,v 1.12 2005/05/02 22:02:22 mrglavas Exp $

Author: Gopal Sharma, SUN Microsystems Inc.

UNKNOWN:

Field Summary
intfByteOffset
The byte offset into the input source this locator is pointing to or -1 if there is no byte offset available
intfColumnNumber
The column number where the error occured, or -1 if there is no column number available.
intfLineNumber
The line number where the error occured, or -1 if there is no line number available.
NodefRelatedNode
related data node
StringfUri
The URI where the error occured, or null if there is no URI available.
intfUtf16Offset
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, 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)
Method Summary
intgetByteOffset()
The byte offset into the input source this locator is pointing to or -1 if there is no byte offset available
intgetColumnNumber()
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.
NodegetRelatedNode()
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

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

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 Node fRelatedNode
related data node

fUri

public String fUri
The URI where the error occured, or null if there is no URI 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, String uri)

DOMLocatorImpl

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

DOMLocatorImpl

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

DOMLocatorImpl

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

Method Detail

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

getColumnNumber

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

getLineNumber

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

getRelatedNode

public Node getRelatedNode()

getUri

public String getUri()
The URI where the error occured, or null if there is no URI available.

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.
Copyright B) 1999-2005 Apache XML Project. All Rights Reserved.