org.apache.xml.dtm.ref
Class NodeLocator
java.lang.Objectorg.apache.xml.dtm.ref.NodeLocator
- SourceLocator
public class NodeLocator
extends java.lang.Object
NodeLocator maintains information on an XML source
node.
NodeLocator(String publicId, String systemId, int lineNumber, int columnNumber)- Creates a new
NodeLocator instance.
|
int | getColumnNumber()-
getColumnNumber returns the column number of the
node.
|
int | getLineNumber()-
getLineNumber returns the line number of the node.
|
String | getPublicId()-
getPublicId returns the public ID of the node.
|
String | getSystemId()-
getSystemId returns the system ID of the node.
|
String | toString()-
toString returns a string representation of this
NodeLocator instance.
|
NodeLocator
public NodeLocator(String publicId,
String systemId,
int lineNumber,
int columnNumber) Creates a new NodeLocator instance.
publicId - a String valuesystemId - a String valuelineNumber - an int valuecolumnNumber - an int value
getColumnNumber
public int getColumnNumber()
getColumnNumber returns the column number of the
node.
- getColumnNumber in interface SourceLocator
getLineNumber
public int getLineNumber()
getLineNumber returns the line number of the node.
- getLineNumber in interface SourceLocator
getPublicId
public String getPublicId()
getPublicId returns the public ID of the node.
- getPublicId in interface SourceLocator
getSystemId
public String getSystemId()
getSystemId returns the system ID of the node.
- getSystemId in interface SourceLocator
toString
public String toString()
toString returns a string representation of this
NodeLocator instance.
Copyright B) 2004 Apache XML Project. All Rights Reserved.