Show TOC Start of Content Area

Background documentation Attributes  Locate the document in its SAP Library structure

This section describes how get and set attributes using the IAttributeSet interface, which provides the following benefits over working with attributes with PCD APIs:

      IAttributeSetreturns all attributes associated with the current object, not just those stored in the PCD.

For example, the implementation of IAttributeSet for an iView gathers attributes and values for the current object from the following sources:

       PCD, which stores a small set of basic attributes, as well as any changes made by administrators to any attribute

       Component from which the iView is derived, for example, the properties defined in the portalapp.xml for a portal component.

       Core iView, located at Portal Content Content Provided by SAP Core Objects Core iView. All iViews inherit from this iView.

The priority is in the order shown. If an attribute is defined in the PCD and in the portalapp.xml, the PCD value takes precedence.

      The implementation of IAttributeSet can enforce rules on modifying attributes, whether general rules for all semantic objects or for the current semantic object.

For example, IAttributeSet can restrict you from modifying the Merge Priority property if the Can Be Merged property is false.

For information on how to obtain an IAttributeSet object for a PCD object, see Working with Administration Objects.

For information on working with attributes with PCD APIs, see Contexts and Attributes.

End of Content Area