Class CIMQualifierType
java.lang.Object
org.sblim.wbem.cim.CIMElement
org.sblim.wbem.cim.CIMQualifierType
- All Implemented Interfaces:
Serializable, Cloneable, Comparable
- See Also:
-
Field Summary
Fields inherited from class CIMElement
CLOSING_BRAKET, EMPTY, iName, OPENING_BRAKET
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the specified CIMFlavor to this CIMQualifierType objectvoid
Adds the specified CIMScope to this CIMQualifierType objectclone()
int
boolean
Gets the default for this CIMQualifierType.Returns a Vector containing all the CIMFlavors assigned to this CIMQualifierType.getScope()
Returns a Vector containing all the CIMScope assigned to this CIMQualifierType.getType()
Returns a CIMDataType associated to this CIMQualifierType.boolean
Determines if this CIMQualifierType has a default value associated with it.boolean
Determines if this CIMQualifierType has a CIMFlavor value associated with it.int
hashCode()
boolean
Determines if this CIMQualifierType has a CIMScope value associated with it.boolean
Determines if this CIMQualifierType's type is an array.void
setDefaultValue
(CIMValue pValue) Assigns the default value for this CIMDataType.void
setType
(CIMDataType pType) Set the value type of this qualifiertoMOF()
Returns the MOF representation of this object.toString()
Methods inherited from class CIMElement
appendTab, assign, getName, lessThan, setName, vectorToMOFString, vectorToMOFString, vectorToMOFString
-
Constructor Details
-
CIMQualifierType
public CIMQualifierType()Default ctor. -
CIMQualifierType
-
-
Method Details
-
addFlavor
Adds the specified CIMFlavor to this CIMQualifierType object- Parameters:
pFlavor
- The flavor- Throws:
IllegalArgumentException
- if a null flavor is specified.
-
addScope
Adds the specified CIMScope to this CIMQualifierType object- Parameters:
pScope
- The scope- Throws:
IllegalArgumentException
- if a null scope is specified.
-
clone
-
equals
- Overrides:
equals
in classCIMElement
-
hashCode
-
getDefaultValue
Gets the default for this CIMQualifierType.- Returns:
- The default value
-
getFlavor
Returns a Vector containing all the CIMFlavors assigned to this CIMQualifierType.- Returns:
- A vector of flavors
-
getScope
Returns a Vector containing all the CIMScope assigned to this CIMQualifierType.- Returns:
- A vector of scopes
-
getType
Returns a CIMDataType associated to this CIMQualifierType.- Returns:
- The type
-
hasDefaultValue
public boolean hasDefaultValue()Determines if this CIMQualifierType has a default value associated with it.- Returns:
- getDefaultValue()!=null
-
hasFlavor
Determines if this CIMQualifierType has a CIMFlavor value associated with it.- Parameters:
pFlavor
- The flavor- Returns:
true
if the given flavor is part of this qualifier type
-
hasScope
Determines if this CIMQualifierType has a CIMScope value associated with it.- Parameters:
pScope
- The scope- Returns:
true
if the given scope is part of this qualifier type
-
isArrayValue
public boolean isArrayValue()Determines if this CIMQualifierType's type is an array.- Returns:
true
if this qualifier's value is an array
-
setDefaultValue
Assigns the default value for this CIMDataType.- Parameters:
pValue
- The default value
-
setType
Set the value type of this qualifier- Parameters:
pType
- The type- Throws:
IllegalArgumentException
- if current CIMDataType has an associated default value hows data type does not match the new specified data type.
-
toMOF
Returns the MOF representation of this object.- Returns:
- The MOF representation
-
toString
-
compareTo
- Specified by:
compareTo
in interfaceComparable
- Overrides:
compareTo
in classCIMElement
-