Class NamedNodeMap<T extends BaseNode>


  • @JsType(isNative=true,
            namespace="<global>")
    public final class NamedNodeMap<T extends BaseNode>
    extends Object
    Represents a collection of attributes objects.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • NamedNodeMap

        public NamedNodeMap()
    • Method Detail

      • length

        @JsProperty(name="length")
        public int length()
        Returns the number of nodes in the node map.
        Returns:
        the number of nodes in the node map.
      • item

        @JsMethod
        public T item​(int index)
        Returns an item in the map by its index, or null if the index is out-of-bounds.
        Parameters:
        index - the index of the node to be fetched.
        The index is zero-based.
        Returns:
        is the indexTH node in the node list or null if the index is out-of-bounds