Contents
|
In file ../../src/Pegasus/Common/CIMFlavor.h:
The CIMFlavor class represents the DMTF standard CIM qualifier flavor definition, which encapsulates the propagation and override rules for qualifiers.
Documentation
The CIMFlavor class represents the DMTF standard CIM qualifier flavor
definition, which 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 a derived class may override a
qualifier value.
A CIMFlavor contains one or more of these values: OVERRIDABLE,
TOSUBCLASS, TOINSTANCE, TRANSLATABLE, DISABLEOVERRIDE, ENABLEOVERRIDE,
RESTRICTED and DEFAULTS.
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 enabled for the qualifier.
|
static const CIMFlavor | DISABLEOVERRIDE
Indicates that the override feature is disabled for the qualifier.
|
static const CIMFlavor | TOSUBCLASS
Indicates that the qualifier is propagated to subclasses
|
static const CIMFlavor | RESTRICTED
Indicates that the qualifier is not propagated to subclasses
|
static const CIMFlavor | TOINSTANCE
Indicates that the qualifier is propagated to instances.
|
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 that the qualifier is propagated to subclasses.
|
Public Methods
| CIMFlavor ()
Constructs a CIMFlavor object with the value NONE
|
| CIMFlavor (const CIMFlavor & flavor)
Constructs a CIMFlavor object from the value of a specified CIMFlavor object.
|
CIMFlavor& | operator= (const CIMFlavor& flavor)
Assigns the value of the specified CIMFlavor object to this object.
|
void | addFlavor (const CIMFlavor& flavor)
Adds flavor values to the CIMFlavor object.
|
void | removeFlavor (const CIMFlavor& flavor)
Removes flavor values from the CIMFlavor object.
|
Boolean | hasFlavor (const CIMFlavor& flavor) const
Checks whether the flavor contains specified flavor values.
|
Boolean | equal (const CIMFlavor& flavor) const
Compares the CIMFlavor with a specified CIMFlavor.
|
CIMFlavor | operator+ (const CIMFlavor& flavor) const
Adds two flavor values.
|
String | toString () const
Returns a String representation of the CIMFlavor object.
|
- CIMFlavor()
-
Constructs a CIMFlavor object with the value NONE
- CIMFlavor(const CIMFlavor & flavor)
-
Constructs a CIMFlavor object from the value of a specified
CIMFlavor object.
- Parameters:
- flavor - The CIMFlavor object from which to construct a new
CIMFlavor object.
- CIMFlavor& operator=(const CIMFlavor& flavor)
-
Assigns the value of the specified CIMFlavor object to this object.
- Parameters:
- flavor - The CIMFlavor object from which to assign this
CIMFlavor object.
- Returns:
- A reference to this CIMFlavor object.
- void addFlavor(const CIMFlavor& flavor)
-
Adds flavor values to the CIMFlavor object.
- Parameters:
- flavor - A CIMFlavor containing the flavor values to add.
- void removeFlavor(const CIMFlavor& flavor)
-
Removes flavor values from the CIMFlavor object.
- Parameters:
- flavor - A CIMFlavor containing the flavor values to remove.
- Boolean hasFlavor(const CIMFlavor& flavor) const
-
Checks whether the flavor contains specified flavor values.
- Parameters:
- flavor - A CIMFlavor specifying the flavor values to check.
- Returns:
- True if the flavor contains all the values in the specified
CIMFlavor object, false otherwise.
- Boolean equal(const CIMFlavor& flavor) const
-
Compares the CIMFlavor with a specified CIMFlavor.
- Parameters:
- flavor - The CIMFlavor to be compared.
- Returns:
- True if this flavor has the same set of values as the
specified flavor, false otherwise.
- CIMFlavor operator+(const CIMFlavor& flavor) const
-
Adds two flavor values.
- Parameters:
- flavor - A CIMFlavor containing the flavor value to add to this
flavor.
- Returns:
- A new CIMFlavor object containing a union of the values in the
two flavor objects.
- String toString() const
-
Returns a String representation of the CIMFlavor object.
This method is for diagnostic purposes. The format of the output
is subject to change.
- Returns:
- A String containing a human-readable representation of the
flavor value.
- 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 enabled for the qualifier.
Thus, the qualifier may be overridden.
- static const CIMFlavor DISABLEOVERRIDE
-
Indicates that the override feature is disabled for the qualifier.
Thus, the qualifier may not be overridden.
- static const CIMFlavor TOSUBCLASS
-
Indicates that the qualifier is propagated to subclasses
- static const CIMFlavor RESTRICTED
-
Indicates that the qualifier is not propagated to subclasses
- static const CIMFlavor TOINSTANCE
-
Indicates that the qualifier is propagated to instances.
NOTE: This flavor is deprecated and should not be used.
- 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 that the qualifier is propagated to subclasses. This
flavor is equivalent to TOSUBCLASSES. The TOINSTANCE flavor is no
longer included here since it is deprecated.
- This class has no child classes.
- Friends:
- class BinaryStreamer
class SCMOClass class SCMOInstance class SCMODump class SCMOXmlWriter
Alphabetic index HTML hierarchy of classes or Java
|