Package org.apache.xml.dtm.ref
Class NodeLocator
java.lang.Object
org.apache.xml.dtm.ref.NodeLocator
- All Implemented Interfaces:
SourceLocator
NodeLocator maintains information on an XML source
node.- Since:
- May 23, 2001
- Author:
- Ovidiu Predescu
-
Constructor Summary
ConstructorsConstructorDescriptionNodeLocator(String publicId, String systemId, int lineNumber, int columnNumber) Creates a newNodeLocatorinstance. -
Method Summary
Modifier and TypeMethodDescriptionintgetColumnNumberreturns the column number of the node.intgetLineNumberreturns the line number of the node.getPublicIdreturns the public ID of the node.getSystemIdreturns the system ID of the node.toString()toStringreturns a string representation of this NodeLocator instance.
-
Constructor Details
-
NodeLocator
Creates a newNodeLocatorinstance.- Parameters:
publicId- aStringvaluesystemId- aStringvaluelineNumber- anintvaluecolumnNumber- anintvalue
-
-
Method Details
-
getPublicId
getPublicIdreturns the public ID of the node.- Specified by:
getPublicIdin interfaceSourceLocator- Returns:
- a
Stringvalue
-
getSystemId
getSystemIdreturns the system ID of the node.- Specified by:
getSystemIdin interfaceSourceLocator- Returns:
- a
Stringvalue
-
getLineNumber
public int getLineNumber()getLineNumberreturns the line number of the node.- Specified by:
getLineNumberin interfaceSourceLocator- Returns:
- an
intvalue
-
getColumnNumber
public int getColumnNumber()getColumnNumberreturns the column number of the node.- Specified by:
getColumnNumberin interfaceSourceLocator- Returns:
- an
intvalue
-
toString
toStringreturns a string representation of this NodeLocator instance.
-