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 newNodeLocator
instance. -
Method Summary
Modifier and TypeMethodDescriptionint
getColumnNumber
returns the column number of the node.int
getLineNumber
returns the line number of the node.getPublicId
returns the public ID of the node.getSystemId
returns the system ID of the node.toString()
toString
returns a string representation of this NodeLocator instance.
-
Constructor Details
-
NodeLocator
Creates a newNodeLocator
instance.- Parameters:
publicId
- aString
valuesystemId
- aString
valuelineNumber
- anint
valuecolumnNumber
- anint
value
-
-
Method Details
-
getPublicId
getPublicId
returns the public ID of the node.- Specified by:
getPublicId
in interfaceSourceLocator
- Returns:
- a
String
value
-
getSystemId
getSystemId
returns the system ID of the node.- Specified by:
getSystemId
in interfaceSourceLocator
- Returns:
- a
String
value
-
getLineNumber
public int getLineNumber()getLineNumber
returns the line number of the node.- Specified by:
getLineNumber
in interfaceSourceLocator
- Returns:
- an
int
value
-
getColumnNumber
public int getColumnNumber()getColumnNumber
returns the column number of the node.- Specified by:
getColumnNumber
in interfaceSourceLocator
- Returns:
- an
int
value
-
toString
toString
returns a string representation of this NodeLocator instance.
-