nu.validator.saxtree
Class Element

java.lang.Object
  extended by nu.validator.saxtree.Node
      extended by nu.validator.saxtree.ParentNode
          extended by nu.validator.saxtree.Element
All Implemented Interfaces:
Locator

public final class Element
extends ParentNode

An element.

Version:
$Id: Element.java 367 2008-07-02 18:27:22Z hsivonen $
Author:
hsivonen

Field Summary
private  Attributes attributes
          The attributes.
private  String localName
          The local name.
private  List<PrefixMapping> prefixMappings
          The namespace prefix mappings.
private  String qName
          The qualified name.
private  String uri
          The namespace URI.
 
Fields inherited from class nu.validator.saxtree.ParentNode
endLocator
 
Constructor Summary
Element(Locator locator, String uri, String localName, String qName, Attributes atts, boolean retainAttributes, List<PrefixMapping> prefixMappings)
          The contructor.
 
Method Summary
 Attributes getAttributes()
          Returns the attributes.
 String getLocalName()
          Returns the localName.
 NodeType getNodeType()
          Return the node type.
 List<PrefixMapping> getPrefixMappings()
          Returns the prefixMappings.
 String getQName()
          Returns the qName.
 String getUri()
          Returns the uri.
(package private)  void revisit(TreeParser treeParser)
          Revisit the node.
(package private)  void visit(TreeParser treeParser)
          Visit the node.
 
Methods inherited from class nu.validator.saxtree.ParentNode
appendChild, appendChildren, copyEndLocator, getFirstChild, getLastChild, insertBefore, insertBetween, removeChild, setEndLocator
 
Methods inherited from class nu.validator.saxtree.Node
detach, getColumnNumber, getData, getLineNumber, getName, getNextSibling, getParentNode, getPreviousSibling, getPublicId, getPublicIdentifier, getSystemId, getSystemIdentifier, getTarget, setNextSibling, setParentNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

uri

private final String uri
The namespace URI.


localName

private final String localName
The local name.


qName

private final String qName
The qualified name.


attributes

private final Attributes attributes
The attributes.


prefixMappings

private final List<PrefixMapping> prefixMappings
The namespace prefix mappings.

Constructor Detail

Element

public Element(Locator locator,
               String uri,
               String localName,
               String qName,
               Attributes atts,
               boolean retainAttributes,
               List<PrefixMapping> prefixMappings)
The contructor.

Parameters:
locator - the locator.
uri - the namespace URI
localName - the local name
qName - the qualified name
atts - the attributes
retainAttributes - true to retain the attributes instead of copying
prefixMappings - the prefix mappings
Method Detail

visit

void visit(TreeParser treeParser)
     throws SAXException
Description copied from class: Node
Visit the node.

Specified by:
visit in class Node
Parameters:
treeParser - the visitor
Throws:
SAXException - if stuff goes wrong
See Also:
Node.visit(nu.validator.saxtree.TreeParser)

revisit

void revisit(TreeParser treeParser)
       throws SAXException
Description copied from class: Node
Revisit the node.

Overrides:
revisit in class Node
Parameters:
treeParser - the visitor
Throws:
SAXException - if stuff goes wrong
See Also:
Node.revisit(nu.validator.saxtree.TreeParser)

getAttributes

public Attributes getAttributes()
Returns the attributes.

Overrides:
getAttributes in class Node
Returns:
the attributes

getLocalName

public String getLocalName()
Returns the localName.

Overrides:
getLocalName in class Node
Returns:
the localName

getPrefixMappings

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

Overrides:
getPrefixMappings in class Node
Returns:
the prefixMappings

getQName

public String getQName()
Returns the qName.

Overrides:
getQName in class Node
Returns:
the qName

getUri

public String getUri()
Returns the uri.

Overrides:
getUri in class Node
Returns:
the uri

getNodeType

public NodeType getNodeType()
Description copied from class: Node
Return the node type.

Specified by:
getNodeType in class Node
Returns:
the node type
See Also:
Node.getNodeType()