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