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:
org.xml.sax.Locator

public final class Element
extends ParentNode

An element.

Version:
$Id$
Author:
hsivonen

Field Summary
 
Fields inherited from class nu.validator.saxtree.ParentNode
endLocator
 
Constructor Summary
Element(org.xml.sax.Locator locator, java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts, boolean retainAttributes, java.util.List<PrefixMapping> prefixMappings)
          The contructor.
 
Method Summary
 org.xml.sax.Attributes getAttributes()
          Returns the attributes.
 java.lang.String getLocalName()
          Returns the localName.
 NodeType getNodeType()
          Return the node type.
 java.util.List<PrefixMapping> getPrefixMappings()
          Returns the prefixMappings.
 java.lang.String getQName()
          Returns the qName.
 java.lang.String getUri()
          Returns the uri.
 
Methods inherited from class nu.validator.saxtree.ParentNode
appendChild, appendChildren, copyEndLocator, getFirstChild, getLastChild, insertBefore, insertBetween, setEndLocator
 
Methods inherited from class nu.validator.saxtree.Node
detach, getColumnNumber, getData, getLineNumber, getName, getNextSibling, getParentNode, getPreviousSibling, getPublicId, getPublicIdentifier, getSystemId, getSystemIdentifier, getTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Element

public Element(org.xml.sax.Locator locator,
               java.lang.String uri,
               java.lang.String localName,
               java.lang.String qName,
               org.xml.sax.Attributes atts,
               boolean retainAttributes,
               java.util.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

getAttributes

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

Overrides:
getAttributes in class Node
Returns:
the attributes

getLocalName

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

Overrides:
getLocalName in class Node
Returns:
the localName

getPrefixMappings

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

Overrides:
getPrefixMappings in class Node
Returns:
the prefixMappings

getQName

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

Overrides:
getQName in class Node
Returns:
the qName

getUri

public java.lang.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()