nu.validator.saxtree
Class Node

java.lang.Object
  extended by nu.validator.saxtree.Node
All Implemented Interfaces:
Locator
Direct Known Subclasses:
CharBufferNode, ParentNode, ProcessingInstruction, SkippedEntity

public abstract class Node
extends Object
implements Locator


Field Summary
private  int column
           
private  int line
           
private  Node nextSibling
           
private  ParentNode parentNode
           
private  String publicId
           
private  String systemId
           
 
Constructor Summary
Node(Locator locator)
           
 
Method Summary
 void detach()
           
 Attributes getAttributes()
          Returns the attributes.
 int getColumnNumber()
           
 String getData()
          Returns the data.
 Node getFirstChild()
           
 int getLineNumber()
           
 String getLocalName()
          Returns the localName.
 String getName()
          Returns the name.
 Node getNextSibling()
          Returns the nextSibling.
abstract  NodeType getNodeType()
           
 ParentNode getParentNode()
          Returns the parentNode.
 List<PrefixMapping> getPrefixMappings()
          Returns the prefixMappings.
 String getPublicId()
           
 String getPublicIdentifier()
          Returns the publicIdentifier.
 String getQName()
          Returns the qName.
 String getSystemId()
           
 String getSystemIdentifier()
          Returns the systemIdentifier.
 String getTarget()
          Returns the target.
 String getUri()
          Returns the uri.
(package private)  void revisit(TreeParser treeParser)
           
(package private)  void setNextSibling(Node nextSibling)
          Sets the nextSibling.
(package private)  void setParentNode(ParentNode parentNode)
          Sets the parentNode.
(package private) abstract  void visit(TreeParser treeParser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

systemId

private final String systemId

publicId

private final String publicId

column

private final int column

line

private final int line

nextSibling

private Node nextSibling

parentNode

private ParentNode parentNode
Constructor Detail

Node

Node(Locator locator)
Method Detail

getColumnNumber

public int getColumnNumber()
Specified by:
getColumnNumber in interface Locator

getLineNumber

public int getLineNumber()
Specified by:
getLineNumber in interface Locator

getPublicId

public String getPublicId()
Specified by:
getPublicId in interface Locator

getSystemId

public String getSystemId()
Specified by:
getSystemId in interface Locator

visit

abstract void visit(TreeParser treeParser)
             throws SAXException
Throws:
SAXException

revisit

void revisit(TreeParser treeParser)
       throws SAXException
Throws:
SAXException

getFirstChild

public Node getFirstChild()

getNextSibling

public final Node getNextSibling()
Returns the nextSibling.

Returns:
the nextSibling

setNextSibling

void setNextSibling(Node nextSibling)
Sets the nextSibling.

Parameters:
nextSibling - the nextSibling to set

getParentNode

public final ParentNode getParentNode()
Returns the parentNode.

Returns:
the parentNode

getNodeType

public abstract NodeType getNodeType()

setParentNode

void setParentNode(ParentNode parentNode)
Sets the parentNode.

Parameters:
parentNode - the parentNode to set

detach

public void detach()

getName

public String getName()
Returns the name.

Returns:
the name

getPublicIdentifier

public String getPublicIdentifier()
Returns the publicIdentifier.

Returns:
the publicIdentifier

getSystemIdentifier

public String getSystemIdentifier()
Returns the systemIdentifier.

Returns:
the systemIdentifier

getAttributes

public Attributes getAttributes()
Returns the attributes.

Returns:
the attributes

getLocalName

public String getLocalName()
Returns the localName.

Returns:
the localName

getPrefixMappings

public List<PrefixMapping> getPrefixMappings()
Returns the prefixMappings.

Returns:
the prefixMappings

getQName

public String getQName()
Returns the qName.

Returns:
the qName

getUri

public String getUri()
Returns the uri.

Returns:
the uri

getData

public String getData()
Returns the data.

Returns:
the data

getTarget

public String getTarget()
Returns the target.

Returns:
the target