org.apache.xml.dtm.ref
Class NodeLocator
java.lang.Object
org.apache.xml.dtm.ref.NodeLocator
- SourceLocator
public class NodeLocator
extends java.lang.Object
NodeLocator
maintains information on an XML source
node.
- Ovidiu Predescu
- May 23, 2001
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
- an
int
value
getLineNumber
public int getLineNumber()
getLineNumber
returns the line number of the node.
- getLineNumber in interface SourceLocator
- an
int
value
getPublicId
public String getPublicId()
getPublicId
returns the public ID of the node.
- getPublicId in interface SourceLocator
- a
String
value
getSystemId
public String getSystemId()
getSystemId
returns the system ID of the node.
- getSystemId in interface SourceLocator
- a
String
value
toString
public String toString()
toString
returns a string representation of this
NodeLocator instance.
- a
String
value
Copyright B) 2004 Apache XML Project. All Rights Reserved.