Name
BasicAttribute
Synopsis
This class is a basic implementation of the Attribute
interface. BasicAttribute
has a convenience constructor that enables
you to create the object with attribute data by using a string that
represents the attribute ID and a java.lang.Object
that represents the
attribute value. This constructor is equivalent to creating a
BasicAttribute
object with the attribute ID as a parameter and then
calling the add()
method.
public class BasicAttribute implements javax.naming.directory.Attribute { // Public Constructors public BasicAttribute( String id); public BasicAttribute( String id, boolean ordered); public BasicAttribute( String id, Object value); public BasicAttribute(String id, Object value, boolean ordered); // Methods Implementing Attribute public boolean add( Object attrVal); public void add( int ix, Object attrVal); public void clear(); public Object clone(); public boolean contains( Object attrVal); public Object get() throws NamingException; public Object get( int ix) throws NamingException; public NamingEnumeration getAll() throws NamingException; public DirContext getAttributeDefinition( ) throws NamingException; public DirContext getAttributeSyntaxDefinition( ) throws NamingException; public String getID(); public boolean isOrdered(); public Object remove( int ix); public boolean remove( Object attrval); public Object set( int ix, Object attrVal ...
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.