com.aspose.html.dom

Class Attr

    • Constructor Detail

      • Attr

        public Attr(DOMName name,
                    Document doc)

        Initializes a new instance of the Attr class.

        Parameters:
        name - The argument name.
        doc - The document.
    • Method Detail

      • getSpecified

        @DOMNameAttribute(name="specified")
        public boolean getSpecified()

        True if this attribute was explicitly given a value in the instance document, false otherwise.

        Value: true if specified; otherwise, false.
      • setSpecified

        @DOMNameAttribute(name="specified")
        public void setSpecified(boolean value)

        True if this attribute was explicitly given a value in the instance document, false otherwise.

        Value: true if specified; otherwise, false.
      • getValue

        @DOMNameAttribute(name="value")
        public String getValue()

        On retrieval, the value of the attribute is returned as a string.

        Value: The value.
      • setValue

        @DOMNameAttribute(name="value")
        public void setValue(String value)

        On retrieval, the value of the attribute is returned as a string.

        Value: The value.
      • getOwnerElement

        @DOMNameAttribute(name="ownerElement")
        public Element getOwnerElement()

        The Element node this attribute is attached to or null if this attribute is not in use.

      • setOwnerElement

        @DOMNameAttribute(name="ownerElement")
        public void setOwnerElement(Element value)

        The Element node this attribute is attached to or null if this attribute is not in use.

      • getSchemaTypeInfo

        @DOMNameAttribute(name="schemaTypeInfo")
        public TypeInfo getSchemaTypeInfo()

        The type information associated with this attribute.

      • isId

        @DOMNameAttribute(name="isId")
        public boolean isId()

        Returns whether this attribute is known to be of type ID (i.e. to contain an identifier for its owner element) or not.

        Value: true if this instance is id; otherwise, false.
      • setId

        @DOMNameAttribute(name="isId")
        public void setId(boolean value)

        Returns whether this attribute is known to be of type ID (i.e. to contain an identifier for its owner element) or not.

        Value: true if this instance is id; otherwise, false.
      • getNodeName

        public String getNodeName()

        The name of this node, depending on its type.

        Value: The name of the node.
        Specified by:
        getNodeName in class Node
      • getNodeValue

        public String getNodeValue()

        The value of this node, depending on its type.

        Value: The node value.
        Overrides:
        getNodeValue in class Node
      • setNodeValue

        public void setNodeValue(String value)

        The value of this node, depending on its type.

        Value: The node value.
        Overrides:
        setNodeValue in class Node
      • getLocalName

        public String getLocalName()

        Returns the local part of the qualified name of this node. For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with a DOM Level 1 method, such as Document.createElement(), this is always null.

        Value: The name of the local.
        Overrides:
        getLocalName in class Node
      • getNamespaceURI

        public String getNamespaceURI()

        The namespace URI of this node, or null if it is unspecified.

        Overrides:
        getNamespaceURI in class Node
      • getPrefix

        public String getPrefix()

        The namespace prefix of this node, or null if it is unspecified. When it is defined to be null, setting it has no effect

        Value: The prefix.
        Overrides:
        getPrefix in class Node
      • getNodeType

        public int getNodeType()

        A code representing the type of the underlying object.

        Value: The type of the node.
        Specified by:
        getNodeType in class Node
      • cloneNode

        public Node cloneNode(boolean deep)

        Returns a duplicate of this node, i.e., serves as a generic copy constructor for nodes. The duplicate node has no parent (parentNode is null) and no user data.

        Specified by:
        cloneNode in class Node
        Parameters:
        deep - if set to true [deep].
        Returns:
        Returns node
      • setEventListener

        public void setEventListener(IEventListener value)