|
In file ../../src/Pegasus/Common/CIMFlavor.h:
The CIMFlavor class implements the concept of the CIM qualifier flavor that encapsulates the propagation and override rules for qualifiers.
Documentation
The CIMFlavor class implements the concept of the CIM qualifier flavor that
encapsulates the propagation and override rules for qualifiers.
The propagation rules define whether a qualifier
may be propagated from classes to derived classes, or from classes to
instances. The override rules define whether or not derived classes may
override a qualifier value or whether it must be fixed for an entire
class hierarchy.
The possible values are: OVERRIDABLE, TOSUBCLASS, TOINSTANCE,
TRANSLATABLE, DISABLEOVERRIDE, ENABLEOVERRID, RESTRICTED and DEFAULTS.
The flavor is a set of zero or more of these possible values.
Inheritance:
Public Fields
static const CIMFlavor | NONE
Indicates that the qualifier has no flavors.
|
static const CIMFlavor | OVERRIDABLE
Indicates that the qualifier may be overridden
|
static const CIMFlavor | ENABLEOVERRIDE
Indicates that the override feature is enable for the qualifier.
|
static const CIMFlavor | DISABLEOVERRIDE
Indicates that the qualifier may not be overridden
|
static const CIMFlavor | TOSUBCLASS
Indicates that the qualifier is propagated to the qualifier in the subclass with the same name
|
static const CIMFlavor | RESTRICTED
Indicates that the qualifier is not propagated to the qualifier in the subclass with the same name; it applies only to the class in which it is declared
|
static const CIMFlavor | TOINSTANCE
Indicates that the qualifier is propagated to the qualifier in the instance with the same name
|
static const CIMFlavor | TRANSLATABLE
Indicates that the qualifier is translatable (for internationalization)
|
static const CIMFlavor | DEFAULTS
Indicates the default flavor settings.
|
static const CIMFlavor | TOSUBELEMENTS
Indicates both toSubclass and toInstance (TOSUBCLASS | TOINSTANCE)
|
Public Methods
| CIMFlavor ()
Constructs a CIMFlavor object with no flavor values set (default constructor).
|
| CIMFlavor (const CIMFlavor & flavor)
Constructs a CIMFlavor object from an existing CIMFlavor object (copy constructor).
|
CIMFlavor& | operator= (const CIMFlavor & flavor)
Assigns the value of one CIMFlavor object to another (assignment operator).
|
void | addFlavor (const CIMFlavor & flavor)
Adds the set of flavor values of the specified CIMFlavor object to this CIMFlavor object.
|
void | removeFlavor (const CIMFlavor & flavor)
Removes the specified set of flavor values from the CIMFlavor object.
|
Boolean | hasFlavor (const CIMFlavor & flavor) const
Determines if every value in the specified CIMFlavor object is included in this CIMFlavor object.
|
Boolean | equal (const CIMFlavor & flavor) const
Compares two CIMFlavor objects and determines whether or not they are equal.
|
CIMFlavor | operator+ (const CIMFlavor & flavor) const
Combines two CIMFlavor objects.
|
String | toString () const
Returns a String representation of the CIMFlavor object.
|
- CIMFlavor()
-
Constructs a CIMFlavor object with no flavor values set (default
constructor). The parameters and values are null.
- CIMFlavor(const CIMFlavor & flavor)
-
Constructs a CIMFlavor object from an existing CIMFlavor object (copy
constructor).
- Parameters:
- flavor - Specifies the name of the CIMFlavor instance of
the CIMFlavor object.
- CIMFlavor& operator= (const CIMFlavor & flavor)
-
Assigns the value of one CIMFlavor object to another (assignment
operator).
- Parameters:
- flavor - Specifies the name of the CIMFlavor instance of
the CIMFlavor object.
- Returns:
- The new instance of the CIMFlavor object.
- void addFlavor(const CIMFlavor & flavor)
-
Adds the set of flavor values of the specified CIMFlavor object to this
CIMFlavor object.
- Parameters:
- flavor - Specifies the name of the CIMFlavor object that
contains the flavor values to add to the CIMFlavor object.
- void removeFlavor(const CIMFlavor & flavor)
-
Removes the specified set of flavor values from the CIMFlavor object.
- Parameters:
- flavor - Specifies the name of the CIMFlavor object that
contains the flavor values to remove from the CIMFlavor object.
- Boolean hasFlavor(const CIMFlavor & flavor) const
-
Determines if every value in the specified CIMFlavor object is included
in this CIMFlavor object.
- Parameters:
- flavor - Specifies the name of the CIMFlavor instance whose
values you want to compare to the CIMFlavor object.
- Returns:
- True if every value in the specified instance of the CIMFlavor
object is included in the CIMFlavor object. Otherwise, a value of
false is returned.
- Boolean equal(const CIMFlavor & flavor) const
-
Compares two CIMFlavor objects and determines whether or not they are equal.
- Parameters:
- flavor - Specifies the name of the CIMFlavor instance that you want
to compare to the CIMFlavor object.
- Returns:
- True if the two CIMFlavor objects are equal. Otherwise, a value
of false is returned.
- CIMFlavor operator+ (const CIMFlavor & flavor) const
-
Combines two CIMFlavor objects. The parameters and values of the specified
CIMFlavor instance are included (added) to the CIMFlavor object.
- Parameters:
- flavor - Specifies the name of the CIMFlavor instance to add to the
CIMFlavor object.
- Returns:
- A new CIMFlavor object that represents the combination of this
flavor with the specified flavor.
- String toString() const
-
Returns a String representation of the CIMFlavor object.
Use this method to aide in debugging problems. Depending on the implementation,
the string format may vary. The returned value cannot be null but may be empty.
- static const CIMFlavor NONE
-
Indicates that the qualifier has no flavors. Thus, the qualifier does not have
any parameters nor values.
- static const CIMFlavor OVERRIDABLE
-
Indicates that the qualifier may be overridden
- static const CIMFlavor ENABLEOVERRIDE
-
Indicates that the override feature is enable for the qualifier. Thus, the
qualifier can be overridden.
- static const CIMFlavor DISABLEOVERRIDE
-
Indicates that the qualifier may not be overridden
- static const CIMFlavor TOSUBCLASS
-
Indicates that the qualifier is propagated to the qualifier in the
subclass with the same name
- static const CIMFlavor RESTRICTED
-
Indicates that the qualifier is not propagated to the qualifier in the
subclass with the same name; it applies only to the class in which it
is declared
- static const CIMFlavor TOINSTANCE
-
Indicates that the qualifier is propagated to the qualifier in the
instance with the same name
- static const CIMFlavor TRANSLATABLE
-
Indicates that the qualifier is translatable (for internationalization)
- static const CIMFlavor DEFAULTS
-
Indicates the default flavor settings. (OVERRIDABLE | TOSUBCLASS).
- static const CIMFlavor TOSUBELEMENTS
-
Indicates both toSubclass and toInstance (TOSUBCLASS | TOINSTANCE)
- This class has no child classes.
- Friends:
- class BinaryStreamer
Alphabetic index HTML hierarchy of classes or Java
|