|
|||||||||||
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
A case-insensitive Lockable JNDI Attributes implementation.
Constructor Summary | |
LockableAttributesImpl()
Creates a LockableAttributes without a parent Lockable. |
Method Summary | |
java.lang.Object |
clone()
Makes a shallow copy of the attribute set. |
boolean |
equals(java.lang.Object obj)
Checks to see if this Attributes implemenation is equivalent to another. |
javax.naming.directory.Attribute |
get(java.lang.String attrId)
Retrieves the attribute with the given attribute id from the attribute set. |
javax.naming.NamingEnumeration |
getAll()
Retrieves an enumeration of the attributes in the attribute set. |
javax.naming.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. |
javax.naming.directory.Attribute |
put(javax.naming.directory.Attribute attr)
Adds a new attribute to the attribute set. |
javax.naming.directory.Attribute |
put(java.lang.String attrId,
java.lang.Object val)
Adds a new attribute to the attribute set. |
javax.naming.directory.Attribute |
remove(java.lang.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. |
java.lang.String |
toString()
Prints out the attributes as an LDIF. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LockableAttributesImpl()
Method Detail |
public boolean isCaseIgnored()
isCaseIgnored
in interface javax.naming.directory.Attributes
public int size()
size
in interface javax.naming.directory.Attributes
public javax.naming.directory.Attribute get(java.lang.String attrId)
get
in interface javax.naming.directory.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 javax.naming.NamingEnumeration getAll()
getAll
in interface javax.naming.directory.Attributes
public javax.naming.NamingEnumeration getIDs()
getIDs
in interface javax.naming.directory.Attributes
public javax.naming.directory.Attribute put(java.lang.String attrId, java.lang.Object val)
put
in interface javax.naming.directory.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 javax.naming.directory.Attribute put(javax.naming.directory.Attribute attr)
put
in interface javax.naming.directory.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.
remove(java.lang.String)
public javax.naming.directory.Attribute remove(java.lang.String attrId)
remove
in interface javax.naming.directory.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 java.lang.Object clone()
clone
in interface javax.naming.directory.Attributes
public java.lang.String toString()
Object.toString()
public boolean equals(java.lang.Object obj)
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 |