javax.cim
Class CIMQualifier

java.lang.Object
  extended byjavax.cim.CIMElement
      extended byjavax.cim.CIMTypedElement
          extended byjavax.cim.CIMValuedElement
              extended byjavax.cim.CIMQualifier
All Implemented Interfaces:
java.io.Serializable

public class CIMQualifier
extends javax.cim.CIMValuedElement
implements java.io.Serializable

This class represents a CIM qualifier as defined by the Distributed Management Task Force (DMTF) CIM Infrastructure Specification (DSP004). A qualifier provides additional information about classes, associations, methods, parameters, properties, and/or references. A CIMQualifier must have a CIM Qualifier Type. A qualifier and its qualifier type must have the same name and dataType. CIM Qualifiers can only be applied to elements that are allowed by the scope defined by the CIM Qualifier Type.

Since:
JSR48 1.0.0
See Also:
CIMQualifierType, Serialized Form

Constructor Summary
CIMQualifier(java.lang.String pName, CIMDataType pType, java.lang.Object pValue, int pFlavor)
          Constructs a CIM qualifier with the specified name, type, value, and flavors.
 
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 CIM flavors for this CIM qualifier.
 java.lang.Object getValue()
          Returns the value for this CIM Element.
 java.lang.String toString()
          Returns a String representation of the CIMQualifier.
 
Methods inherited from class javax.cim.CIMElement
getName, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CIMQualifier

public CIMQualifier(java.lang.String pName,
                    CIMDataType pType,
                    java.lang.Object pValue,
                    int pFlavor)
Constructs a CIM qualifier with the specified name, type, value, and flavors.

Parameters:
pName - The name of the qualifier
pType - The data type of the qualifier
pValue - The value of the qualifier
pFlavor - a list of override permissions. Flavors can be overriden from the Qualifier Type definition to either restrict the subclassing of a qualifier or to allow it. For the list of CIM Flavors see the CIMFlavor class.
See Also:
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 CIMScope object that represents the same value as this object.

Parameters:
o - the object to compare.
Returns:
True if the input qualifier is equal, otherwise flase.

getFlavor

public int getFlavor()
Returns the CIM flavors for this CIM qualifier.

Returns:
A BitSet of CIM flavors in this CIM qualifier.

toString

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

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