public interface G9Enums
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_VALUE
The no value constant
|
| Modifier and Type | Method and Description |
|---|---|
List<G9Enumerator> |
allEnums(String enumName)
Returns the list of all enumeration values for a given enumeration.
|
void |
enumAssign(Object owner,
String attribute,
Object enumObject)
Assigns value to enum based on in object owner.
|
String |
toName(String name,
int value)
Converts the enumeration value to its title for the enumeration from the
class name.
|
int |
toValue(String name,
String title)
Returns the int value for the enumeration from class 'name', with a given
title.
|
static final int NO_VALUE
int toValue(String name, String title)
name - The name of the enumeration.title - The title of the enum to convert as defined in Rose.String toName(String name, int value)
name - The name of the enumeration.value - The currentValue of the enumeration.void enumAssign(Object owner, String attribute, Object enumObject)
owner - The object to set.attribute - The attribute to set value for.enumObject - The enum object to set.List<G9Enumerator> allEnums(String enumName)
enumName - The name of the enumeration (class)Copyright © 2006–2017 Esito AS. All rights reserved.