| java.lang.Object javax.naming.directory.BasicAttributes
BasicAttributes | public class BasicAttributes implements Attributes(Code) | | A simple implementation of the Attributes interface.
The BasicAttributes provides operations on any types of
attribute. When a new attribute is created the BasicAttributes
class will create a new BasicAttribute and add it to the
attribute collection.
A particular instance of BasicAttributes can be either
case-sensitive or case-insensitive, as defined by the isCaseIgnored()
method.
Note that changes to the BasicAttributes are local -- they do
not modify the directory. The directory is only modified by API calls on the
DirContext object.
See Also: Attributes |
Constructor Summary | |
public | BasicAttributes() Constructs a BasicAttributes instance which is
case-sensitive. | public | BasicAttributes(boolean flag) Constructs a BasicAttributes instance which is
case-sensitive if flag is false. | public | BasicAttributes(String attrId, Object attrObj) Constructs a case-sensitive BasicAttributes instance with
one attribute. | public | BasicAttributes(String attrId, Object attrObj, boolean flag) Constructs a BasicAttributes instance with one attribute
which is case-sensitive if flag is false. |
serialVersionUID | final static long serialVersionUID(Code) | | |
BasicAttributes | public BasicAttributes()(Code) | | Constructs a BasicAttributes instance which is
case-sensitive.
|
BasicAttributes | public BasicAttributes(boolean flag)(Code) | | Constructs a BasicAttributes instance which is
case-sensitive if flag is false.
Parameters: flag - Indicates whether this instance is case-insensitive. |
BasicAttributes | public BasicAttributes(String attrId, Object attrObj)(Code) | | Constructs a case-sensitive BasicAttributes instance with
one attribute.
Parameters: attrId - the ID of the first attribute Parameters: attrObj - the value of the first attribute |
BasicAttributes | public BasicAttributes(String attrId, Object attrObj, boolean flag)(Code) | | Constructs a BasicAttributes instance with one attribute
which is case-sensitive if flag is false.
Parameters: attrId - the ID of the first attribute Parameters: attrObj - the value of the first attribute Parameters: flag - Indicates whether this instance is case-insensitive. |
clone | public Object clone()(Code) | | Returns a deep copy of this attribute collection. The returned copy
contains the same attribute objects. The attribute objects are not
cloned.
a deep copy of this attribute collection |
equals | public boolean equals(Object obj)(Code) | | Returns true if this BasicAttributes instance is equal to
the supplied object obj . They are considered equal if
they handle case the same way and have equal attributes.
Attribute equality is tested by calling
equals
on each attribute, which may be overridden.
Parameters: obj - the object to compare with true if this object is equal to obj , otherwisefalse |
hashCode | public int hashCode()(Code) | | Returns the hashcode for this BasicAttributes instance.
The result is calculated by summing the hashcodes of all attributes,
incremented by one if this instance is not case-sensitive.
the hashcode of this BasicAttributes instance |
isCaseIgnored | public boolean isCaseIgnored()(Code) | | |
toString | public String toString()(Code) | | Returns the string representation of this BasicAttributes
instance. The result contains the attribute identifiers and values'
string representations.
the string representation of this object |
|
|