Package org.sblim.wbem.cim
Class CIMQualifier
- java.lang.Object
-
- org.sblim.wbem.cim.CIMElement
-
- org.sblim.wbem.cim.CIMQualifier
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable
public class CIMQualifier extends CIMElement implements java.lang.Cloneable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.sblim.wbem.cim.CIMElement
CLOSING_BRAKET, EMPTY, iName, OPENING_BRAKET
-
-
Constructor Summary
Constructors Constructor Description CIMQualifier()
Default Ctor.CIMQualifier(java.lang.String pName)
Ctor.CIMQualifier(java.lang.String pName, CIMQualifierType pType)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFlavor(CIMFlavor pFlavor)
Adds a flavor to this qualifierjava.lang.Object
clone()
int
compareTo(java.lang.Object o)
boolean
equals(java.lang.Object o)
java.util.Vector
getFlavor()
CIMValue
getValue()
boolean
hasFlavor(CIMFlavor pFlavor)
Checks if this qualifier has a given flavor setint
hashCode()
boolean
hasValue()
Checks if this qualifier has a valueboolean
isPropagated()
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
setValue(CIMValue pValue)
Sets this qualifiers valuejava.lang.String
toMOF()
Gets the MOF representation of this qualifierjava.lang.String
toString()
-
Methods inherited from class org.sblim.wbem.cim.CIMElement
appendTab, assign, getName, lessThan, setName, vectorToMOFString, vectorToMOFString, vectorToMOFString
-
-
-
-
Constructor Detail
-
CIMQualifier
public CIMQualifier()
Default Ctor.
-
CIMQualifier
public CIMQualifier(java.lang.String pName)
Ctor. Constructs a named qualifier.- Parameters:
pName
- The qualifier's name
-
CIMQualifier
public CIMQualifier(java.lang.String pName, CIMQualifierType pType)
Ctor. Constructs a named and typed qualifier.- Parameters:
pName
- The qualifier's namepType
- The qualifier's type
-
-
Method Detail
-
addFlavor
public void addFlavor(CIMFlavor pFlavor)
Adds a flavor to this qualifier- Parameters:
pFlavor
- The flavor
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classCIMElement
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getFlavor
public java.util.Vector getFlavor()
-
getValue
public CIMValue getValue()
-
hasFlavor
public boolean hasFlavor(CIMFlavor pFlavor)
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
public void setDefaults(CIMQualifierType pQualifierType)
Sets the default value and the flavor from the given qualifier type- Parameters:
pQualifierType
- The qualifier type
-
setValue
public void setValue(CIMValue pValue)
Sets this qualifiers value- Parameters:
pValue
- The value
-
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
public java.lang.String toMOF()
Gets the MOF representation of this qualifier- Returns:
- The MOF representation
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interfacejava.lang.Comparable
- Overrides:
compareTo
in classCIMElement
-
-