|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.ldap.bean.AbstractLdapBean
edu.vt.middleware.ldap.bean.AbstractLdapAttribute<T>
T - type of backing setpublic abstract class AbstractLdapAttribute<T extends Set<Object>>
AbstractLdapAttribute provides a base implementation of
LdapAttribute where the underlying values are backed by a
Set.
| Field Summary | |
|---|---|
protected static int |
HASH_CODE_SEED
hash code seed. |
protected String |
name
Name for this attribute. |
protected Set<Object> |
values
Values for this attribute. |
| Fields inherited from class edu.vt.middleware.ldap.bean.AbstractLdapBean |
|---|
beanFactory, logger |
| Constructor Summary | |
|---|---|
AbstractLdapAttribute(LdapBeanFactory lbf)
Creates a new AbstractLdapAttribute with the supplied ldap
bean factory. |
|
| Method Summary | |
|---|---|
protected void |
convertValuesToString(Set<String> stringValues)
Converts the underlying set of objects to a set of strings. |
String |
getName()
This returns the name of this LdapAttribute. |
abstract Set<String> |
getStringValues()
This returns the value(s) of this LdapAttribute Values are
encoded in base64 format if the underlying value is of type byte[]. |
Set<Object> |
getValues()
This returns the value(s) of this LdapAttribute. |
int |
hashCode()
This returns the hash code for this object. |
void |
setAttribute(Attribute attribute)
This sets this LdapAttribute using the supplied attribute. |
void |
setName(String name)
This sets the name of this LdapAttribute. |
Attribute |
toAttribute()
This returns an Attribute that represents the values in this
LdapAttribute. |
String |
toString()
This returns a string representation of this object. |
| Methods inherited from class edu.vt.middleware.ldap.bean.AbstractLdapBean |
|---|
equals |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final int HASH_CODE_SEED
protected String name
protected Set<Object> values
| Constructor Detail |
|---|
public AbstractLdapAttribute(LdapBeanFactory lbf)
AbstractLdapAttribute with the supplied ldap
bean factory.
lbf - LdapBeanFactory| Method Detail |
|---|
public String getName()
LdapAttribute.
getName in interface LdapAttributeStringpublic Set<Object> getValues()
LdapAttribute.
getValues in interface LdapAttributeSetpublic abstract Set<String> getStringValues()
LdapAttribute Values are
encoded in base64 format if the underlying value is of type byte[]. The
returned set is unmodifiable.
getStringValues in interface LdapAttributeSet
public void setAttribute(Attribute attribute)
throws NamingException
LdapAttribute using the supplied attribute.
setAttribute in interface LdapAttributeattribute - Attribute
NamingException - if the attribute values cannot be readpublic void setName(String name)
LdapAttribute.
setName in interface LdapAttributename - Stringpublic int hashCode()
hashCode in class AbstractLdapBeanintpublic String toString()
toString in class ObjectStringpublic Attribute toAttribute()
Attribute that represents the values in this
LdapAttribute.
toAttribute in interface LdapAttributeAttributeprotected void convertValuesToString(Set<String> stringValues)
stringValues - Set to populate with strings
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||