public interface Attributes extends Cloneable, Serializable
在一个目录中,命名的对象可以与它们关联的属性。属性接口表示属性的集合。例如,您可以从目录中请求与对象关联的属性。这些属性将返回一个实现属性接口的对象中。
在实现接口的对象的属性,属性是无序的。该对象可以有零或更多的属性。属性是区分大小写或大小写不区分大小写(情况忽略)。此属性在创建属性对象时被确定。(见基本的属性构造函数为例)。在不区分大小写属性的情况下,在搜索属性或添加属性时忽略了属性标识符的情况。在一个敏感属性的情况下,该情况是显着的。
请注意,对属性的更新(如添加或删除属性)不影响目录中的相应表示。目录的更新只能在DirContext接口使用操作的影响。
DirContext.getAttributes(javax.naming.Name)
,
DirContext.modifyAttributes(javax.naming.Name, int, javax.naming.directory.Attributes)
,
DirContext.bind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes)
,
DirContext.rebind(javax.naming.Name, java.lang.Object, javax.naming.directory.Attributes)
,
DirContext.createSubcontext(javax.naming.Name, javax.naming.directory.Attributes)
,
DirContext.search(javax.naming.Name, javax.naming.directory.Attributes, java.lang.String[])
,
BasicAttributes
Modifier and Type | Method and Description |
---|---|
Object |
clone()
使属性集的副本。
|
Attribute |
get(String attrID)
从属性集从给定的属性标识检索属性。
|
NamingEnumeration<? extends Attribute> |
getAll()
检索属性集中的属性的枚举数。
|
NamingEnumeration<String> |
getIDs()
检索属性集中属性的入侵检测系统的枚举数。
|
boolean |
isCaseIgnored()
确定在检索或添加属性时,属性集是否忽略了属性标识符的情况。
|
Attribute |
put(Attribute attr)
在属性集上添加一个新属性。
|
Attribute |
put(String attrID, Object val)
在属性集上添加一个新属性。
|
Attribute |
remove(String attrID)
删除属性与属性ID的attrid从属性集。
|
int |
size()
检索属性集中的属性的数目。
|
boolean isCaseIgnored()
int size()
Attribute get(String attrID)
attrID
-非空的ID属性来检索。如果此属性设置无视其属性特征的入侵检测系统,attrid案件被忽略。
put(java.lang.String, java.lang.Object)
,
remove(java.lang.String)
NamingEnumeration<? extends Attribute> getAll()
NamingEnumeration<String> getIDs()
Attribute put(String attrID, Object val)
attrID
-非空的属性ID添加。如果属性集无视其属性特征的入侵检测系统的情况下,attrid案件被忽略。
val
-属性的可能值增加。如果为空,该属性不具有任何值。
remove(java.lang.String)
Attribute put(Attribute attr)
attr
-非空属性添加。如果属性集无视其属性标识字符的情况下,以属性的标识符被忽视。
remove(java.lang.String)
Attribute remove(String attrID)
attrID
-非空的ID属性删除。如果属性集无视其属性特征的入侵检测系统的情况下,attrid案件被忽略。
Object clone()
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.