public interface NameList
NameList接口提供了抽象的有序集合的并行双名称和命名空间值(可以是空值),而不限定或限制如何集合实现。在
NameList项目都可以通过积分指数,从0开始。
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String str)
测试是否有叫这个
NameList部分。
|
boolean |
containsNS(String namespaceURI, String name)
如果对测试namespaceuri /叫这
NameList部分。
|
int |
getLength()
对的数目(名称和namespaceuri)列表中。
|
String |
getName(int index)
返回
indexth名称项集合中的。
|
String |
getNamespaceURI(int index)
返回
indexth namespaceuri项集合中的。
|
String getName(int index)
indexth名称项集合中的。
index索引到集合。
NameList的
indexth职位名称,或
null如果索引超出范围没有名称为指定的索引或。
String getNamespaceURI(int index)
indexth namespaceuri项集合中的。
index索引到集合。
NameList的
indexth位置的命名空间URI或
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.