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 Object
- implements javax.xml.transform.SourceLocator
NodeLocator
maintains information on an XML source
node.
- Since:
- May 23, 2001
- Author:
- Ovidiu Predescu
Constructor Summary |
NodeLocator(String publicId,
String systemId,
int lineNumber,
int columnNumber)
Creates a new NodeLocator instance. |
Method Summary |
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. |
m_publicId
protected String m_publicId
m_systemId
protected String m_systemId
m_lineNumber
protected int m_lineNumber
m_columnNumber
protected int m_columnNumber
NodeLocator
public NodeLocator(String publicId,
String systemId,
int lineNumber,
int columnNumber)
- Creates a new
NodeLocator
instance.
- Parameters:
publicId
- a String
valuesystemId
- a String
valuelineNumber
- an int
valuecolumnNumber
- an int
value
getPublicId
public String getPublicId()
getPublicId
returns the public ID of the node.
- Specified by:
getPublicId
in interface javax.xml.transform.SourceLocator
- Returns:
- a
String
value
getSystemId
public String getSystemId()
getSystemId
returns the system ID of the node.
- Specified by:
getSystemId
in interface javax.xml.transform.SourceLocator
- Returns:
- a
String
value
getLineNumber
public int getLineNumber()
getLineNumber
returns the line number of the node.
- Specified by:
getLineNumber
in interface javax.xml.transform.SourceLocator
- Returns:
- an
int
value
getColumnNumber
public int getColumnNumber()
getColumnNumber
returns the column number of the
node.
- Specified by:
getColumnNumber
in interface javax.xml.transform.SourceLocator
- Returns:
- an
int
value
toString
public String toString()
toString
returns a string representation of this
NodeLocator instance.
- Overrides:
toString
in class Object
- Returns:
- a
String
value