| Package | Description | 
|---|---|
| javax.naming.directory | Extends the javax.naming package to provide functionality
for accessing directory services. | 
| Modifier and Type | Class | Description | 
|---|---|---|
| class  | BasicAttributeThis class provides a basic implementation of the Attribute interface. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Attribute | BasicAttributes. get(String attrID) | |
| Attribute | Attributes. get(String attrID)Retrieves the attribute with the given attribute id from the
 attribute set. | |
| Attribute | ModificationItem. getAttribute()Retrieves the attribute associated with this modification item. | |
| Attribute | BasicAttributes. put(Attribute attr) | |
| Attribute | Attributes. put(Attribute attr)Adds a new attribute to the attribute set. | |
| Attribute | BasicAttributes. put(String attrID,
   Object val) | |
| Attribute | Attributes. put(String attrID,
   Object val)Adds a new attribute to the attribute set. | |
| Attribute | BasicAttributes. remove(String attrID) | |
| Attribute | Attributes. remove(String attrID)Removes the attribute with the attribute id 'attrID' from
 the attribute set. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| NamingEnumeration<Attribute> | BasicAttributes. getAll() | |
| NamingEnumeration<? extends Attribute> | Attributes. getAll()Retrieves an enumeration of the attributes in the attribute set. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Attribute | BasicAttributes. put(Attribute attr) | |
| Attribute | Attributes. put(Attribute attr)Adds a new attribute to the attribute set. | 
| Constructor | Description | 
|---|---|
| ModificationItem(int mod_op,
                Attribute attr)Creates a new instance of ModificationItem. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.