javax.cim
Class CIMQualifier<E>

java.lang.Object
  extended by javax.cim.CIMElement
      extended by javax.cim.CIMQualifier<E>
All Implemented Interfaces:
Serializable, Comparable<CIMElement>

public class CIMQualifier<E>
extends CIMElement
implements 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(String pName, CIMDataType pType, E pValue, int pFlavor)
          Constructs a CIM qualifier with the specified name, type, value, and flavors.
CIMQualifier(String pName, CIMDataType pType, E pValue, int pFlavor, boolean pIsPropagated)
           
 
Method Summary
 boolean equals(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.
 E getValue()
          Returns the value for this CIM Element.
 boolean isPropagated()
          Determines if this qualifier is propagated.
 String toString()
          Returns a String representation of the CIMQualifier.
 
Methods inherited from class javax.cim.CIMElement
compareTo, getName, hashCode
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CIMQualifier

public CIMQualifier(String pName,
                    CIMDataType pType,
                    E 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

CIMQualifier

public CIMQualifier(String pName,
                    CIMDataType pType,
                    E pValue,
                    int pFlavor,
                    boolean pIsPropagated)
Method Detail

equals

public boolean equals(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.

isPropagated

public boolean isPropagated()
Determines if this qualifier is propagated. If the qualifier was inherited, this value will be true. If the qualifier was applied to the element directly, this value will be false.

Returns:
true if this property is propagated; false otherwise.

toString

public 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 E 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.


Copyright © 2002-2008 WBEM Solutions, Inc. All Rights Reserved.