Class Element

All Implemented Interfaces:
Locator

public final class Element extends ParentNode
An element.
Version:
$Id$
Author:
hsivonen
  • Constructor Details

    • 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 Details

    • 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: