public final class NameAwareAttribute extends Object implements Attribute
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) |
NamingEnumeration<?> |
getAll() |
DirContext |
getAttributeDefinition() |
DirContext |
getAttributeSyntaxDefinition() |
String |
getID() |
int |
hashCode() |
boolean |
hasValuesAsNames() |
void |
initValuesAsNames() |
boolean |
isOrdered() |
Object |
remove(int ix) |
boolean |
remove(Object attrval) |
Object |
set(int ix,
Object attrVal) |
int |
size() |
String |
toString() |
public 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 Attribute
NamingException
public DirContext getAttributeDefinition() throws NamingException
getAttributeDefinition
in interface Attribute
NamingException
public Object get(int ix) throws NamingException
get
in interface Attribute
NamingException
public Object clone()