com.aspose.html.dom

Class Attr

    • Constructor Detail

      • Attr

        public Attr(com.aspose.html.dom.DOMName name,
                    Document doc)

        Initializes a new instance of the Attr class.

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

      • setValue

        public static void setValue(Element element,
                                    Attr attr,
                                    String value)
      • 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.
      • 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
      • getTextContent

        public String getTextContent()

        This attribute returns the text content of this node and its descendants. When it is defined to be null, setting it has no effect. On setting, any possible children this node may have are removed and, if it the new string is not empty or null, replaced by a single Text node containing the string this attribute is set to.

        Value: The content of the text.
        Overrides:
        getTextContent in class Node
      • setTextContent

        public void setTextContent(String value)

        This attribute returns the text content of this node and its descendants. When it is defined to be null, setting it has no effect. On setting, any possible children this node may have are removed and, if it the new string is not empty or null, replaced by a single Text node containing the string this attribute is set to.

        Value: The content of the text.
        Overrides:
        setTextContent 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