Class EnumerationValue

java.lang.Object
net.aifusion.metamodel.QualifiedElement
net.aifusion.metamodel.EnumerationValue

public class EnumerationValue extends QualifiedElement
Class to represent an Enumeration Value. Enumeration values are (name, value) pairs, where the name is associated with the value.
Author:
Sharad Singhal
See Also:
  • Method Details

    • getDataValue

      public DataValue getDataValue()
      Get the literal data value embedded in this enumeration Value
      Returns:
      - value associated with this enumeration dataValue
    • hasValue

      public boolean hasValue()
      Check if this enumeration value has a data value defined
      Returns:
      - true if the enumeration value has a data value defined, false otherwise
    • getDataType

      public DataType getDataType()
      Get the literal data type associated with this enumeration value
      Returns:
      - data type associated with this Enumeration value
    • getEnumName

      public String getEnumName()
      Get the fully qualified name of the enumeration within which this value resides
      Returns:
      - fully qualified name of the enumeration
    • getFullName

      public String getFullName()
      Get the fully qualified name of this value (including the enumeration hierarchy within which it resides)
      Returns:
      full name of this enumeration value
    • toString

      public String toString()
      Get the string representation of this enumeration value in {name} form
      See Also:
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class QualifiedElement
    • getEnumueration

      public CimEnumeration getEnumueration()
      Get the Enumeration where this value exists
      Returns:
      - Enumeration within which this value exists
    • bind

      public Object bind()
      Bind this Enumeration value to a Java Enumeration
      Returns:
      - The Java Enum value bound to this Enumeration value
    • 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
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object