Class XMLElement

  • All Implemented Interfaces:
    java.lang.Cloneable, org.w3c.dom.Element, org.w3c.dom.Node
    Direct Known Subclasses:
    SVGAnimate, SVGEntity, SVGSet

    public class XMLElement
    extends XMLNode
    implements org.w3c.dom.Element
    • Constructor Detail

      • XMLElement

        public XMLElement​(java.lang.String name,
                          java.lang.String value)
      • XMLElement

        public XMLElement​(java.lang.String name)
      • XMLElement

        public XMLElement()
    • Method Detail

      • cloneNode

        public org.w3c.dom.Node cloneNode​(boolean deep)
        Specified by:
        cloneNode in interface org.w3c.dom.Node
        Overrides:
        cloneNode in class XMLNode
      • setOwnerDocument

        public void setOwnerDocument​(org.w3c.dom.Document owner,
                                     boolean deep)
        Overrides:
        setOwnerDocument in class XMLNode
      • compareDocumentPosition

        public short compareDocumentPosition​(org.w3c.dom.Node other)
                                      throws org.w3c.dom.DOMException
        Specified by:
        compareDocumentPosition in interface org.w3c.dom.Node
        Overrides:
        compareDocumentPosition in class XMLNode
        Throws:
        org.w3c.dom.DOMException
      • getNodeType

        public short getNodeType()
        Specified by:
        getNodeType in interface org.w3c.dom.Node
      • getTagName

        public java.lang.String getTagName()
        Specified by:
        getTagName in interface org.w3c.dom.Element
      • getAttributes

        public org.w3c.dom.NamedNodeMap getAttributes()
        Specified by:
        getAttributes in interface org.w3c.dom.Node
        Overrides:
        getAttributes in class XMLNode
      • getAttribute

        public java.lang.String getAttribute​(java.lang.String name)
        Specified by:
        getAttribute in interface org.w3c.dom.Element
      • setAttribute

        public void setAttribute​(java.lang.String name,
                                 java.lang.String value)
                          throws org.w3c.dom.DOMException
        Specified by:
        setAttribute in interface org.w3c.dom.Element
        Throws:
        org.w3c.dom.DOMException
      • removeAttribute

        public void removeAttribute​(java.lang.String name)
                             throws org.w3c.dom.DOMException
        Specified by:
        removeAttribute in interface org.w3c.dom.Element
        Throws:
        org.w3c.dom.DOMException
      • getAttributeNode

        public org.w3c.dom.Attr getAttributeNode​(java.lang.String name)
        Specified by:
        getAttributeNode in interface org.w3c.dom.Element
      • setAttributeNode

        public org.w3c.dom.Attr setAttributeNode​(org.w3c.dom.Attr newAttr)
                                          throws org.w3c.dom.DOMException
        Specified by:
        setAttributeNode in interface org.w3c.dom.Element
        Throws:
        org.w3c.dom.DOMException
      • removeAttributeNode

        public org.w3c.dom.Attr removeAttributeNode​(org.w3c.dom.Attr oldAttr)
                                             throws org.w3c.dom.DOMException
        Specified by:
        removeAttributeNode in interface org.w3c.dom.Element
        Throws:
        org.w3c.dom.DOMException
      • setAttributeNodes

        public void setAttributeNodes​(org.w3c.dom.NamedNodeMap attrList)
      • getElementsByTagName

        public org.w3c.dom.NodeList getElementsByTagName​(java.lang.String tagName)
        Specified by:
        getElementsByTagName in interface org.w3c.dom.Element
      • getAttributeNS

        public java.lang.String getAttributeNS​(java.lang.String namespaceURI,
                                               java.lang.String localName)
                                        throws org.w3c.dom.DOMException
        Specified by:
        getAttributeNS in interface org.w3c.dom.Element
        Throws:
        org.w3c.dom.DOMException
      • setAttributeNS

        public void setAttributeNS​(java.lang.String namespaceURI,
                                   java.lang.String qualifiedName,
                                   java.lang.String value)
                            throws org.w3c.dom.DOMException
        Specified by:
        setAttributeNS in interface org.w3c.dom.Element
        Throws:
        org.w3c.dom.DOMException
      • removeAttributeNS

        public void removeAttributeNS​(java.lang.String namespaceURI,
                                      java.lang.String localName)
                               throws org.w3c.dom.DOMException
        Specified by:
        removeAttributeNS in interface org.w3c.dom.Element
        Throws:
        org.w3c.dom.DOMException
      • getAttributeNodeNS

        public org.w3c.dom.Attr getAttributeNodeNS​(java.lang.String namespaceURI,
                                                   java.lang.String localName)
                                            throws org.w3c.dom.DOMException
        Specified by:
        getAttributeNodeNS in interface org.w3c.dom.Element
        Throws:
        org.w3c.dom.DOMException
      • setAttributeNodeNS

        public org.w3c.dom.Attr setAttributeNodeNS​(org.w3c.dom.Attr newAttr)
                                            throws org.w3c.dom.DOMException
        Specified by:
        setAttributeNodeNS in interface org.w3c.dom.Element
        Throws:
        org.w3c.dom.DOMException
      • getElementsByTagNameNS

        public org.w3c.dom.NodeList getElementsByTagNameNS​(java.lang.String namespaceURI,
                                                           java.lang.String localName)
                                                    throws org.w3c.dom.DOMException
        Specified by:
        getElementsByTagNameNS in interface org.w3c.dom.Element
        Throws:
        org.w3c.dom.DOMException
      • hasAttributes

        public boolean hasAttributes()
        Specified by:
        hasAttributes in interface org.w3c.dom.Node
        Overrides:
        hasAttributes in class XMLNode
      • hasAttribute

        public boolean hasAttribute​(java.lang.String name)
        Specified by:
        hasAttribute in interface org.w3c.dom.Element
      • hasAttributeNS

        public boolean hasAttributeNS​(java.lang.String namespaceURI,
                                      java.lang.String localName)
                               throws org.w3c.dom.DOMException
        Specified by:
        hasAttributeNS in interface org.w3c.dom.Element
        Throws:
        org.w3c.dom.DOMException
      • getSchemaTypeInfo

        public org.w3c.dom.TypeInfo getSchemaTypeInfo()
        Specified by:
        getSchemaTypeInfo in interface org.w3c.dom.Element
      • setIdAttribute

        public void setIdAttribute​(java.lang.String name,
                                   boolean isId)
                            throws org.w3c.dom.DOMException
        Specified by:
        setIdAttribute in interface org.w3c.dom.Element
        Throws:
        org.w3c.dom.DOMException
      • setIdAttributeNS

        public void setIdAttributeNS​(java.lang.String namespaceURI,
                                     java.lang.String localName,
                                     boolean isId)
                              throws org.w3c.dom.DOMException
        Specified by:
        setIdAttributeNS in interface org.w3c.dom.Element
        Throws:
        org.w3c.dom.DOMException
      • setIdAttributeNode

        public void setIdAttributeNode​(org.w3c.dom.Attr idAttr,
                                       boolean isId)
                                throws org.w3c.dom.DOMException
        Specified by:
        setIdAttributeNode in interface org.w3c.dom.Element
        Throws:
        org.w3c.dom.DOMException
      • getTextContent

        public java.lang.String getTextContent()
                                        throws org.w3c.dom.DOMException
        Specified by:
        getTextContent in interface org.w3c.dom.Node
        Throws:
        org.w3c.dom.DOMException