|
Oracle Fusion Middleware Java API Reference for Oracle Business Rules 11g Release 1 (11.1.1.7) E10663-11 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.rules.sdk2.dictionary.ChoiceList
public class ChoiceList
A ChoiceList provides a hierarchy to the flat array of Strings returned from the SDK2 getOptions methods.
We use String[] for 3 different purposes:
Constructor Summary | |
---|---|
ChoiceList(java.lang.String[] optionList)
|
Method Summary | |
---|---|
static java.lang.String |
flattenSelection(java.util.List<java.lang.String> previousSelections)
|
static java.lang.String |
flattenSelection(java.lang.String... previousSelections)
get a Selection String suitable for SDK2 set value methods. |
java.lang.String[] |
getFirstChoices()
Just a convenient wrapper for ChoiceList.getNextChoices(String[]) |
java.lang.String[] |
getNextChoices(java.util.List<java.lang.String> previousSelections)
|
java.lang.String[] |
getNextChoices(java.lang.String... previousSelections)
|
java.lang.String[] |
getNextChoices(java.lang.String flatSelection)
Get the next level of choices given the previous selections, in order of first to last level. |
java.lang.String[] |
getSelectionByIndex(int index)
Given an index of a selection from an SDK2 option list, get the parsed selection from this ChoiceList |
boolean |
isSelectionComplete(java.util.List<java.lang.String> previousSelections)
|
boolean |
isSelectionComplete(java.lang.String... previousSelections)
is the selection a complete selection? |
static java.util.List<java.lang.String> |
parseSelection(java.lang.String selection)
parse a Selection String into String[] with '.' a delimiter. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChoiceList(java.lang.String[] optionList)
Method Detail |
---|
public java.lang.String[] getNextChoices(java.lang.String flatSelection)
public java.lang.String[] getNextChoices(java.lang.String... previousSelections)
public java.lang.String[] getNextChoices(java.util.List<java.lang.String> previousSelections)
public static java.lang.String flattenSelection(java.lang.String... previousSelections)
To set the Target: action.setTarget(ChoiceList.flattenSelection("String", "match"))
previousSelections
-
public static java.lang.String flattenSelection(java.util.List<java.lang.String> previousSelections)
public static java.util.List<java.lang.String> parseSelection(java.lang.String selection)
selection
-
public java.lang.String[] getFirstChoices()
ChoiceList.getNextChoices(String[])
public boolean isSelectionComplete(java.lang.String... previousSelections)
previousSelections
-
public boolean isSelectionComplete(java.util.List<java.lang.String> previousSelections)
public java.lang.String[] getSelectionByIndex(int index)
index
- of selection from SDK
|
Oracle Fusion Middleware Java API Reference for Oracle Business Rules 11g Release 1 (11.1.1.7) E10663-11 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |