API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.naming.directory. BasicAttribute View Source
Author(s)
Rosanna Lee
Scott Seligman
Since
1.3
Version
1.14 05/11/17
Serial
Hierarchy
 Object
      BasicAttribute
Implements
 Attribute
Subclasses
Description
public class BasicAttribute
  This class provides a basic implementation of the Attribute interface.
See also:   
Constructors
public BasicAttribute (String id)
  Constructs a new instance of an unordered attribute with no value.
public BasicAttribute (String id, boolean ordered)
  Constructs a new instance of a possibly ordered attribute with no value.
public BasicAttribute (String id, Object value)
  Constructs a new instance of an unordered attribute with a single value.
public BasicAttribute (String id, Object value, boolean ordered)
  Constructs a new instance of a possibly ordered attribute with a single value.
Methods
Hide/Show inherited methods
public void add (int ix, Object attrVal) [Specified in Attribute]
public boolean add (Object attrVal) [Specified in Attribute]
  Adds a new value to this attribute.
public void clear () [Specified in Attribute]
public Object clone () [Specified in Attribute]
public boolean contains (Object attrVal) [Specified in Attribute]
  Determines whether a value is in this attribute.
public boolean equals (Object obj)
  Determines whether obj is equal to this attribute.
public Object get () throws NamingException [Specified in Attribute]
  Retrieves one of this attribute's values.
public Object get (int ix) throws NamingException [Specified in Attribute]
public NamingEnumeration<Object> getAll () throws NamingException [Specified in Attribute]
  Retrieves an enumeration of this attribute's values.
public DirContext getAttributeDefinition () throws NamingException [Specified in Attribute]
  Retrieves this attribute's schema definition.
public DirContext getAttributeSyntaxDefinition () throws NamingException [Specified in Attribute]
  Retrieves the syntax definition associated with this attribute.
public String getID () [Specified in Attribute]
public int hashCode ()
  Calculates the hash code of this attribute.
public boolean isOrdered () [Specified in Attribute]
public Object remove (int ix) [Specified in Attribute]
public boolean remove (Object attrval) [Specified in Attribute]
  Removes a specified value from this attribute.
public Object set (int ix, Object attrVal) [Specified in Attribute]
public int size () [Specified in Attribute]
public String toString ()
  Generates the string representation of this attribute.
Fields
Hide/Show inherited fields
protected String attrID
  Holds the attribute's id.
protected boolean ordered
A flag for recording whether this attribute's values are ordered.
publicfinalstatic long serialVersionUID = "8707690322213556804" [Inherited From Attribute]
Use serialVersionUID from JNDI 1.1.1 for interoperability.
protectedtransient Vector<Object> values
  Holds the attribute's values.
Nested Classes
  BasicAttribute.ValuesEnumImpl
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar