Package net.aifusion.metamodel
Class CimEnumeration
java.lang.Object
net.aifusion.metamodel.QualifiedElement
net.aifusion.metamodel.NamedElement
net.aifusion.metamodel.CimEnumeration
- All Implemented Interfaces:
CimEventGenerator
Class to represent a CIM Enumeration. CIM Enumerations are constructed by the
MOFParser.- Author:
- Sharad Singhal
-
Method Summary
Modifier and TypeMethodDescriptionClass<?> bind()Bind this CimEnum to a java EnumbooleanGet the primitive data type for all values in this enumerationgetDataValue(String key) Get the primitive dataValue corresponding to a given keyGet the CIM type of this elementgetKeys()Get the set of keys defined in this enumeration (or its superTypes)Get the case-normalized (lower case) name for this elementgetName()Get the name of this elementGet the enumeration value corresponding to a given keybooleanCheck if this enumeration has explicitly defined valuesinthashCode()booleanCheck if this enumeration (or one of its superTypes) declares a given keytoMOF()Return the MOF representation of this elementtoString()Methods inherited from class net.aifusion.metamodel.NamedElement
addListener, getAllQualifiers, getFullName, getNameSpacePath, getObjectPath, getQualifierValue, getSuperType, hasListener, hasQualifier, isAbstract, isSubTypeOf, removeListenerMethods inherited from class net.aifusion.metamodel.QualifiedElement
getQualifiers
-
Method Details
-
getDataType
Get the primitive data type for all values in this enumeration- Returns:
- - data type for all values in this enumeration
-
getKeys
Get the set of keys defined in this enumeration (or its superTypes)- Returns:
- - set of keys (mixed case) in the enumeration
-
hasKey
Check if this enumeration (or one of its superTypes) declares a given key- Parameters:
key- - key to check- Returns:
- - true if the given key is declared, false otherwise
-
getDataValue
Get the primitive dataValue corresponding to a given key- Parameters:
key- - name of the enumeration element- Returns:
- - dataValue corresponding to the enumeration element. Null if no such element exists
-
getValue
Get the enumeration value corresponding to a given key- Parameters:
key- - name of the enumeration element- Returns:
- - enumerationValue corresponding to the element. Null if no such element exists
-
hasDefinedValues
public boolean hasDefinedValues()Check if this enumeration has explicitly defined values- Returns:
- - true if the enumeration has explicit values defined
-
bind
Bind this CimEnum to a java Enum- Returns:
- - bound java Enum
-
equals
- Overrides:
equalsin classNamedElement
-
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
-
toString
-
hashCode
public int hashCode()
-