Class Element

  • All Implemented Interfaces:
    org.xml.sax.Locator

    public final class Element
    extends ParentNode
    An element.
    Version:
    $Id$
    • Field Detail

      • uri

        private final java.lang.String uri
        The namespace URI.
      • localName

        private final java.lang.String localName
        The local name.
      • qName

        private final java.lang.String qName
        The qualified name.
      • attributes

        private final org.xml.sax.Attributes attributes
        The attributes.
      • prefixMappings

        private final java.util.List<PrefixMapping> prefixMappings
        The namespace prefix mappings.
    • 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