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 TypeMethodDescriptionvoid
Adds a flavor to this qualifierclone()
int
boolean
getValue()
boolean
Checks if this qualifier has a given flavor setint
hashCode()
boolean
hasValue()
Checks if this qualifier has a valueboolean
Checks if this qualifier is propagatedvoid
setDefaults
(CIMQualifierType pQualifierType) Sets the default value and the flavor from the given qualifier typevoid
setPropagated
(boolean pValue) Sets the propagated valuevoid
Sets 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:
equals
in classCIMElement
-
hashCode
-
getFlavor
-
getValue
-
hasFlavor
Checks if this qualifier has a given flavor set- Parameters:
pFlavor
- The flavor- Returns:
true
if the flavor is set,false
otherwise
-
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
-true
if this qualifier is propagated,false
otherwise
-
isPropagated
public boolean isPropagated()Checks if this qualifier is propagated- Returns:
true
if this qualifier is propagated,false
otherwise
-
toMOF
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable
- Overrides:
compareTo
in classCIMElement
-