Class QualifierType

All Implemented Interfaces:
CimEventGenerator

public class QualifierType extends NamedElement
Element to represent a Qualifier Type
Author:
Sharad Singhal
  • Method Details

    • getDataType

      public DataType getDataType()
      Get the data type associated with this qualifier type
      Returns:
      - data type associated with this qualifier type
    • hasDefaultValue

      public boolean hasDefaultValue()
      Check if this qualifier type has a default dataValue
      Returns:
      - true if this qualifier type has a default dataValue, false otherwise
    • getDefaultValue

      public DataValue getDefaultValue()
      Return the default dataValue associated with this qualifier type
      Returns:
      - default dataValue for this qualifier type. Null is returned if no default dataValue is specified. If a null dataValue is specified as the default, A non-null data dataValue with a null in it is returned
    • hasScope

      public boolean hasScope(Scope scope)
      Check if this qualifier type applies to a particular element type
      Parameters:
      scope - - scope to check
      Returns:
      - true if the qualifier type applies to the scope, false otherwise
    • appliesTo

      public boolean appliesTo(ElementType elementType)
      Check if this qualifierType applies to a given elementType
      Parameters:
      elementType - - element type to be checked
      Returns:
      - true if this qualifier type applies to the given element type, false otherwise
    • isRestricted

      public boolean isRestricted()
      Check if this qualifier type has restricted propagation policy
      Returns:
      - true if qualifier type is restricted, false otherwise
      See Also:
    • isOverridable

      public boolean isOverridable()
      Check if this qualifier type can be overridden in subclasses
      Returns:
      - true if the qualifier type can be overridden, false otherwise. Note that the returned dataValue is meaningful only if the qualifier type is not restricted, i.e. isRestricted() returns false.
      See Also:
    • equals

      public boolean equals(Object o)
      Check if this qualifierType is the same as some other qualifier type. A qualifier type is considered the same as some other qualifier type, if it has the same name, scope(s), default flavors, data type and default dataValue
      Overrides:
      equals in class NamedElement
      Parameters:
      o - - other qualifier type
      Returns:
      - true if this qualifier type is the same as the other qualifier type, false otherwise
    • getName

      public String getName()
      Get the name of this element
      Returns:
      - name of this element
      See Also:
    • getLowerCaseName

      public String getLowerCaseName()
      Get the case-normalized (lower case) name for this element
      Returns:
      - name of this element normalized to lower case
      See Also:
    • getElementType

      public ElementType getElementType()
      Get the CIM type of this element
      Returns:
      - CIMType for this element
      See Also:
    • toMOF

      public String toMOF()
      Return the MOF representation of this element
      Returns:
      - String containing MOF representation of this element
    • toString

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

      public int hashCode()
      Overrides:
      hashCode in class Object