public class NodeLocator extends Object implements SourceLocator
NodeLocator maintains information on an XML source
node.| Modifier and Type | Field and Description |
|---|---|
protected int |
m_columnNumber |
protected int |
m_lineNumber |
protected String |
m_publicId |
protected String |
m_systemId |
| Constructor and Description |
|---|
NodeLocator(String publicId,
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. |
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. |
protected String m_publicId
protected String m_systemId
protected int m_lineNumber
protected int m_columnNumber
public String getPublicId()
getPublicId returns the public ID of the node.getPublicId in interface SourceLocatorString valuepublic String getSystemId()
getSystemId returns the system ID of the node.getSystemId in interface SourceLocatorString valuepublic int getLineNumber()
getLineNumber returns the line number of the node.getLineNumber in interface SourceLocatorint valuepublic int getColumnNumber()
getColumnNumber returns the column number of the
node.getColumnNumber in interface SourceLocatorint valueCopyright © 2012 JBoss by Red Hat. All Rights Reserved.