aicas logo Jamaica 3.4 release 8

javax.naming.directory
Class BasicAttributes

java.lang.Object
  extended by javax.naming.directory.BasicAttributes
All Implemented Interfaces:
Serializable, Cloneable, Attributes

public class BasicAttributes
extends Object
implements Attributes

See Also:
Serialized Form
Date:
June 22, 2001

Constructor Summary
BasicAttributes()
           
BasicAttributes(boolean ignoreCase)
           
BasicAttributes(String attrID, Object val)
           
BasicAttributes(String attrID, Object val, boolean ignoreCase)
           
 
Method Summary
 Object clone()
          clone creates a shallow clone of this.
 boolean equals(Object obj)
          Returns true if and only if the given Object is an instance of Attributes, the given attributes both do or don't ignore case for IDs and the collection of attributes is the same.
 Attribute get(String attrID)
           
 NamingEnumeration getAll()
           
 NamingEnumeration getIDs()
           
 int hashCode()
          hashCode returns a hash code for this object.
 boolean isCaseIgnored()
           
 Attribute put(Attribute attr)
           
 Attribute put(String attrID, Object val)
           
 Attribute remove(String attrID)
           
 int size()
           
 String toString()
          toString creates a printable string that represents this object for debugging purposes.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicAttributes

public BasicAttributes()

BasicAttributes

public BasicAttributes(boolean ignoreCase)

BasicAttributes

public BasicAttributes(String attrID,
                       Object val)

BasicAttributes

public BasicAttributes(String attrID,
                       Object val,
                       boolean ignoreCase)
Method Detail

clone

public Object clone()
Description copied from class: Object
clone creates a shallow clone of this.

Specified by:
clone in interface Attributes
Overrides:
clone in class Object
Returns:
a clone of this object.

equals

public boolean equals(Object obj)
Returns true if and only if the given Object is an instance of Attributes, the given attributes both do or don't ignore case for IDs and the collection of attributes is the same.

Overrides:
equals in class Object
Parameters:
obj - the other object.
Returns:
if this and other are considered equal.

get

public Attribute get(String attrID)
Specified by:
get in interface Attributes

getAll

public NamingEnumeration getAll()
Specified by:
getAll in interface Attributes

getIDs

public NamingEnumeration getIDs()
Specified by:
getIDs in interface Attributes

hashCode

public int hashCode()
Description copied from class: Object
hashCode returns a hash code for this object. The hash code must be equal for two objects a and b if a.equals(b) is true.

The default implementation returns System.identityHashCode(this).

Overrides:
hashCode in class Object
Returns:
a hash code value.

isCaseIgnored

public boolean isCaseIgnored()
Specified by:
isCaseIgnored in interface Attributes

put

public Attribute put(Attribute attr)
Specified by:
put in interface Attributes

put

public Attribute put(String attrID,
                     Object val)
Specified by:
put in interface Attributes

remove

public Attribute remove(String attrID)
Specified by:
remove in interface Attributes

size

public int size()
Specified by:
size in interface Attributes

toString

public String toString()
Description copied from class: Object
toString creates a printable string that represents this object for debugging purposes.

The default implementation returns getClass().getName() + '@' + Integer.toHexString(hashCode()).

Overrides:
toString in class Object
Returns:
a string identifying this object.

aicas logo Jamaica 3.4 release 8

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2009 aicas GmbH. All Rights Reserved.