com.aspose.html.dom.mutations

Class MutationRecord

    • Constructor Detail

      • MutationRecord

        public MutationRecord(String type,
                              Node target,
                              com.aspose.html.internal.ms.System.Collections.Generic.IGenericList<Node> addedNodes,
                              com.aspose.html.internal.ms.System.Collections.Generic.IGenericList<Node> removedNodes,
                              Node previousSibling,
                              Node nextSibling,
                              String attributeName,
                              String attributeNamespace,
                              String oldValue)

        Initializes a new instance of the MutationRecord class.

        Parameters:
        type - The type.
        target - The target.
        addedNodes - The added nodes.
        removedNodes - The removed nodes.
        previousSibling - The previous sibling.
        nextSibling - The next sibling.
        attributeName - Name of the attribute.
        attributeNamespace - The attribute namespace.
        oldValue - The old value.
    • Method Detail

      • getType

        public String getType()

        Returns "attributes" if it was an attribute mutation, "characterData" if it was a mutation to a CharacterData node and "childList" if it was a mutation to the tree of nodes.

        Value: The type.
      • setType

        public void setType(String value)

        Returns "attributes" if it was an attribute mutation, "characterData" if it was a mutation to a CharacterData node and "childList" if it was a mutation to the tree of nodes.

        Value: The type.
      • getTarget

        public Node getTarget()

        Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed.

        Value: The target.
      • setTarget

        public void setTarget(Node value)

        Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed.

        Value: The target.
      • getAddedNodes

        public com.aspose.html.internal.ms.System.Collections.Generic.IGenericList<Node> getAddedNodes()

        Return the nodes added.

        Value: The added nodes.
      • setAddedNodes

        public void setAddedNodes(com.aspose.html.internal.ms.System.Collections.Generic.IGenericList<Node> value)

        Return the nodes added.

        Value: The added nodes.
      • getRemovedNodes

        public com.aspose.html.internal.ms.System.Collections.Generic.IGenericList<Node> getRemovedNodes()

        Return the nodes removed.

        Value: The removed nodes.
      • setRemovedNodes

        public void setRemovedNodes(com.aspose.html.internal.ms.System.Collections.Generic.IGenericList<Node> value)

        Return the nodes removed.

        Value: The removed nodes.
      • getPreviousSibling

        public Node getPreviousSibling()

        Returns the previous sibling of the added or removed nodes, or null.

        Value: The previous sibling.
      • setPreviousSibling

        public void setPreviousSibling(Node value)

        Returns the previous sibling of the added or removed nodes, or null.

        Value: The previous sibling.
      • getNextSibling

        public Node getNextSibling()

        Return the next sibling of the added or removed nodes, or null.

        Value: The next sibling.
      • setNextSibling

        public void setNextSibling(Node value)

        Return the next sibling of the added or removed nodes, or null.

        Value: The next sibling.
      • getAttributeName

        public String getAttributeName()

        Returns the local name of the changed attribute, and null otherwise.

        Value: The name of the attribute.
      • setAttributeName

        public void setAttributeName(String value)

        Returns the local name of the changed attribute, and null otherwise.

        Value: The name of the attribute.
      • getAttributeNamespace

        public String getAttributeNamespace()

        Returns the namespace of the changed attribute, and null otherwise.

        Value: The attribute namespace.
      • setAttributeNamespace

        public void setAttributeNamespace(String value)

        Returns the namespace of the changed attribute, and null otherwise.

        Value: The attribute namespace.
      • getOldValue

        public String getOldValue()

        The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null.

        Value: The old value.
      • setOldValue

        public void setOldValue(String value)

        The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null.

        Value: The old value.