|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ietf.ldap.LDAPAttributeSet
An LDAPAttributeSet
is a collection of LDAPAttribute
classes as returned from an LDAPEntry
on a search or read
operation. LDAPAttributeSet
may be also used to contruct an entry
to be added to a directory.
Constructor Summary | |
LDAPAttributeSet()
Constructs an empty set of attributes. |
Method Summary | |
boolean |
add(java.lang.Object attr)
Adds the specified attribute to this attribute set. |
boolean |
addAll(java.util.Collection attrs)
Adds all the specified attributes to this attribute set. |
void |
clear()
Removes all the attributes from this attribute set. |
java.lang.Object |
clone()
Returns a deep copy of this attribute set. |
boolean |
contains(java.lang.Object attr)
Returns true if this AttributeSet contains the specified Attribute. |
boolean |
containsAll(java.util.Collection attrs)
Returns true if this Attribute set contains all the attributes in the specified collection. |
boolean |
equals(java.lang.Object set)
Compares the specified object with this set for equality. |
LDAPAttribute |
getAttribute(java.lang.String attrName)
Returns the attribute matching the specified attrName. |
LDAPAttribute |
getAttribute(java.lang.String attrName,
java.lang.String lang)
Returns a single best-match attribute, or null if no match is available in the entry. |
LDAPAttributeSet |
getSubset(java.lang.String subtype)
Creates a new attribute set containing only the attributes that have the specified subtypes. |
int |
hashCode()
Returns the hash code value for this set. |
boolean |
isEmpty()
Returns true if there are no elements in this set. |
java.util.Iterator |
iterator()
Returns an iterator over the elements of this set. |
boolean |
remove(java.lang.Object obj)
Removes the specified LDAPAttribute object from the set. |
boolean |
removeAll(java.util.Collection attrs)
Returns from this set all the elements that are contained in the specified collection. |
boolean |
retainAll(java.util.Collection attrs)
Retains only the elements that are contained in the specified collection. |
int |
size()
Returns the number of attributes in this set. |
java.lang.Object[] |
toArray()
Returns an array containing all the elements in this set. |
java.lang.Object[] |
toArray(java.lang.Object[] a)
Returns an array containing all the elements in this set. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LDAPAttributeSet()
Method Detail |
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public LDAPAttribute getAttribute(java.lang.String attrName)
public LDAPAttribute getAttribute(java.lang.String attrName, java.lang.String lang)
public LDAPAttributeSet getSubset(java.lang.String subtype)
public boolean add(java.lang.Object attr)
add
in interface java.util.Set
public boolean addAll(java.util.Collection attrs)
addAll
in interface java.util.Set
public void clear()
clear
in interface java.util.Set
public boolean contains(java.lang.Object attr)
contains
in interface java.util.Set
public boolean containsAll(java.util.Collection attrs)
containsAll
in interface java.util.Set
public boolean equals(java.lang.Object set)
equals
in interface java.util.Set
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Set
hashCode
in class java.lang.Object
public boolean isEmpty()
isEmpty
in interface java.util.Set
public java.util.Iterator iterator()
iterator
in interface java.util.Set
public boolean remove(java.lang.Object obj)
remove
in interface java.util.Set
public boolean removeAll(java.util.Collection attrs)
removeAll
in interface java.util.Set
public boolean retainAll(java.util.Collection attrs)
retainAll
in interface java.util.Set
public int size()
size
in interface java.util.Set
public java.lang.Object[] toArray()
toArray
in interface java.util.Set
public java.lang.Object[] toArray(java.lang.Object[] a)
The runtime type of the returned array is that of the specified
array.
toArray
in interface java.util.Set
|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |