|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.message.LockableAttributesImpl
public class LockableAttributesImpl
A case-insensitive Lockable JNDI Attributes implementation.
Nested Class Summary | |
---|---|
class |
LockableAttributesImpl.AttributeIterator
An iterator which returns Attributes. |
Constructor Summary | |
---|---|
LockableAttributesImpl()
Creates an Attributes |
|
LockableAttributesImpl(boolean ignoreCase)
Creates an Attributes |
|
LockableAttributesImpl(String id,
Object value)
Creates an Attributes with one Attribute |
|
LockableAttributesImpl(String id,
Object value,
boolean ignoreCase)
Creates an Attributes with one attribute |
Method Summary | |
---|---|
Object |
clone()
Makes a shallow copy of the attribute set. |
boolean |
equals(Object obj)
Checks to see if this Attributes implemenation is equivalent to another. |
Attribute |
get(String attrId)
Retrieves the attribute with the given attribute id from the attribute set. |
NamingEnumeration |
getAll()
Retrieves an enumeration of the attributes in the attribute set. |
NamingEnumeration |
getIDs()
Retrieves an enumeration of the ids of the attributes in the attribute set. |
boolean |
isCaseIgnored()
Determines whether the attribute set ignores the case of attribute identifiers when retrieving or adding attributes. |
Attribute |
put(Attribute attr)
Adds a new attribute to the attribute set. |
Attribute |
put(String attrId,
Object val)
Adds a new attribute to the attribute set. |
Attribute |
remove(String attrId)
Removes the attribute with the attribute id 'attrID' from the attribute set. |
int |
size()
Retrieves the number of attributes in the attribute set. |
String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LockableAttributesImpl()
public LockableAttributesImpl(boolean ignoreCase)
public LockableAttributesImpl(String id, Object value)
public LockableAttributesImpl(String id, Object value, boolean ignoreCase)
Method Detail |
---|
public boolean isCaseIgnored()
isCaseIgnored
in interface Attributes
public int size()
size
in interface Attributes
public Attribute get(String attrId)
get
in interface Attributes
attrId
- The non-null id of the attribute to retrieve. If this
attribute set ignores the character case of its attribute ids,
the case of attrID is ignored.
put(java.lang.String, java.lang.Object)
,
remove(java.lang.String)
public NamingEnumeration getAll()
getAll
in interface Attributes
public NamingEnumeration getIDs()
getIDs
in interface Attributes
public Attribute put(String attrId, Object val)
put
in interface Attributes
attrId
- non-null The id of the attribute to add. If the attribute set
ignores the character case of its attribute ids, the case of
attrID is ignored.val
- The possibly null value of the attribute to add. If null, the
attribute does not have any values.
remove(java.lang.String)
public Attribute put(Attribute attr)
put
in interface Attributes
attr
- The non-null attribute to add. If the attribute set ignores
the character case of its attribute ids, the case of attr's
identifier is ignored.
The store attribute is a clone of the given attribute.
We have two special attribute names : '+' and '*'
remove(java.lang.String)
public Attribute remove(String attrId)
remove
in interface Attributes
attrId
- The non-null id of the attribute to remove. If the attribute
set ignores the character case of its attribute ids, the case
of attrID is ignored.
public Object clone()
clone
in interface Attributes
clone
in class Object
public String toString()
toString
in class Object
Object.toString()
public boolean equals(Object obj)
equals
in class Object
obj
- the Attributes object to test for equality to this
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |