public class NodeLocator
extends java.lang.Object
implements javax.xml.transform.SourceLocator
NodeLocator
maintains information on an XML source
node.Constructor and Description |
---|
NodeLocator(java.lang.String publicId,
java.lang.String systemId,
int lineNumber,
int columnNumber)
Creates a new
NodeLocator instance. |
Modifier and Type | Method and Description |
---|---|
int |
getColumnNumber()
getColumnNumber returns the column number of the
node. |
int |
getLineNumber()
getLineNumber returns the line number of the node. |
java.lang.String |
getPublicId()
getPublicId returns the public ID of the node. |
java.lang.String |
getSystemId()
getSystemId returns the system ID of the node. |
java.lang.String |
toString()
toString returns a string representation of this
NodeLocator instance. |
public NodeLocator(java.lang.String publicId, java.lang.String systemId, int lineNumber, int columnNumber)
NodeLocator
instance.publicId
- a String
valuesystemId
- a String
valuelineNumber
- an int
valuecolumnNumber
- an int
valuepublic java.lang.String getPublicId()
getPublicId
returns the public ID of the node.getPublicId
in interface javax.xml.transform.SourceLocator
String
valuepublic java.lang.String getSystemId()
getSystemId
returns the system ID of the node.getSystemId
in interface javax.xml.transform.SourceLocator
String
valuepublic int getLineNumber()
getLineNumber
returns the line number of the node.getLineNumber
in interface javax.xml.transform.SourceLocator
int
valuepublic int getColumnNumber()
getColumnNumber
returns the column number of the
node.getColumnNumber
in interface javax.xml.transform.SourceLocator
int
valuepublic java.lang.String toString()
toString
returns a string representation of this
NodeLocator instance.toString
in class java.lang.Object
String
valueCopyright © 2014 Apache XML Project. All Rights Reserved.