|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.message.LockableAttributeImpl
Permanently Lockable ordered JNDI Attribute implementation.
Constructor Summary | |
LockableAttributeImpl(java.lang.String id)
Creates a permanently LockableAttribute on id whose locking behavoir is dicatated by parent. |
|
LockableAttributeImpl(java.lang.String id,
byte[] value)
Creates a permanently LockableAttribute on id with a single value. |
|
LockableAttributeImpl(java.lang.String id,
java.lang.Object value)
Creates a permanently LockableAttribute on id with a single value. |
Method Summary | |
void |
add(int index,
java.lang.Object attrVal)
Inserts attrVal into the list of this Attribute's values at the specified index in the list. |
boolean |
add(java.lang.Object attrVal)
Adds attrVal into the list of this Attribute's values at the end of the list. |
void |
clear()
Removes all the values of this Attribute from the list backing store. |
java.lang.Object |
clone()
Not a deep clone. |
boolean |
contains(java.lang.Object attrVal)
Checks to see if this Attribute contains attrVal in the list. |
boolean |
equals(java.lang.Object obj)
Checks for equality between this Attribute instance and another. |
java.lang.Object |
get()
Gets the first value of the list or null if no values exist. |
java.lang.Object |
get(int index)
Gets the value at an index. |
javax.naming.NamingEnumeration |
getAll()
Gets a NamingEnumberation wrapped around the iterator of the value list. |
javax.naming.directory.DirContext |
getAttributeDefinition()
NOT SUPPORTED - throws OperationNotSupportedException |
javax.naming.directory.DirContext |
getAttributeSyntaxDefinition()
NOT SUPPORTED - throws OperationNotSupportedException |
java.lang.String |
getID()
Gets the id or name of this Attribute. |
boolean |
isOrdered()
Always returns true since list is used to preserve value addition order. |
java.lang.Object |
remove(int index)
Removes the value at an index. |
boolean |
remove(java.lang.Object attrVal)
Removes attrVal from the list of this Attribute's values. |
java.lang.Object |
set(int index,
java.lang.Object attrVal)
Sets an attribute value in the ordered list of attribute values. |
int |
size()
Gets the size of the value list. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LockableAttributeImpl(java.lang.String id)
id
- the id or name of this attribute.public LockableAttributeImpl(java.lang.String id, java.lang.Object value)
id
- the id or name of this attribute.value
- a value for the attributepublic LockableAttributeImpl(java.lang.String id, byte[] value)
id
- the id or name of this attribute.value
- a value for the attributeMethod Detail |
public javax.naming.NamingEnumeration getAll()
getAll
in interface javax.naming.directory.Attribute
public java.lang.Object get()
get
in interface javax.naming.directory.Attribute
public int size()
size
in interface javax.naming.directory.Attribute
public java.lang.String getID()
getID
in interface javax.naming.directory.Attribute
public boolean contains(java.lang.Object attrVal)
contains
in interface javax.naming.directory.Attribute
attrVal
- the value to test for
public boolean add(java.lang.Object attrVal)
add
in interface javax.naming.directory.Attribute
attrVal
- the value to add to the end of the list.
public boolean remove(java.lang.Object attrVal)
remove
in interface javax.naming.directory.Attribute
attrVal
- the value to remove
public void clear()
clear
in interface javax.naming.directory.Attribute
public javax.naming.directory.DirContext getAttributeSyntaxDefinition() throws javax.naming.NamingException
getAttributeSyntaxDefinition
in interface javax.naming.directory.Attribute
javax.naming.NamingException
Attribute.getAttributeSyntaxDefinition()
public javax.naming.directory.DirContext getAttributeDefinition() throws javax.naming.NamingException
getAttributeDefinition
in interface javax.naming.directory.Attribute
javax.naming.NamingException
Attribute.getAttributeDefinition()
public java.lang.Object clone()
clone
in interface javax.naming.directory.Attribute
public boolean isOrdered()
isOrdered
in interface javax.naming.directory.Attribute
public java.lang.Object get(int index)
get
in interface javax.naming.directory.Attribute
index
- the index of the value in the ordered list of attribute
values. 0 <= ix < size().
public java.lang.Object remove(int index)
remove
in interface javax.naming.directory.Attribute
index
- the index of the value in the ordered list of attribute
values. 0 <= ix < size().
public void add(int index, java.lang.Object attrVal)
add
in interface javax.naming.directory.Attribute
index
- the index to add the value at.attrVal
- the value to add to the end of the list.public java.lang.Object set(int index, java.lang.Object attrVal)
set
in interface javax.naming.directory.Attribute
index
- the index to set the value to.attrVal
- the value to set at the index.
public boolean equals(java.lang.Object obj)
obj
- the Attribute to test for equality
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |