Package org.sblim.wbem.cim
Class CIMQualifierType
- java.lang.Object
-
- org.sblim.wbem.cim.CIMElement
-
- org.sblim.wbem.cim.CIMQualifierType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable
public class CIMQualifierType extends CIMElement implements java.lang.Cloneable, java.lang.Comparable, java.io.Serializable
- 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 CIMQualifierType()
Default ctor.CIMQualifierType(java.lang.String pName)
Constructs a names qualifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFlavor(CIMFlavor pFlavor)
Adds the specified CIMFlavor to this CIMQualifierType objectvoid
addScope(CIMScope pScope)
Adds the specified CIMScope to this CIMQualifierType objectjava.lang.Object
clone()
int
compareTo(java.lang.Object o)
boolean
equals(java.lang.Object o)
CIMValue
getDefaultValue()
Gets the default for this CIMQualifierType.java.util.Vector
getFlavor()
Returns a Vector containing all the CIMFlavors assigned to this CIMQualifierType.java.util.Vector
getScope()
Returns a Vector containing all the CIMScope assigned to this CIMQualifierType.CIMDataType
getType()
Returns a CIMDataType associated to this CIMQualifierType.boolean
hasDefaultValue()
Determines if this CIMQualifierType has a default value associated with it.boolean
hasFlavor(CIMFlavor pFlavor)
Determines if this CIMQualifierType has a CIMFlavor value associated with it.int
hashCode()
boolean
hasScope(CIMScope pScope)
Determines if this CIMQualifierType has a CIMScope value associated with it.boolean
isArrayValue()
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 qualifierjava.lang.String
toMOF()
Returns the MOF representation of this object.java.lang.String
toString()
-
Methods inherited from class org.sblim.wbem.cim.CIMElement
appendTab, assign, getName, lessThan, setName, vectorToMOFString, vectorToMOFString, vectorToMOFString
-
-
-
-
Method Detail
-
addFlavor
public void addFlavor(CIMFlavor pFlavor)
Adds the specified CIMFlavor to this CIMQualifierType object- Parameters:
pFlavor
- The flavor- Throws:
java.lang.IllegalArgumentException
- if a null flavor is specified.
-
addScope
public void addScope(CIMScope pScope)
Adds the specified CIMScope to this CIMQualifierType object- Parameters:
pScope
- The scope- Throws:
java.lang.IllegalArgumentException
- if a null scope is specified.
-
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
-
getDefaultValue
public CIMValue getDefaultValue()
Gets the default for this CIMQualifierType.- Returns:
- The default value
-
getFlavor
public java.util.Vector getFlavor()
Returns a Vector containing all the CIMFlavors assigned to this CIMQualifierType.- Returns:
- A vector of flavors
-
getScope
public java.util.Vector getScope()
Returns a Vector containing all the CIMScope assigned to this CIMQualifierType.- Returns:
- A vector of scopes
-
getType
public CIMDataType 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
public boolean hasFlavor(CIMFlavor pFlavor)
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
public boolean hasScope(CIMScope pScope)
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
public void setDefaultValue(CIMValue pValue)
Assigns the default value for this CIMDataType.- Parameters:
pValue
- The default value
-
setType
public void setType(CIMDataType pType)
Set the value type of this qualifier- Parameters:
pType
- The type- Throws:
java.lang.IllegalArgumentException
- if current CIMDataType has an associated default value hows data type does not match the new specified data type.
-
toMOF
public java.lang.String toMOF()
Returns the MOF representation of this object.- 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
-
-