Interface MendixEnum
- All Superinterfaces:
IMendixObjectMember<String>
Provides the interface for a Mendix attribute with type Enumeration.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mendix.systemwideinterfaces.core.IMendixObjectMember
IMendixObjectMember.MemberState, IMendixObjectMember.MemberValueState
-
Method Summary
Modifier and TypeMethodDescriptionReturns the corresponding enumeration type for this attribute.getValueFromString
(String stringValue) If stringValue is empty or null returns null otherwise returns stringValue.boolean
Returns whether the specified identifier is a valid enumeration value of this enumeration.Methods inherited from interface com.mendix.systemwideinterfaces.core.IMendixObjectMember
getMemberValueState, getName, getOriginalValue, getState, getValue, hasReadAccess, hasWriteAccess, isChanged, isValueChanged, isVirtual, parseValueFromString, parseValueToString, setValue, toString
-
Method Details
-
getEnumeration
IMetaEnumeration getEnumeration()Returns the corresponding enumeration type for this attribute.- Returns:
- the enumeration type
-
isValid
Returns whether the specified identifier is a valid enumeration value of this enumeration.- Parameters:
identifier
- the enumeration value to check- Returns:
- true if the identifier is valid; false otherwise
-
getValueFromString
If stringValue is empty or null returns null otherwise returns stringValue.- Specified by:
getValueFromString
in interfaceIMendixObjectMember<String>
- Parameters:
stringValue
- the string to parse- Returns:
- the parsed value
-