public class Attribute extends BaseAttribute implements Cloneable, Serializable
This is essentially a wrapper around the JNDI Attribute class.
m_impl
Modifier | Constructor and Description |
---|---|
protected |
Attribute(Attribute JNDIAttr)
Hide this constructor
|
|
Attribute(ICS ics,
String id)
Constructs a new instance of an unordered attribute with no
value.
|
|
Attribute(ICS ics,
String id,
boolean ordered) |
|
Attribute(ICS ics,
String id,
Object value)
Constructs a new instance of an unordered attribute with a
single value.
|
|
Attribute(ICS ics,
String id,
Object value,
boolean ordered)
Constructs a new instance of a possibly ordered attribute with
a single value.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int ix,
Object attrVal)
Adds an attribute value to the ordered list of attribute
values.
|
boolean |
add(Object attrVal)
Adds a new value to this attribute.
|
void |
clear()
Removes all values from this attribute.
|
Object |
clone()
Makes a copy of the attribute.
|
boolean |
contains(Object attrVal)
Determines whether a value is in this attribute.
|
boolean |
equals(Object obj)
Determines whether obj is equal to this attribute.
|
Object |
get()
Retrieves one of this attribute's values.
|
Object |
get(int ix)
Retrieves the attribute value from the ordered list of
attribute values.
|
Enumeration |
getAll()
Retrieves an enumeration of this attribute's values.
|
String |
getID()
Retrieves the id of this attribute.
|
int |
hashCode()
Calculates the hash code of this attribute.
|
boolean |
isOrdered()
Determines whether this attribute's values are ordered.
|
Object |
remove(int ix)
Removes an attribute value from the ordered list of attribute
values.
|
boolean |
remove(Object attrval)
Removes a specified value from this attribute.
|
Object |
set(int ix,
Object attrVal)
Sets an attribute value in the ordered list of attribute
values.
|
int |
size()
Retrieves the number of values in this attribute.
|
String |
toString()
Generates the string representation of this attribute.
|
toJNDIAttribute
protected Attribute(Attribute JNDIAttr)
public Attribute(ICS ics, String id, boolean ordered) throws DirectoryException
DirectoryException
public Attribute(ICS ics, String id) throws DirectoryException
id
- The attribute's id. It cannot be null.DirectoryException
public Attribute(ICS ics, String id, Object value) throws DirectoryException
id
- The attribute's id. It cannot be null.value
- The attribute's value. If null, a null value is
added to the attribute.DirectoryException
public Attribute(ICS ics, String id, Object value, boolean ordered) throws DirectoryException
id
- The attribute's id. It cannot be null.value
- The attribute's value. If null, a null value is
added to the attribute.ordered
- true means the attribute's values will be
ordered; false otherwise.DirectoryException
public void add(int ix, Object attrVal)
public boolean add(Object attrVal)
public void clear()
public boolean contains(Object attrVal)
public boolean equals(Object obj)
public Object get() throws DirectoryException
DirectoryException
public Object get(int ix) throws DirectoryException
DirectoryException
public Enumeration getAll() throws DirectoryException
DirectoryException
public String getID()
public int hashCode()
public boolean isOrdered()
public Object remove(int ix)
public boolean remove(Object attrval)
public Object set(int ix, Object attrVal)
public int size()