Package net.aifusion.metamodel
Class EnumerationValue
java.lang.Object
net.aifusion.metamodel.QualifiedElement
net.aifusion.metamodel.EnumerationValue
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 Summary
Modifier and TypeMethodDescriptionbind()
Bind this Enumeration value to a Java Enumerationboolean
Get the literal data type associated with this enumeration valueGet the literal data value embedded in this enumeration ValueGet the CIM type of this elementGet the fully qualified name of the enumeration within which this value residesGet the Enumeration where this value existsGet the fully qualified name of this value (including the enumeration hierarchy within which it resides)Get the case-normalized (lower case) name for this elementgetName()
Get the name of this elementint
hashCode()
boolean
hasValue()
Check if this enumeration value has a data value definedtoMOF()
Return the MOF representation of this elementtoString()
Get the string representation of this enumeration value in {name} formMethods inherited from class net.aifusion.metamodel.QualifiedElement
getQualifiers, getQualifierValue, hasQualifier
-
Method Details
-
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
Get the literal data type associated with this enumeration value- Returns:
- - data type associated with this Enumeration value
-
getEnumName
Get the fully qualified name of the enumeration within which this value resides- Returns:
- - fully qualified name of the enumeration
-
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
Get the string representation of this enumeration value in {name} form- See Also:
-
equals
- Overrides:
equals
in classQualifiedElement
-
getEnumueration
Get the Enumeration where this value exists- Returns:
- - Enumeration within which this value exists
-
bind
Bind this Enumeration value to a Java Enumeration- Returns:
- - The Java Enum value bound to this Enumeration value
-
getName
Get the name of this element- Returns:
- - name of this element
- See Also:
-
getLowerCaseName
Get the case-normalized (lower case) name for this element- Returns:
- - name of this element normalized to lower case
- See Also:
-
getElementType
Get the CIM type of this element- Returns:
- - CIMType for this element
- See Also:
-
toMOF
Return the MOF representation of this element- Returns:
- - String containing MOF representation of this element
-
hashCode
public int hashCode()
-