Class CIMQualifier
java.lang.Object
org.sblim.wbem.cim.CIMElement
org.sblim.wbem.cim.CIMQualifier
- All Implemented Interfaces:
Serializable, Cloneable, Comparable
- See Also:
-
Field Summary
Fields inherited from class CIMElement
CLOSING_BRAKET, EMPTY, iName, OPENING_BRAKET -
Constructor Summary
ConstructorsConstructorDescriptionDefault Ctor.CIMQualifier(String pName) Ctor.CIMQualifier(String pName, CIMQualifierType pType) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a flavor to this qualifierclone()intbooleangetValue()booleanChecks if this qualifier has a given flavor setinthashCode()booleanhasValue()Checks if this qualifier has a valuebooleanChecks if this qualifier is propagatedvoidsetDefaults(CIMQualifierType pQualifierType) Sets the default value and the flavor from the given qualifier typevoidsetPropagated(boolean pValue) Sets the propagated valuevoidSets this qualifiers valuetoMOF()Gets the MOF representation of this qualifiertoString()Methods inherited from class CIMElement
appendTab, assign, getName, lessThan, setName, vectorToMOFString, vectorToMOFString, vectorToMOFString
-
Constructor Details
-
CIMQualifier
public CIMQualifier()Default Ctor. -
CIMQualifier
Ctor. Constructs a named qualifier.- Parameters:
pName- The qualifier's name
-
CIMQualifier
Ctor. Constructs a named and typed qualifier.- Parameters:
pName- The qualifier's namepType- The qualifier's type
-
-
Method Details
-
addFlavor
Adds a flavor to this qualifier- Parameters:
pFlavor- The flavor
-
clone
-
equals
- Overrides:
equalsin classCIMElement
-
hashCode
-
getFlavor
-
getValue
-
hasFlavor
Checks if this qualifier has a given flavor set- Parameters:
pFlavor- The flavor- Returns:
trueif the flavor is set,falseotherwise
-
hasValue
public boolean hasValue()Checks if this qualifier has a value- Returns:
- getValue()!=null
-
setDefaults
Sets the default value and the flavor from the given qualifier type- Parameters:
pQualifierType- The qualifier type
-
setValue
-
setPropagated
public void setPropagated(boolean pValue) Sets the propagated value- Parameters:
pValue-trueif this qualifier is propagated,falseotherwise
-
isPropagated
public boolean isPropagated()Checks if this qualifier is propagated- Returns:
trueif this qualifier is propagated,falseotherwise
-
toMOF
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable- Overrides:
compareToin classCIMElement
-