Name
BasicAttributes
Synopsis
This class is a basic implementation of the Attributes
interface. BasicAttributes
has a convenience constructor that enables
you to create the set of attributes with attribute data by using a
string that represents an attribute ID, and a java.lang.Object
that
represents an attribute value. This constructor is equivalent to
creating a BasicAttributes
object with an empty constructor and then
calling the two-argument put()
method.
You can construct a BasicAttributes
object as case-sensitive or
insensitive. In an LDAP or NDS directory, a case-insensitive attribute
corresponds to “case ignore string.”
public class BasicAttributes implements Attributes { // Public Constructors public BasicAttributes(); public BasicAttributes( boolean ignoreCase); public BasicAttributes( String attrID, Object val); public BasicAttributes(String attrID, Object val, boolean ignoreCase); // Methods Implementing Attributes public Object clone(); public javax.naming.directory.Attribute get( String attrID); public NamingEnumeration getAll(); public NamingEnumeration getIDs(); public boolean isCaseIgnored(); // default:false public javax.naming.directory.Attribute put( javax.naming.directory.Attribute attr); public javax.naming.directory.Attribute put(String attrID, Object val); public javax.naming.directory.Attribute remove( String attrID); public int size(); // Public Methods Overriding ...
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.