org.springframework.ldap.core
Class NameAwareAttributes
java.lang.Object
org.springframework.ldap.core.NameAwareAttributes
- All Implemented Interfaces:
- Serializable, Cloneable, Attributes
public final class NameAwareAttributes
- extends Object
- implements Attributes
Used internally to help DirContextAdapter properly handle Names as values.
- Since:
- 2.0
- Author:
- Mattias Hellborg Arthursson
- See Also:
- Serialized Form
NameAwareAttributes
public NameAwareAttributes()
- Create an empty instance
NameAwareAttributes
public NameAwareAttributes(Attributes attributes)
- Create a new instance, populated with the data from the supplied instance.
- Parameters:
attributes - the instance to copy.
isCaseIgnored
public boolean isCaseIgnored()
- Specified by:
isCaseIgnored in interface Attributes
size
public int size()
- Specified by:
size in interface Attributes
get
public NameAwareAttribute get(String attrID)
- Specified by:
get in interface Attributes
getAll
public NamingEnumeration<? extends Attribute> getAll()
- Specified by:
getAll in interface Attributes
getIDs
public NamingEnumeration<String> getIDs()
- Specified by:
getIDs in interface Attributes
put
public Attribute put(String attrID,
Object val)
- Specified by:
put in interface Attributes
put
public Attribute put(Attribute attr)
- Specified by:
put in interface Attributes
remove
public Attribute remove(String attrID)
- Specified by:
remove in interface Attributes
clone
public Object clone()
- Specified by:
clone in interface Attributes- Overrides:
clone in class Object
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
toString
public String toString()
- Overrides:
toString in class Object