com.aspose.html.collections

Class NamedNodeMap

    • Constructor Detail

      • NamedNodeMap

        public NamedNodeMap(Element element)

        Initializes a new instance of the NamedNodeMap class.

        Parameters:
        element - The element.
    • Method Detail

      • get_Item

        public Attr get_Item(String name)

        Gets the Attr with the specified name.

        Parameters:
        name - The attribute name. Value: The Attr.
        Returns:
        Returns node.
      • getNamedItem

        @DOMNameAttribute(name="getNamedItem")
        public Attr getNamedItem(String name)

        Retrieves a node specified by name.

        Parameters:
        name - The node name.
        Returns:
        Returns node.
      • getNamedItemNS

        @DOMNameAttribute(name="getNamedItemNS")
        public Attr getNamedItemNS(String namespaceURI,
                                                                             String localName)

        Retrieves a node specified by local name and namespace URI.

        Parameters:
        namespaceURI - The namespace URI.
        localName - Name of the local.
        Returns:
        Returns node.
      • setNamedItem

        @DOMNameAttribute(name="setNamedItem")
        public Attr setNamedItem(Attr attr)

        Adds a node using its nodeName attribute. If a node with that name is already present in this map, it is replaced by the new one. Replacing a node by itself has no effect.

        Parameters:
        attr - The attribute.
        Returns:
        Returns node.
        Throws:
        DOMException
      • setNamedItemNS

        @DOMNameAttribute(name="setNamedItemNS")
        public Attr setNamedItemNS(Attr attr)

        Adds a node using its namespaceURI and localName. If a node with that namespace URI and that local name is already present in this map, it is replaced by the new one. Replacing a node by itself has no effect.

        Parameters:
        attr - The attribute.
        Returns:
        Returns node.
        Throws:
        DOMException
      • removeNamedItem

        @DOMNameAttribute(name="removeNamedItem")
        public Attr removeNamedItem(String name)

        Removes a node specified by name.

        Parameters:
        name - The element name.
        Returns:
        Removed node.
      • removeNamedItemNS

        @DOMNameAttribute(name="removeNamedItemNS")
        public Attr removeNamedItemNS(String namespaceURI,
                                                                                   String localName)

        Removes a node specified by local name and namespace URI.

        Parameters:
        namespaceURI - The namespace URI.
        localName - Name of the local.
        Returns:
        Returns node.
      • iterator

        public com.aspose.ms.System.Collections.Generic.IGenericEnumerator<Attr> iterator()

        Returns an enumerator that iterates through the collection.

        Specified by:
        iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Attr>
        Specified by:
        iterator in interface com.aspose.ms.System.Collections.IEnumerable<Attr>
        Specified by:
        iterator in interface Iterable<Attr>
        Returns:
        A T:System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.
      • iterator_Rename_Namesake

        public com.aspose.ms.System.Collections.IEnumerator iterator_Rename_Namesake()

        Returns an enumerator that iterates through a collection.

        Returns:
        An T:System.Collections.IEnumerator object that can be used to iterate through the collection.
      • append

        public void append(Attr attr)
      • change

        public void change(Attr attr,
                           String value)
      • setAttributeValue

        public void setAttributeValue(String namespaceURI,
                                      String prefix,
                                      String localName,
                                      String value)