public interface IPcdAttributes extends Attributes
In addition to the JNDI standard, the PCD provides immutable (read-only) instances of Attributes which can safely be
shared among several object instances. Clients can check whether an Attributes instance is read-only with the method
isReadOnly(). For getting a mutable instance which contains mutable Attribute instances, the method
getDeepClone() can be used.
Beside that, the PCD offers other attribute identifiers than String (see IPcdAttributeId. Therefore, the
get(IPcdAttributeId), put(IPcdAttributeId, Object) and remove(IPcdAttributeId) methods are overridden
accordingly. These overridden methods shall be used for attributes with IPcdAttributeId-typed identifiers. For string-typed
attribute IDs, the corresponding methods of the JNDI standard interface javax.naming.directory.Attributes shall be used.
This interface is not intended to be implemented by clients.
| Modifier and Type | Method and Description |
|---|---|
Attribute |
get(IPcdAttributeId pcdAttributeId)
Retrieves the attribute with the given PCD attribute id from the attribute set.
|
IPcdAttributes |
getDeepClone()
Makes a deep copy of the attribute set, i.e., the contained attribute instances are cloned, too.
|
boolean |
isReadOnly()
Gets the read-only flag of this attributes instance.
|
Attribute |
put(IPcdAttributeId pcdAttributeId,
Object val)
Adds a new attribute with the specified PCD attribute ID and value to the attribute set.
|
Attribute |
remove(IPcdAttributeId pcdAttributeId)
Removes the attribute with the attribute id 'attrID' from the attribute set.
|
clone, get, getAll, getIDs, isCaseIgnored, put, put, remove, sizeIPcdAttributes getDeepClone()
Attributes.clone()boolean isReadOnly()
Attribute get(IPcdAttributeId pcdAttributeId)
pcdAttributeId - The non-null id of the attribute to retrieve.Attributes.get( java.lang.String )Attribute put(IPcdAttributeId pcdAttributeId, Object val)
pcdAttributeId - non-null The id of the attribute to add. Must be either of class java.lang.String or an
instance of IPcdAttributeId.val - The possibly null value of the attribute to add. If null, the attribute does not have any values.Attributes.put( java.lang.String, java.lang.Object )Attribute remove(IPcdAttributeId pcdAttributeId)
pcdAttributeId - The non-null PCD id of the attribute to remove.Attributes.remove( java.lang.String )| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS
|
[sap.com]
|
api
|
BC-PIN-PCD
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/pcd/gl/api
|
-
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/pcd/gl/api
|
api
|
EP-PIN
|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/semantics/api
|
api
|
EP-PIN
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice