|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sri.common.util.ObjectCombinator
public class ObjectCombinator
This class allows the generation of all combinations of Object items available throughout the wizard steps. It is used to generate the decision matrix in the Wizard controller. It works by keeping an array of counters
Constructor Summary | |
---|---|
ObjectCombinator(Object[][] allObjectValues,
Class arrayClass)
Constructs a PicklistCombinator object given a two dimensional array representing all choices available during the execution of a wizard. |
Method Summary | |
---|---|
protected Object[][] |
getAllValues()
Protected getter. |
int |
getRowIndex(Iterator i,
int column)
Retrieves where we are in the current iteration for a particular column. |
Iterator |
iterator()
Iterate over the picklists. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectCombinator(Object[][] allObjectValues, Class arrayClass)
allObjectValues
- an array of valid value items.
The first dimension
represents each page. The second dimension represents all the choices
present in each page.arrayClass
- the class of the object that is in the array.Method Detail |
---|
public Iterator iterator()
public int getRowIndex(Iterator i, int column)
i
- Iterator The current PicklistIterator.column
- int the column to query.
ArrayIndexOutOfBoundsException
- if column number is too high
for the combination matrix.protected Object[][] getAllValues()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |