Package org.apache.xml.dtm.ref
Class NodeLocator
- java.lang.Object
-
- org.apache.xml.dtm.ref.NodeLocator
-
- All Implemented Interfaces:
javax.xml.transform.SourceLocator
public class NodeLocator extends java.lang.Object implements javax.xml.transform.SourceLocator
NodeLocator
maintains information on an XML source node.- Since:
- May 23, 2001
- Author:
- Ovidiu Predescu
-
-
Constructor Summary
Constructors Constructor Description NodeLocator(java.lang.String publicId, java.lang.String systemId, int lineNumber, int columnNumber)
Creates a newNodeLocator
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getColumnNumber()
getColumnNumber
returns the column number of the node.int
getLineNumber()
getLineNumber
returns the line number of the node.java.lang.String
getPublicId()
getPublicId
returns the public ID of the node.java.lang.String
getSystemId()
getSystemId
returns the system ID of the node.java.lang.String
toString()
toString
returns a string representation of this NodeLocator instance.
-
-
-
Method Detail
-
getPublicId
public java.lang.String getPublicId()
getPublicId
returns the public ID of the node.- Specified by:
getPublicId
in interfacejavax.xml.transform.SourceLocator
- Returns:
- a
String
value
-
getSystemId
public java.lang.String getSystemId()
getSystemId
returns the system ID of the node.- Specified by:
getSystemId
in interfacejavax.xml.transform.SourceLocator
- Returns:
- a
String
value
-
getLineNumber
public int getLineNumber()
getLineNumber
returns the line number of the node.- Specified by:
getLineNumber
in interfacejavax.xml.transform.SourceLocator
- Returns:
- an
int
value
-
getColumnNumber
public int getColumnNumber()
getColumnNumber
returns the column number of the node.- Specified by:
getColumnNumber
in interfacejavax.xml.transform.SourceLocator
- Returns:
- an
int
value
-
toString
public java.lang.String toString()
toString
returns a string representation of this NodeLocator instance.- Overrides:
toString
in classjava.lang.Object
- Returns:
- a
String
value
-
-