Class CIMQualifierType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

    public class CIMQualifierType
    extends CIMElement
    implements java.lang.Cloneable, java.lang.Comparable, java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • CIMQualifierType

        public CIMQualifierType()
        Default ctor.
      • CIMQualifierType

        public CIMQualifierType​(java.lang.String pName)
        Constructs a names qualifier.
        Parameters:
        pName - The name
    • Method Detail

      • addFlavor

        public void addFlavor​(CIMFlavor pFlavor)
        Adds the specified CIMFlavor to this CIMQualifierType object
        Parameters:
        pFlavor - The flavor
        Throws:
        java.lang.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:
        java.lang.IllegalArgumentException - if a null scope is specified.
      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class CIMElement
      • hashCode

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

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

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

        public java.util.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:
        java.lang.IllegalArgumentException - if current CIMDataType has an associated default value hows data type does not match the new specified data type.
      • toMOF

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

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

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