javax.cim
Class CIMQualifierType

java.lang.Object
  extended byjavax.cim.CIMElement
      extended byjavax.cim.CIMTypedElement
          extended byjavax.cim.CIMValuedElement
              extended byjavax.cim.CIMQualifierType
All Implemented Interfaces:
javax.cim.CIMNamedElementInterface, java.io.Serializable

public class CIMQualifierType
extends javax.cim.CIMValuedElement
implements javax.cim.CIMNamedElementInterface, java.io.Serializable

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 be null/uninitalized) 
  Scopes - The scopes applicaple to this qualifier type. In other words what CIM Elements can this qualifiers based on this type be
  applied to. 
  Flavors - The flavors applicable to this qualifier type. Flavors
  describe the propogation and override rulles for a qualifier.
 

Since:
JSR48 1.0.0
See Also:
CIMScope, CIMFlavor, CIMQualifier, Serialized Form

Constructor Summary
CIMQualifierType(CIMObjectPath pPath, CIMDataType pType, java.lang.Object pValue, int pScope, int pFlavor)
          Constructs a new CIM qualifier type, using the name, type of the specified CIM qualifier type.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares this object against the specified object.
 CIMDataType getDataType()
          Returns the CIMDataType for this CIM Element.
 int getFlavor()
          Returns the flavors of this qualifier type as a BitSet.
 CIMObjectPath getObjectPath()
          Get the object path for this CIMQualifierType.
 int getScope()
          Returns the scopes of this qualifier type as a bit set
 java.lang.Object getValue()
          Returns the value for this CIM Element.
 java.lang.String toString()
          Returns a String representation of the CIMQualifierType 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.CIMElement
getName, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CIMQualifierType

public CIMQualifierType(CIMObjectPath pPath,
                        CIMDataType pType,
                        java.lang.Object pValue,
                        int pScope,
                        int pFlavor)
Constructs a new CIM qualifier type, using the name, type of the specified CIM qualifier type.

Parameters:
pPath - The CIMObjectPath of a CIM qualifier type.
pType - The CIMDataType of the qualifier type
pValue - The default value or null if no default value.
pScope - The applicable scopes for the qualifier type.
pFlavor - The applicable flavors for the qualifier type.
Throws:
java.lang.IllegalArgumentException - If the value/data type does not match
See Also:
CIMScope, CIMFlavor
Method Detail

equals

public boolean equals(java.lang.Object o)
Compares this object against the specified object. The result is true if and only if the argument is not null and is a CIMQualifierType object that represents the same value as this object.

Parameters:
o - the object to compare.
Returns:
True if the specified object it is the same as this CIMQualifierType. Otherwise, false.

getFlavor

public int getFlavor()
Returns the flavors of this qualifier type as a BitSet.

Returns:
BitSet of flavors for this qualifier type.

getObjectPath

public CIMObjectPath getObjectPath()
Get the object path for this CIMQualifierType.

Specified by:
getObjectPath in interface javax.cim.CIMNamedElementInterface
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

public java.lang.String toString()
Returns a String representation of the CIMQualifierType 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 be null.

Returns:
A string representation of this qualifier type.

getValue

public java.lang.Object getValue()
Returns the value for this CIM Element.

Returns:
Object The value of the CIM Element. null is a valid value.

getDataType

public CIMDataType getDataType()
Returns the CIMDataType for this CIM Element.

Returns:
CIMDataType of this CIM element.


Java™ WBEM (JSR48) 1.0.0 API