Package javax.cim
Class CIMQualifierType<E>
java.lang.Object
javax.cim.CIMElement
javax.cim.CIMTypedElement
javax.cim.CIMValuedElement<E>
javax.cim.CIMQualifierType<E>
- Type Parameters:
E
- Type parameter.
- All Implemented Interfaces:
Serializable
,Comparable<CIMElement>
,CIMNamedElementInterface
The CIMQualifierType class represents a CIM Qualifier Type as defined by the
Distributed Management Task Force (DMTF) CIM
Infrastructure Specification (DSP004). A Qualifier Type supplies the definition/rules for a qualifier.
A qualifier must have a qualifier type. CIMQualifierType has the following
components:
Name
- The name of the qualifier type.Data Type
- The data type of the qualifier type.Value
- The default value of the qualifier type (can benull
/uninitialized)Scopes
- The scopes applicable to this qualifier type. In other words what CIM Elements can the qualifier based on this type be applied to.Flavors
- The flavors applicable to this qualifier type. Flavors describe the propagation and override rules for a qualifier.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCIMQualifierType
(CIMObjectPath pPath, CIMDataType pType, E pValue, int pScope, int pFlavor) Constructs a new CIM qualifier type, using the name, type of the specified CIM qualifier type. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares this object against the specified object.int
Returns the flavors of this qualifier type as aBitSet
.Get the object path for thisCIMQualifierType
.int
getScope()
Returns the scopes of this qualifier type as a bit set.toString()
Returns aString
representation of theCIMQualifierType
This method is intended to be used only for debugging purposes, and the format of the returned string may vary between implementations.Methods inherited from class javax.cim.CIMValuedElement
getValue, hashCode
Methods inherited from class javax.cim.CIMTypedElement
getDataType
Methods inherited from class javax.cim.CIMElement
compareTo, getName
-
Constructor Details
-
CIMQualifierType
public CIMQualifierType(CIMObjectPath pPath, CIMDataType pType, E pValue, int pScope, int pFlavor) throws IllegalArgumentException Constructs a new CIM qualifier type, using the name, type of the specified CIM qualifier type.- Parameters:
pPath
- TheCIMObjectPath
of a CIM qualifier type.pType
- TheCIMDataType
of the qualifier type.pValue
- The default value ornull
if no default value.pScope
- The applicable scopes for the qualifier type.pFlavor
- The applicable flavors for the qualifier type.- Throws:
IllegalArgumentException
- If the value/data type does not match.
-
-
Method Details
-
equals
Compares this object against the specified object. The result istrue
if and only if the argument is notnull
and is aCIMQualifierType
object that represents the same value as this object.- Overrides:
equals
in classCIMValuedElement<E>
- Parameters:
pObj
- The object to compare.- Returns:
true
if the specified object it is the same as thisCIMQualifierType
. Otherwise,false
.
-
getFlavor
public int getFlavor()Returns the flavors of this qualifier type as aBitSet
.- Returns:
BitSet
of flavors for this qualifier type.
-
getObjectPath
Get the object path for thisCIMQualifierType
.- Specified by:
getObjectPath
in interfaceCIMNamedElementInterface
- Returns:
- The
CIMObjectPath
that represents this qualifier type.
-
getScope
public int getScope()Returns the scopes of this qualifier type as a bit set.- Returns:
- Bit set of CIM element scopes for which this qualifier type is applicable.
-
toString
Returns aString
representation of theCIMQualifierType
This method is intended to be used only for debugging purposes, and the format of the returned string may vary between implementations. The returned string may be empty but may not benull
.- Overrides:
toString
in classCIMValuedElement<E>
- Returns:
- A string representation of this qualifier type.
-