FileDocCategorySizeDatePackage
DOMLocatorImpl.javaAPI DocJava SE 5 API6216Fri Aug 26 14:55:42 BST 2005com.sun.org.apache.xerces.internal.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.

author
Gopal Sharma, SUN Microsystems Inc.
version
$Id: DOMLocatorImpl.java,v 1.8 2003/11/13 22:47:15 elena Exp $

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 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 utf16Offsert)

	fLineNumber = lineNumber ;
	fColumnNumber = columnNumber ;
	fByteOffset = byteoffset ;
	fRelatedNode = relatedData ;
	fUri = uri;
	fUtf16Offset = utf16Offsert;
   
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;