|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.ldap.core.NameAwareAttribute
public final class NameAwareAttribute
Used internally to make DirContextAdapter properly handle Names as values.
Field Summary |
---|
Fields inherited from interface javax.naming.directory.Attribute |
---|
serialVersionUID |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method 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
public boolean add(Object attrVal)
add
in interface Attribute
public void initValuesAsNames()
public boolean hasValuesAsNames()
public boolean remove(Object attrval)
remove
in interface Attribute
public void clear()
clear
in interface Attribute
public DirContext getAttributeSyntaxDefinition() throws NamingException
getAttributeSyntaxDefinition
in interface Attribute
NamingException
public DirContext getAttributeDefinition() throws NamingException
getAttributeDefinition
in interface Attribute
NamingException
public boolean isOrdered()
isOrdered
in interface Attribute
public Object get(int ix) throws NamingException
get
in interface Attribute
NamingException
public Object remove(int ix)
remove
in interface Attribute
public void add(int ix, Object attrVal)
add
in interface Attribute
public Object set(int ix, Object attrVal)
set
in interface Attribute
public Object clone()
clone
in interface Attribute
clone
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
Spring LDAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |