public class EnumerationFunctions
extends java.lang.Object
| Constructor and Description |
|---|
EnumerationFunctions()
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ListHolder |
literals(ExecutionContext ctx,
Type enumeration)
Returns a list of literals from the specified enumeration.
|
java.lang.String |
literalToName(ExecutionContext ctx,
EnumerationImpl enumeration)
Transforms the specified enumeration literal to its name represented as string.
|
EnumerationImpl |
nameToLiteral(ExecutionContext ctx,
Type enumeration,
java.lang.String name)
Transforms the specified enumeration’s literal name to the corresponding literal value.
|
EnumerationImpl |
toEnumeration(ExecutionContext ctx,
java.lang.String string)
Parses a given enumeration full name into enumeration object.
|
public ListHolder literals(ExecutionContext ctx, Type enumeration) throws ErrorException
ctx - enumeration - ErrorExceptionpublic java.lang.String literalToName(ExecutionContext ctx, EnumerationImpl enumeration) throws ErrorException
ctx - enumeration - ErrorExceptionpublic EnumerationImpl nameToLiteral(ExecutionContext ctx, Type enumeration, java.lang.String name) throws ErrorException
ctx - enumeration - name - ErrorExceptionpublic EnumerationImpl toEnumeration(ExecutionContext ctx, java.lang.String string) throws ErrorException
ctx - string - ErrorExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.