DOMNodeList
class in package klyn.io.xml.dom

    public class DOMNodeList extends ArrayList<DOMElement> implements NodeList:

Object
└ ArrayList
└ DOMNodeList
All Implemented Interfaces: NodeList

Element list compatible with both Klyn lists and DOM NodeList.

Example

    import klyn.io.xml.dom

    nodes = DOMNodeList()
    print(nodes.length)

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | length `length as Int:` | Number of nodes in the list.

Inherited Properties
property Inherited Properties from ArrayList: size
property Inherited Properties from NodeList: length
property Inherited Properties from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | DOMNodeList `DOMNodeList():` | Creates an empty DOM element list.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | add `add(item as DOMElement) as Void:` | Adds an element to the DOM node list.
public | item `item(index as Int) as Node:` | Returns the node at an index.

Inherited Methods
method Inherited Methods from ArrayList: add, add, addAll, addAll, addAll, addAll, addAll, addAll, clear, count, indexOf, join, lastIndexOf, remove, removeAt, reverse, reverseNew, shuffle, sort, sortNew, toString
method Inherited Methods from NodeList: item
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toXml
method Inherited Methods from List: add, add, addAll, addAll, addAll, addAll, addAll, addAll, remove, removeAt, reverse, reverseNew, shuffle, sort, sortNew
method Inherited Methods from Collection: count, toString
Inherited Operators
operator Inherited Operators from ArrayList: operator in(item as T) as Boolean, operator+(readonly notnull left as ArrayList<T>, readonly notnull right as ArrayList<T>) as ArrayList<T>, operator+=(values as IList<T>) as Void, operator+=(values as Set<T>) as Void, operator+=(values as Tuple) as Void, operator[](index as Int) as T
operator Inherited Operators from List: operator+(left as List<T>, right as List<T>) as List<T>, operator+=(values as IList<T>) as Void, operator+=(values as Set<T>) as Void, operator+=(values as Tuple) as Void
operator Inherited Operators from Collection: operator in(item as T) as Boolean