|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ow2.bonita.facade.runtime.var.Enumeration
public class Enumeration
This class is used with get methods for managing variables of the QueryRuntimeAPI
when the variables have been defined as Enumeration (DataField with EnumerationType type).
.
It is also used to set Enumeration type variables (giving an object of this class to the methods:
setActivityInstanceVariable
or setProcessInstanceVariable
or setVariable
from the RuntimeAPI
.
Here after an example of code for getting Enumeration objects.
Object var = queryRuntimeAPI.getActivityInstanceVariable(instanceUUID, activityId, key); if (var instanceof Enumeration) { Enumeration enu = (Enumeration)var; } else { String str = (String)var; }
Constructor Summary | |
---|---|
protected |
Enumeration()
|
|
Enumeration(java.util.Set<java.lang.String> possibleValues,
java.lang.String selectedValue)
Creates an Enumeration giving the list of possible values and the selected value. |
Method Summary | |
---|---|
java.util.Set<java.lang.String> |
getPossibleValues()
Returns the collection of possible values. |
java.lang.String |
getSelectedValue()
Returns the selected value. |
protected void |
setSelectedValue(java.lang.String selectedValue)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Enumeration()
public Enumeration(java.util.Set<java.lang.String> possibleValues, java.lang.String selectedValue)
possibleValues
- the list of possible values of the enumeration.selectedValue
- the selected value of the enumeration.Method Detail |
---|
public java.util.Set<java.lang.String> getPossibleValues()
public java.lang.String getSelectedValue()
protected void setSelectedValue(java.lang.String selectedValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |