Top Description Fields Constructors Methods
com.sun.org.apache.xml.internal.dtm.ref

public Class NodeLocator

extends Object
implements SourceLocator
Class Inheritance
All Implemented Interfaces
javax.xml.transform.SourceLocator
Imports
javax.xml.transform.SourceLocator

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

Field Summary

Modifier and TypeField and Description
protected int
protected int
protected String
protected String

Constructor Summary

AccessConstructor and Description
public
NodeLocator(String
a String value
publicId
,
String
a String value
systemId
,
int
an int value
lineNumber
,
int
an int value
columnNumber
)

Creates a new NodeLocator instance.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

an int value
getColumnNumber
()

Implements javax.xml.transform.SourceLocator.getColumnNumber.

getColumnNumber returns the column number of the node.

public int

Returns:

an int value
getLineNumber
()

Implements javax.xml.transform.SourceLocator.getLineNumber.

getLineNumber returns the line number of the node.

public String

Returns:

a String value
getPublicId
()

Implements javax.xml.transform.SourceLocator.getPublicId.

getPublicId returns the public ID of the node.

public String

Returns:

a String value
getSystemId
()

Implements javax.xml.transform.SourceLocator.getSystemId.

getSystemId returns the system ID of the node.

public String

Returns:

a String value
toString
()

Overrides java.lang.Object.toString.

toString returns a string representation of this NodeLocator instance.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

m_columnNumberback to summary
protected int m_columnNumber
m_lineNumberback to summary
protected int m_lineNumber
m_publicIdback to summary
protected String m_publicId
m_systemIdback to summary
protected String m_systemId

Constructor Detail

NodeLocatorback to summary
public NodeLocator(String publicId, String systemId, int lineNumber, int columnNumber)

Creates a new NodeLocator instance.

Parameters
publicId:String

a String value

systemId:String

a String value

lineNumber:int

an int value

columnNumber:int

an int value

Method Detail

getColumnNumberback to summary
public int getColumnNumber()

Implements javax.xml.transform.SourceLocator.getColumnNumber.

getColumnNumber returns the column number of the node.

Returns:int

an int value

getLineNumberback to summary
public int getLineNumber()

Implements javax.xml.transform.SourceLocator.getLineNumber.

getLineNumber returns the line number of the node.

Returns:int

an int value

getPublicIdback to summary
public String getPublicId()

Implements javax.xml.transform.SourceLocator.getPublicId.

getPublicId returns the public ID of the node.

Returns:String

a String value

getSystemIdback to summary
public String getSystemId()

Implements javax.xml.transform.SourceLocator.getSystemId.

getSystemId returns the system ID of the node.

Returns:String

a String value

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

toString returns a string representation of this NodeLocator instance.

Returns:String

a String value