public class EnumerationFunctions extends 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.
|
String |
literalToName(ExecutionContext ctx,
EnumerationImpl enumeration)
Transforms the specified enumeration literal to its name represented as string.
|
EnumerationImpl |
nameToLiteral(ExecutionContext ctx,
Type enumeration,
String name)
Transforms the specified enumeration’s literal name to the corresponding literal value.
|
EnumerationImpl |
toEnumeration(ExecutionContext ctx,
String string)
Parses a given enumeration full name into enumeration object.
|
public ListHolder literals(ExecutionContext ctx, Type enumeration) throws ErrorException
ctx
- enumeration
- ErrorException
public String literalToName(ExecutionContext ctx, EnumerationImpl enumeration) throws ErrorException
ctx
- enumeration
- ErrorException
public EnumerationImpl nameToLiteral(ExecutionContext ctx, Type enumeration, String name) throws ErrorException
ctx
- enumeration
- name
- ErrorException
public EnumerationImpl toEnumeration(ExecutionContext ctx, String string) throws ErrorException
ctx
- string
- ErrorException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.