public final class NameAwareAttribute extends Object implements Attribute, Iterable<Object>
serialVersionUID| Constructor and Description |
|---|
NameAwareAttribute(Attribute attribute)
Construct a new instance from the supplied Attribute.
|
NameAwareAttribute(String id)
Construct a new instance with the specified id and no values.
|
NameAwareAttribute(String id,
boolean orderMatters)
Construct a new instance with the specified id, no values and order significance as specified.
|
NameAwareAttribute(String id,
Object value)
Construct a new instance with the specified id and one value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int ix,
Object attrVal) |
boolean |
add(Object attrVal) |
void |
clear() |
Object |
clone() |
boolean |
contains(Object attrVal) |
boolean |
equals(Object o) |
Object |
get() |
Object |
get(int ix)
Due to performance reasons it is not advised to iterate over the attribute's values using this method.
|
NamingEnumeration<?> |
getAll() |
DirContext |
getAttributeDefinition() |
DirContext |
getAttributeSyntaxDefinition() |
String |
getID() |
int |
hashCode() |
boolean |
hasValuesAsNames() |
void |
initValuesAsNames() |
boolean |
isOrdered() |
Iterator<Object> |
iterator() |
Object |
remove(int ix) |
boolean |
remove(Object attrval) |
Object |
set(int ix,
Object attrVal) |
int |
size() |
String |
toString() |
finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic NameAwareAttribute(String id, Object value)
id - the attribute idvalue - the value to start off withpublic NameAwareAttribute(Attribute attribute)
attribute - the Attribute to copy.public NameAwareAttribute(String id)
id - the attribute idpublic NameAwareAttribute(String id, boolean orderMatters)
id - the attribute idorderMatters - whether order has significance in this attribute.public NamingEnumeration<?> getAll()
public void initValuesAsNames()
public boolean hasValuesAsNames()
public DirContext getAttributeSyntaxDefinition() throws NamingException
getAttributeSyntaxDefinition in interface AttributeNamingExceptionpublic DirContext getAttributeDefinition() throws NamingException
getAttributeDefinition in interface AttributeNamingExceptionpublic Object get(int ix) throws NamingException
Due to performance reasons it is not advised to iterate over the attribute's values using this method.
Please use the iterator() instead.
get in interface AttributeNamingExceptionpublic Object clone()