NodeLocatorpublic class NodeLocator extends Object implements SourceLocatorNodeLocator maintains information on an XML source
node. |
Fields Summary |
---|
protected String | m_publicId | protected String | m_systemId | protected int | m_lineNumber | protected int | m_columnNumber |
Constructors Summary |
---|
public NodeLocator(String publicId, String systemId, int lineNumber, int columnNumber)Creates a new NodeLocator instance.
this.m_publicId = publicId;
this.m_systemId = systemId;
this.m_lineNumber = lineNumber;
this.m_columnNumber = columnNumber;
|
Methods Summary |
---|
public int | getColumnNumber()getColumnNumber returns the column number of the
node.
return m_columnNumber;
| public int | getLineNumber()getLineNumber returns the line number of the node.
return m_lineNumber;
| public java.lang.String | getPublicId()getPublicId returns the public ID of the node.
return m_publicId;
| public java.lang.String | getSystemId()getSystemId returns the system ID of the node.
return m_systemId;
| public java.lang.String | toString()toString returns a string representation of this
NodeLocator instance.
return "file '" + m_systemId
+ "', line #" + m_lineNumber
+ ", column #" + m_columnNumber;
|
|