nu.validator.saxtree
Class Node

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

public abstract class Node
extends java.lang.Object
implements org.xml.sax.Locator

The common node superclass.

Version:
$Id$
Author:
hsivonen

Method Summary
 void detach()
          Detach this node from its parent.
 org.xml.sax.Attributes getAttributes()
          Returns the attributes.
 int getColumnNumber()
           
 java.lang.String getData()
          Returns the data.
 Node getFirstChild()
          Return the first child.
 int getLineNumber()
           
 java.lang.String getLocalName()
          Returns the localName.
 java.lang.String getName()
          Returns the name.
 Node getNextSibling()
          Returns the nextSibling.
abstract  NodeType getNodeType()
          Return the node type.
 ParentNode getParentNode()
          Returns the parentNode.
 java.util.List<PrefixMapping> getPrefixMappings()
          Returns the prefixMappings.
 Node getPreviousSibling()
          Returns the previous sibling
 java.lang.String getPublicId()
           
 java.lang.String getPublicIdentifier()
          Returns the publicIdentifier.
 java.lang.String getQName()
          Returns the qName.
 java.lang.String getSystemId()
           
 java.lang.String getSystemIdentifier()
          Returns the systemIdentifier.
 java.lang.String getTarget()
          Returns the target.
 java.lang.String getUri()
          Returns the uri.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getColumnNumber

public int getColumnNumber()
Specified by:
getColumnNumber in interface org.xml.sax.Locator
See Also:
Locator.getColumnNumber()

getLineNumber

public int getLineNumber()
Specified by:
getLineNumber in interface org.xml.sax.Locator
See Also:
Locator.getLineNumber()

getPublicId

public java.lang.String getPublicId()
Specified by:
getPublicId in interface org.xml.sax.Locator
See Also:
Locator.getPublicId()

getSystemId

public java.lang.String getSystemId()
Specified by:
getSystemId in interface org.xml.sax.Locator
See Also:
Locator.getSystemId()

getFirstChild

public Node getFirstChild()
Return the first child.

Returns:
the first child

getNextSibling

public final Node getNextSibling()
Returns the nextSibling.

Returns:
the nextSibling

getPreviousSibling

public final Node getPreviousSibling()
Returns the previous sibling

Returns:
the previous sibling

getParentNode

public final ParentNode getParentNode()
Returns the parentNode.

Returns:
the parentNode

getNodeType

public abstract NodeType getNodeType()
Return the node type.

Returns:
the node type

detach

public void detach()
Detach this node from its parent.


getName

public java.lang.String getName()
Returns the name.

Returns:
the name

getPublicIdentifier

public java.lang.String getPublicIdentifier()
Returns the publicIdentifier.

Returns:
the publicIdentifier

getSystemIdentifier

public java.lang.String getSystemIdentifier()
Returns the systemIdentifier.

Returns:
the systemIdentifier

getAttributes

public org.xml.sax.Attributes getAttributes()
Returns the attributes.

Returns:
the attributes

getLocalName

public java.lang.String getLocalName()
Returns the localName.

Returns:
the localName

getPrefixMappings

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

Returns:
the prefixMappings

getQName

public java.lang.String getQName()
Returns the qName.

Returns:
the qName

getUri

public java.lang.String getUri()
Returns the uri.

Returns:
the uri

getData

public java.lang.String getData()
Returns the data.

Returns:
the data

getTarget

public java.lang.String getTarget()
Returns the target.

Returns:
the target