org.apache.xml.dtm.ref

Class NodeLocator

Implemented Interfaces:
SourceLocator

public class NodeLocator
extends java.lang.Object
implements SourceLocator

NodeLocator maintains information on an XML source node.
Author:
Ovidiu Predescu
Since:
May 23, 2001

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.

Constructor Details

NodeLocator

public NodeLocator(String publicId,
                   String systemId,
                   int lineNumber,
                   int columnNumber)
Creates a new NodeLocator instance.
Parameters:
publicId - a String value
systemId - a String value
lineNumber - an int value
columnNumber - an int value

Method Details

getColumnNumber

public int getColumnNumber()
getColumnNumber returns the column number of the node.
Returns:
an int value

getLineNumber

public int getLineNumber()
getLineNumber returns the line number of the node.
Returns:
an int value

getPublicId

public String getPublicId()
getPublicId returns the public ID of the node.
Returns:
a String value

getSystemId

public String getSystemId()
getSystemId returns the system ID of the node.
Returns:
a String value

toString

public String toString()
toString returns a string representation of this NodeLocator instance.
Returns:
a String value

Copyright B) 2005 Apache XML Project. All Rights Reserved.