FileDocCategorySizeDatePackage
DOMLocatorImpl.javaAPI DocApache Xerces 3.0.14776Fri Sep 14 20:33:54 BST 2007org.apache.xerces.dom

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.

xerces.internal
author
Gopal Sharma, SUN Microsystems Inc.
version
$Id: DOMLocatorImpl.java 447266 2006-09-18 05:57:49Z mrglavas $

Fields Summary
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
fByteOffset
The byte offset into the input source this locator is pointing to or -1 if there is no byte offset 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.
Constructors Summary
public DOMLocatorImpl()

           
   //
   // Constructors
   //

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

	fLineNumber = lineNumber ;
	fColumnNumber = columnNumber ;
	fUri = uri;
   
public DOMLocatorImpl(int lineNumber, int columnNumber, int utf16Offset, String uri)

	fLineNumber = lineNumber ;
	fColumnNumber = columnNumber ;
	fUri = uri;
	fUtf16Offset = utf16Offset;
   
public DOMLocatorImpl(int lineNumber, int columnNumber, int byteoffset, Node relatedData, String uri)

	fLineNumber = lineNumber ;
	fColumnNumber = columnNumber ;
	fByteOffset = byteoffset ;
	fRelatedNode = relatedData ;
	fUri = uri;
   
public DOMLocatorImpl(int lineNumber, int columnNumber, int byteoffset, Node relatedData, String uri, int utf16Offset)

	fLineNumber = lineNumber ;
	fColumnNumber = columnNumber ;
	fByteOffset = byteoffset ;
	fRelatedNode = relatedData ;
	fUri = uri;
	fUtf16Offset = utf16Offset;
   
Methods Summary
public intgetByteOffset()
The byte offset into the input source this locator is pointing to or -1 if there is no byte offset available

	return fByteOffset;
  
public intgetColumnNumber()
The column number where the error occured, or -1 if there is no column number available.

	return fColumnNumber;
  
public intgetLineNumber()
The line number where the error occured, or -1 if there is no line number available.

 	return fLineNumber;
   
public org.w3c.dom.NodegetRelatedNode()

    return fRelatedNode;
  
public java.lang.StringgetUri()
The URI where the error occured, or null if there is no URI available.

	return fUri;
  
public 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.

	return fUtf16Offset;