The CIMPropertyList class is used to represent a list of CIM
properties in Pegasus.
This class comprises an array of propertyNames and a flag indicating whether
the list is null. There are three possibilities which must be represented by
the CIMPropertyList object because the CIMOperations that use CIMPropertyList
define functional differences based on these three conditions.
The property list is:
- Non-empty (and non-null) - Operations where some properties are to be
returned by the operation. The values in the list are valid property names.
- Empty (and non-null)- Operations where NO properties are to be
returned by the operation. The propertyList is empty but not Null.
- Null - Operations where there is no propertyList filter. The list
. is Null (a specific attributed of the list). There are, of course,
no properties in the list.
To create a null property list use the default constructor or use the
clear() method.
To create an empty property list use the constructor which takes
a property array (pass an empty property array which produces an empty
but not Null property list object).
Methods are provided for accessing elements of the the internal property
list. There are none for modifying elements (the entire array must be
formed and passed to the constructor or replaced by calling set()).