|
All LDAP Classes Internal LDAP Classes |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.
| Nested Class Summary | |
private static class |
LDAPAttributeSet.WrappedIterator
An iterator that creates org.ietf.ldap.LDAPAttribute instances from an iterator of com.novell.ldap.LDAPAttribute instances. |
| Field Summary | |
private LDAPAttributeSet |
attrSet
|
| Constructor Summary | |
|
LDAPAttributeSet()
Constructs an empty set of attributes. |
(package private) |
LDAPAttributeSet(LDAPAttributeSet attrSet)
Constructs a new set of attributes, using an existing attribute set. |
| 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. |
(package private) LDAPAttributeSet |
getWrappedObject()
Gets the com.novell.ldap.LDAPAttributeSet object. |
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. |
private java.util.Collection |
unwrapCollection(java.util.Collection attrs)
Unwraps the specified collection, returning a collection containing com.novell.ldap.LDAPAttribute classes. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private LDAPAttributeSet attrSet
| Constructor Detail |
LDAPAttributeSet(LDAPAttributeSet attrSet)
public LDAPAttributeSet()
| Method Detail |
LDAPAttributeSet getWrappedObject()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionpublic 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.Setprivate java.util.Collection unwrapCollection(java.util.Collection attrs)
public boolean addAll(java.util.Collection attrs)
addAll in interface java.util.Setpublic void clear()
clear in interface java.util.Setpublic boolean contains(java.lang.Object attr)
contains in interface java.util.Setpublic boolean containsAll(java.util.Collection attrs)
containsAll in interface java.util.Setpublic boolean equals(java.lang.Object set)
equals in interface java.util.Setpublic int hashCode()
hashCode in interface java.util.Setpublic boolean isEmpty()
isEmpty in interface java.util.Setpublic java.util.Iterator iterator()
iterator in interface java.util.Setpublic boolean remove(java.lang.Object obj)
remove in interface java.util.Setpublic boolean removeAll(java.util.Collection attrs)
removeAll in interface java.util.Setpublic boolean retainAll(java.util.Collection attrs)
retainAll in interface java.util.Setpublic int size()
size in interface java.util.Setpublic java.lang.Object[] toArray()
toArray in interface java.util.Setpublic 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
|
All LDAP Classes Internal LDAP Classes |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||