T
- the type of contained nodepublic class NodeCollection<T extends Node> extends JavaScriptObject
Modifier | Constructor and Description |
---|---|
protected |
NodeCollection() |
Modifier and Type | Method and Description |
---|---|
T |
getItem(int index)
This method retrieves a node specified by ordinal index.
|
int |
getLength()
This attribute specifies the length or size of the list.
|
T |
getNamedItem(java.lang.String name)
This method retrieves a Node using a name.
|
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
public final T getItem(int index)
index
- The index of the node to be fetched. The index origin is 0.public final int getLength()
public final T getNamedItem(java.lang.String name)
name
- The name of the Node to be fetched.