FileDocCategorySizeDatePackage
NodeLocator.javaAPI DocJava SE 5 API2722Fri Aug 26 14:56:00 BST 2005com.sun.org.apache.xml.internal.dtm.ref

NodeLocator

public class NodeLocator extends Object implements SourceLocator
NodeLocator maintains information on an XML source node.
author
Ovidiu Predescu
since
May 23, 2001

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.

param
publicId a String value
param
systemId a String value
param
lineNumber an int value
param
columnNumber an int value

    this.m_publicId = publicId;
    this.m_systemId = systemId;
    this.m_lineNumber = lineNumber;
    this.m_columnNumber = columnNumber;
  
Methods Summary
public intgetColumnNumber()
getColumnNumber returns the column number of the node.

return
an int value

    return m_columnNumber;
  
public intgetLineNumber()
getLineNumber returns the line number of the node.

return
an int value

    return m_lineNumber;
  
public java.lang.StringgetPublicId()
getPublicId returns the public ID of the node.

return
a String value

    return m_publicId;
  
public java.lang.StringgetSystemId()
getSystemId returns the system ID of the node.

return
a String value

    return m_systemId;
  
public java.lang.StringtoString()
toString returns a string representation of this NodeLocator instance.

return
a String value

    return "file '" + m_systemId
      + "', line #" + m_lineNumber
      + ", column #" + m_columnNumber;