- 所有已知的实现类:
-
IIOMetadataNode
public interface NodeList
NodeList接口提供了节点的有序集合的抽象,而不定义或限制如何实现此集合。DOM中的NodeList对象是动态的。
NodeList中的项可以通过整数索引访问,从0开始。
-
Method Summary
-
Method Details
-
item
返回集合中的第index项。如果index大于或等于列表中的节点数,则返回null。- 参数:
-
index- 集合中的索引。 - 返回:
-
NodeList中第index位置的节点,如果索引无效则返回null。
-
getLength
int getLength()列表中节点的数量。有效子节点索引的范围是从0到length-1。
-