Class CIMQualifierType

java.lang.Object
org.sblim.wbem.cim.CIMElement
org.sblim.wbem.cim.CIMQualifierType
All Implemented Interfaces:
Serializable, Cloneable, Comparable

public class CIMQualifierType extends CIMElement implements Cloneable, Comparable, Serializable
See Also:
  • Constructor Details

    • CIMQualifierType

      public CIMQualifierType()
      Default ctor.
    • CIMQualifierType

      public CIMQualifierType(String pName)
      Constructs a names qualifier.
      Parameters:
      pName - The name
  • Method Details

    • addFlavor

      public void addFlavor(CIMFlavor pFlavor)
      Adds the specified CIMFlavor to this CIMQualifierType object
      Parameters:
      pFlavor - The flavor
      Throws:
      IllegalArgumentException - if a null flavor is specified.
    • addScope

      public void addScope(CIMScope pScope)
      Adds the specified CIMScope to this CIMQualifierType object
      Parameters:
      pScope - The scope
      Throws:
      IllegalArgumentException - if a null scope is specified.
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class CIMElement
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getDefaultValue

      public CIMValue getDefaultValue()
      Gets the default for this CIMQualifierType.
      Returns:
      The default value
    • getFlavor

      public Vector getFlavor()
      Returns a Vector containing all the CIMFlavors assigned to this CIMQualifierType.
      Returns:
      A vector of flavors
    • getScope

      public Vector getScope()
      Returns a Vector containing all the CIMScope assigned to this CIMQualifierType.
      Returns:
      A vector of scopes
    • getType

      public CIMDataType getType()
      Returns a CIMDataType associated to this CIMQualifierType.
      Returns:
      The type
    • hasDefaultValue

      public boolean hasDefaultValue()
      Determines if this CIMQualifierType has a default value associated with it.
      Returns:
      getDefaultValue()!=null
    • hasFlavor

      public boolean hasFlavor(CIMFlavor pFlavor)
      Determines if this CIMQualifierType has a CIMFlavor value associated with it.
      Parameters:
      pFlavor - The flavor
      Returns:
      true if the given flavor is part of this qualifier type
    • hasScope

      public boolean hasScope(CIMScope pScope)
      Determines if this CIMQualifierType has a CIMScope value associated with it.
      Parameters:
      pScope - The scope
      Returns:
      true if the given scope is part of this qualifier type
    • isArrayValue

      public boolean isArrayValue()
      Determines if this CIMQualifierType's type is an array.
      Returns:
      true if this qualifier's value is an array
    • setDefaultValue

      public void setDefaultValue(CIMValue pValue)
      Assigns the default value for this CIMDataType.
      Parameters:
      pValue - The default value
    • setType

      public void setType(CIMDataType pType)
      Set the value type of this qualifier
      Parameters:
      pType - The type
      Throws:
      IllegalArgumentException - if current CIMDataType has an associated default value hows data type does not match the new specified data type.
    • toMOF

      public String toMOF()
      Returns the MOF representation of this object.
      Returns:
      The MOF representation
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(Object o)
      Specified by:
      compareTo in interface Comparable
      Overrides:
      compareTo in class CIMElement