FileDocCategorySizeDatePackage
DOMLocatorImpl.javaAPI DocJava SE 6 API4468Tue Jun 10 00:22:36 BST 2008com.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.

xerces.internal
author
Gopal Sharma, SUN Microsystems Inc.
version
$Id: DOMLocatorImpl.java,v 1.2.6.1 2005/08/30 13:22:00 sunithareddy 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 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;