Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.dom

public Class DOMLocatorImpl

extends Object
implements DOMLocator
Class Inheritance
All Implemented Interfaces
org.w3c.dom.DOMLocator
Imports
org.w3c.dom.DOMLocator, .Node

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.

Author
Gopal Sharma, SUN Microsystems Inc.

Field Summary

Modifier and TypeField and Description
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.

Constructor Summary

AccessConstructor and Description
public
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)

Method Summary

Modifier and TypeMethod and Description
public int
getByteOffset()

Implements org.w3c.dom.DOMLocator.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()

Implements org.w3c.dom.DOMLocator.getColumnNumber.

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

public int
getLineNumber()

Implements org.w3c.dom.DOMLocator.getLineNumber.

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

public Node
getRelatedNode()

Implements org.w3c.dom.DOMLocator.getRelatedNode.

The node this locator is pointing to, or null if no node is available.

public String
getUri()

Implements org.w3c.dom.DOMLocator.getUri.

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

public int
getUtf16Offset()

Implements org.w3c.dom.DOMLocator.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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fByteOffsetback to summary
public int fByteOffset

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

fColumnNumberback to summary
public int fColumnNumber

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

fLineNumberback to summary
public int fLineNumber

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

fRelatedNodeback to summary
public Node fRelatedNode

related data node

fUriback to summary
public String fUri

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

fUtf16Offsetback to summary
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

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

Method Detail

getByteOffsetback to summary
public int getByteOffset()

Implements org.w3c.dom.DOMLocator.getByteOffset.

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

getColumnNumberback to summary
public int getColumnNumber()

Implements org.w3c.dom.DOMLocator.getColumnNumber.

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

getLineNumberback to summary
public int getLineNumber()

Implements org.w3c.dom.DOMLocator.getLineNumber.

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

getRelatedNodeback to summary
public Node getRelatedNode()

Implements org.w3c.dom.DOMLocator.getRelatedNode.

Doc from org.w3c.dom.DOMLocator.getRelatedNode.

The node this locator is pointing to, or null if no node is available.

getUriback to summary
public String getUri()

Implements org.w3c.dom.DOMLocator.getUri.

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

getUtf16Offsetback to summary
public int getUtf16Offset()

Implements org.w3c.dom.DOMLocator.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.