public interface NameList
NameList接口提供了并行对的名称和命名空间值(可以是空值)的有序集合的抽象,而不定义或约束如何实现此集合。
NameList中的项目可以通过整数索引访问,从0开始。
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String str)
测试一个名字是否是这个
NameList一部分。
|
boolean |
containsNS(String namespaceURI, String name)
测试对namespaceURI / name是否是这个
NameList一部分。
|
int |
getLength()
列表中的对数(name和namespaceURI)。
|
String |
getName(int index)
返回
index中的index名称项。
|
String |
getNamespaceURI(int index)
返回
index th namespaceURI项目。
|
String getName(int index)
index个名称项。
index - 索引到集合。
index在个位置
NameList ,或
null如果不存在用于指定的索引,如果索引超出范围没有名字。
String getNamespaceURI(int index)
index th namespaceURI项。
index - 索引到集合。
index在个位置
NameList ,或
null如果不存在用于指定的索引,如果索引超出范围没有名字。
int getLength()
length-1含)。
boolean contains(String str)
NameList一部分。
str - 要查找的名称。
true如果名称已经找到,
false否则。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.