version 1.16, 2002/03/25 16:27:51
|
version 1.17, 2002/03/28 02:57:54
|
|
|
@param String representing CIMName for the new qualifier | @param String representing CIMName for the new qualifier |
@param value | @param value |
@param flavor - Flavor defined for this qualifier definition. Default for this | @param flavor - Flavor defined for this qualifier definition. Default for this |
parameter is CIMFlavor::DEFAULTS (which allows override and tosubclass). |
parameter is CIMFlavor::NONE. |
@param propoagated - Boolean defining whether this is a propagated qualifier. | @param propoagated - Boolean defining whether this is a propagated qualifier. |
This is an optional parameter with default = false | This is an optional parameter with default = false |
@return -Returns the instantiated qualifier object or throws an exception | @return -Returns the instantiated qualifier object or throws an exception |
|
|
CIMQualifier( | CIMQualifier( |
const String& name, | const String& name, |
const CIMValue& value, | const CIMValue& value, |
Uint32 flavor = CIMFlavor::DEFAULTS, |
Uint32 flavor = CIMFlavor::NONE, |
Boolean propagated = false) | Boolean propagated = false) |
{ | { |
_rep = new CIMQualifierRep(name, value, flavor, propagated); | _rep = new CIMQualifierRep(name, value, flavor, propagated); |
|
|
_rep->setValue(value); | _rep->setValue(value); |
} | } |
| |
/* setFlavor - Sets the value defined on input into the Flavor variable |
/* setFlavor - Sets the bits defined on input into the Flavor variable |
for the Qualifier Object. | for the Qualifier Object. |
@param flavor - Uint32 defines the flavor bits to be set. | @param flavor - Uint32 defines the flavor bits to be set. |
*/ | */ |
|
|
_checkRep(); | _checkRep(); |
_rep->setFlavor(flavor); | _rep->setFlavor(flavor); |
} | } |
|
/* unsetFlavor - Resets the bits defined for the flavor |
|
for the Qualifier Object with the input. |
|
@param flavor - Uint32 defines the flavor bits to be set. |
|
*/ |
|
void unsetFlavor(Uint32 flavor) |
|
{ |
|
_checkRep(); |
|
_rep->unsetFlavor(flavor); |
|
} |
| |
/** getFlavor - Gets the Flavor field from a Qualifier | /** getFlavor - Gets the Flavor field from a Qualifier |
@return - Uint32 with the Flavor flags that can be tested | @return - Uint32 with the Flavor flags that can be tested |
|
|
*/ | */ |
Boolean isFlavor(Uint32 flavor) const | Boolean isFlavor(Uint32 flavor) const |
{ | { |
return ((getFlavor() & flavor) !=0); |
return _rep->isFlavor(flavor); |
} |
|
/** Determine if Flavor toSubClass set for this qualifier |
|
*/ |
|
Boolean isFlavorToSubclass() const |
|
{ |
|
return ((getFlavor() & CIMFlavor::TOSUBCLASS) !=0); |
|
} |
|
|
|
/** Determine if Flavor ToInstance set for this qualifier |
|
*/ |
|
Boolean isFlavorToInstance() const |
|
{ |
|
return ((getFlavor() & CIMFlavor::TOINSTANCE) !=0); |
|
} | } |
|
/* resolveFlavor - Function used only in object creation to |
/** Determine if Flavor Overridable set for this qualifier |
resolve the combination of a qualifer flavor input and |
|
the corresponding inherited flavor from declaration or |
|
superclass and set the current qualifier to that |
|
definition. The functions changes the current flavor based |
|
on the characteristics of the inheritance. |
|
@param inheritedFlavor - The flavor inherited from higher level |
|
@param inherited - True if inherited from definition. False if this |
|
is definition that inherits from the declaration |
*/ | */ |
Boolean isFlavorOverridable() const |
void resolveFlavor(Uint32 inheritedFlavor, Boolean inherited) |
{ | { |
return ((getFlavor() & CIMFlavor::OVERRIDABLE) !=0); |
_checkRep(); |
|
_rep->resolveFlavor(inheritedFlavor, inherited); |
} | } |
|
/** getPropagated returns the propagated indicator |
/** CIMMethod |
@return Uint32 - TBD |
| |
*/ | */ |
const Uint32 getPropagated() const | const Uint32 getPropagated() const |