Class Property

  • All Implemented Interfaces:
    java.io.Serializable, org.w3c.dom.Attr, org.w3c.dom.Node

    public class Property
    extends NodeImpl
    implements org.w3c.dom.Attr
    This class represents the attribute in terms of XML concepts.
    Since:
    7.0
    See Also:
    Serialized Form
    • Constructor Detail

      • Property

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

        public Property​(java.lang.String qualifiedName,
                        java.lang.String namespaceURI)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface org.w3c.dom.Attr
        Returns:
        the fully qualified name of the Property
      • getOwnerElement

        public Attribute getOwnerElement()
        Specified by:
        getOwnerElement in interface org.w3c.dom.Attr
        Returns:
        the owner element
      • getSchemaTypeInfo

        public org.w3c.dom.TypeInfo getSchemaTypeInfo()
        Specified by:
        getSchemaTypeInfo in interface org.w3c.dom.Attr
        Returns:
        null
      • getSpecified

        public boolean getSpecified()
        Specified by:
        getSpecified in interface org.w3c.dom.Attr
        Returns:
        true
      • getValue

        public java.lang.String getValue()
        Specified by:
        getValue in interface org.w3c.dom.Attr
        Returns:
        the value of the property
      • isId

        public boolean isId()
        Specified by:
        isId in interface org.w3c.dom.Attr
        Returns:
        false
      • setValue

        public void setValue​(java.lang.String value)
                      throws DOMException
        Sets the value of the Property.
        Specified by:
        setValue in interface org.w3c.dom.Attr
        Throws:
        DOMException
      • appendChild

        public org.w3c.dom.Node appendChild​(org.w3c.dom.Node arg0)
                                     throws DOMException
        Not applicable for properties. Does nothing.
        Specified by:
        appendChild in interface org.w3c.dom.Node
        Overrides:
        appendChild in class NodeImpl
        Returns:
        null;
        Throws:
        DOMException
      • cloneNode

        public org.w3c.dom.Node cloneNode​(boolean arg0)
        Specified by:
        cloneNode in interface org.w3c.dom.Node
        Returns:
        a new Property object that is a copy of this Property but does not belong to any Entry or Attribute.
      • compareDocumentPosition

        public short compareDocumentPosition​(org.w3c.dom.Node arg0)
                                      throws DOMException
        Not applicable for properties Does nothing.
        Specified by:
        compareDocumentPosition in interface org.w3c.dom.Node
        Overrides:
        compareDocumentPosition in class NodeImpl
        Returns:
        0;
        Throws:
        DOMException - - never
      • getLocalName

        public java.lang.String getLocalName()
        Specified by:
        getLocalName in interface org.w3c.dom.Node
        Returns:
        the local name of the Property.
      • getNodeType

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

        public java.lang.String getNodeValue()
                                      throws DOMException
        Specified by:
        getNodeValue in interface org.w3c.dom.Node
        Returns:
        the value of this Property
        Throws:
        DOMException
      • isEqualNode

        public boolean isEqualNode​(org.w3c.dom.Node other)
        Specified by:
        isEqualNode in interface org.w3c.dom.Node
        Overrides:
        isEqualNode in class NodeImpl
        Returns:
        true if the other node, passed as parameter, is an object of type Property, has the same qualified name, same namespace URI and the same value, otherwise returns false.
      • setPrefix

        public void setPrefix​(java.lang.String prefix)
                       throws DOMException
        This method sets the given prefix to the Property. If the prefix is "xmlns" then it is considered that the Property defines a prefix to namespace in terms of XML concepts, thus the namespace is set to be "http://www.w3.org/2000/xmlns/". The same namespace is automatically set if the prefix is either null or an empty string and the name of the Property is "xmlns".
        Specified by:
        setPrefix in interface org.w3c.dom.Node
        Parameters:
        prefix - - the prefix that should be set to this Property
        Throws:
        DOMException
      • internalNSLookup

        protected java.lang.String internalNSLookup​(java.lang.String prefix)
        Overrides:
        internalNSLookup in class NodeImpl
      • internalLookupPrefix

        protected java.lang.String internalLookupPrefix​(java.lang.String namespaceURI)
        Overrides:
        internalLookupPrefix in class NodeImpl
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        the value of this Property
      • getOwnerDocument

        public org.w3c.dom.Document getOwnerDocument()
        Specified by:
        getOwnerDocument in interface org.w3c.dom.Node
        Overrides:
        getOwnerDocument in class NodeImpl
      • getNamespaceURI

        public java.lang.String getNamespaceURI()
        Specified by:
        getNamespaceURI in interface org.w3c.dom.Node
      • getPrefix

        public java.lang.String getPrefix()
        Specified by:
        getPrefix in interface org.w3c.dom.Node