javax.cim
Class CIMQualifierType<E>

java.lang.Object
  extended by javax.cim.CIMElement
      extended by javax.cim.CIMTypedElement
          extended by javax.cim.CIMValuedElement<E>
              extended by javax.cim.CIMQualifierType<E>
Type Parameters:
E - : Type Parameter
All Implemented Interfaces:
Serializable, Comparable<CIMElement>, CIMNamedElementInterface

public class CIMQualifierType<E>
extends CIMValuedElement<E>
implements CIMNamedElementInterface

The CIMQualifierType class represents a CIM Qualifier Type as an object. A Qualifier Type supplies a type for a qualifier. A qualifier must have a qualifier type. An Object of type CIMQualifierType contains the following:

See Also:
Serialized Form

Constructor Summary
CIMQualifierType(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
 boolean equals(Object pObj)
          Compares this object against the specified object.
 int getFlavor()
          Returns the flavors of this qualifier type as a BitSet.
 CIMObjectPath getObjectPath()
          Retrieve the ObjectPath that represents the name for this element.
 int getScope()
          Returns the scopes of this qualifier type as a bit set.
 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.CIMValuedElement
getValue
 
Methods inherited from class javax.cim.CIMTypedElement
getDataType
 
Methods inherited from class javax.cim.CIMElement
compareTo, getName, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 - - 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:
IllegalArgumentException - - If the value/data type does not match
Method Detail

equals

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

Overrides:
equals in class CIMValuedElement<E>
Parameters:
pObj - - The object to compare.
Returns:
true if the specified object it is the same as this CIMQualifierType. Otherwise, false.
See Also:
Object.equals(java.lang.Object)

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()
Description copied from interface: CIMNamedElementInterface
Retrieve the ObjectPath that represents the name for this element.

Specified by:
getObjectPath in interface CIMNamedElementInterface
Returns:
The Object Path that represents the element.
See Also:
CIMNamedElementInterface.getObjectPath()

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

Overrides:
toString in class CIMValuedElement<E>
Returns:
A string representation of this qualifier type.
See Also:
Object.toString()


Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.