|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FlowStep
An interface to flow steps.
| Field Summary | |
|---|---|
static char |
CURRENT_FLOW_INDICATOR
The current flow indicator char. |
static char |
FLOW_PATH_SEPARATOR
The flow path separator char. |
static char |
STEP_INDEX_SEPARATOR
The step index separator char. |
static char |
STEP_PATH_SEPARATOR
The step path separator char. |
| Method Summary | |
|---|---|
void |
addStateListener(StepStateListener listener)
Adds a state listener of this flow step. |
void |
addStepName(int index,
String name)
Adds a named flow step. |
void |
addVariable(int index,
Variable var)
Adds a new variable at the specified index. |
void |
addVariable(Variable var)
Adds a new variable. |
boolean |
containsInvalidVariables()
Returns true, if there are one or more invalid variables. |
void |
disposeFlows()
Disposes flows of this flow step and their resources. |
void |
disposeSteps()
Disposes steps of this flow step and their resources. |
String |
getAbsolutePath()
Gets the absolute path to this flow step. |
List |
getActionNames()
Gets the action names. |
FlowStep |
getFlow()
Gets the flow of this flow step. |
int |
getIndex()
Gets the index of this flow step. |
String |
getLabel()
Gets the label. |
String |
getName()
Gets the name of this flow step. |
String |
getPath()
Gets the relative path to this flow step. |
String |
getProperty(int index)
Gets the indexed property. |
StepMatrix |
getRouteMatrix()
Gets the step route matrix. |
FlowStep |
getStep(int index)
Gets the indexed flow step |
String |
getStepName(int index)
Gets the name of the indexed flow step. |
List |
getStepNames()
Gets the names of flow steps. |
String |
getStepPath(int index)
Gets the relative path to the indexed flow step. |
String |
getTemplate()
Gets the template. |
List |
getTemplatePaths()
Gets the template paths. |
String |
getTransition(int index)
Gets the indexed transition. |
Variable |
getVariable(int index)
Gets the indexed variable. |
List |
getVariables()
Gets the variables. |
List |
getVariableTypes()
Gets the variable types. |
int |
indexOfStep(String name)
Returns the index of the named flow step. |
boolean |
isHeritable()
Checks whether heritable. |
boolean |
isInvalidVariable(int index)
Checks the invalidity of the indexed variable. |
boolean |
isState(int index)
Checks the indexed state. |
boolean |
isValidVariable(int index)
Checks the validity of the indexed variable. |
boolean |
isValidVariables()
Checks whether all variables are valid, i.e. |
void |
removeStateListener(StepStateListener listener)
Removes a state listener of this flow step. |
void |
removeStep(int index)
Removes the indexed flow step. |
void |
removeTemplate()
Removes the template. |
void |
removeVariable(int index)
Removes the indexed variable. |
void |
removeVariables()
Removes all variables. |
Variable |
renewVariable(int index)
Renews the indexed variable by replacing it with a fresh one. |
List |
renewVariables()
Renews all variables by replacing them with fresh ones. |
void |
resetInvalidVariables()
Resets invalid variables by marking them as not updated. |
void |
resetVariable(int index)
Resets the indexed variable by marking it as not updated. |
void |
resetVariables()
Resets all variables by marking them as not updated. |
void |
setActionNames(List tasks)
Sets the action names. |
void |
setHeritable(boolean flag)
Sets whether heritable. |
void |
setLabel(String label)
Sets the label. |
String |
setProperty(int index,
String value)
Sets the indexed property. |
void |
setRouteMatrix(StepMatrix matrix)
Sets the step route matrix. |
boolean |
setState(int index,
boolean flag)
Sets the indexed state. |
void |
setStepName(int index,
String name)
Sets the named flow step. |
void |
setStepNames(List names)
Sets the names of flow steps. |
void |
setTemplate(String path)
Sets the template. |
void |
setTemplatePaths(List paths)
Sets the template paths. |
String |
setTransition(int index,
String value)
Sets the indexed transition. |
void |
setValidVariable(int index,
boolean flag)
Sets the validity of the indexed variable. |
void |
setValidVariables(boolean flag)
Sets the validity of all variables. |
void |
setVariable(int index,
Variable var)
Sets the indexed variable. |
void |
setVariables(List list)
Sets the variables. |
void |
setVariableTypes(List types)
Sets the variable types. |
void |
sortVariables(Comparator comparator)
Sorts variables. |
int |
stepCount()
Returns the number of steps. |
String |
toClassName()
Converts the name of this flow to the corresponding class name. |
int |
variableCount()
Returns the number of variables. |
| Field Detail |
|---|
static final char CURRENT_FLOW_INDICATOR
static final char FLOW_PATH_SEPARATOR
static final char STEP_PATH_SEPARATOR
static final char STEP_INDEX_SEPARATOR
| Method Detail |
|---|
String getName()
FlowStep getFlow()
int getIndex()
String getPath()
String getAbsolutePath()
boolean isHeritable()
void setHeritable(boolean flag)
flag - true if heritable, false otherwise.StepMatrix getRouteMatrix()
void setRouteMatrix(StepMatrix matrix)
matrix - the step matrix.
IndexOutOfBoundsException - if wrong size.FlowStep getStep(int index)
index - the index.
IndexOutOfBoundsException - if wrong index.
IllegalStateException - if not available.void removeStep(int index)
index - the index.
IllegalArgumentException - for an index <= 0.
IndexOutOfBoundsException - if wrong index.int indexOfStep(String name)
name - the flow step name.
String getStepName(int index)
index - the index.
IndexOutOfBoundsException - if wrong index.
void setStepName(int index,
String name)
index - the index.name - the flow step name.
NullPointerException - for a null name.
IllegalArgumentException - for invalid index or name.
IndexOutOfBoundsException - if wrong index.
void addStepName(int index,
String name)
index - the index.name - the flow step name.
NullPointerException - for a null name.
IllegalArgumentException - for invalid index or name.
IndexOutOfBoundsException - if wrong index.List getStepNames()
void setStepNames(List names)
names - a list of flow step names.
NullPointerException - for null names.
IllegalArgumentException - for invalid names.String getStepPath(int index)
index - the index.
IndexOutOfBoundsException - if wrong index.int stepCount()
void disposeSteps()
void disposeFlows()
String toClassName()
String getLabel()
Note that the name is returned if the label is not set.
void setLabel(String label)
label - the label.List getTemplatePaths()
void setTemplatePaths(List paths)
paths - a list of template paths.List getVariableTypes()
void setVariableTypes(List types)
types - a list of variable types or null.List getActionNames()
void setActionNames(List tasks)
tasks - a list of action names or null.boolean isState(int index)
Note that the index depends on the context of this flow step.
index - the state index.
boolean setState(int index,
boolean flag)
Note that the index depends on the context of this flow step.
index - the state index.flag - true if set, false otherwise.
String getProperty(int index)
Note that the index depends on the context of this flow step.
index - the property index.
String setProperty(int index,
String value)
Note that the index depends on the context of this flow step.
index - the property index.value - the value of the property.
String getTransition(int index)
Note that the index depends on the context of this flow step.
index - the state index.
String setTransition(int index,
String value)
Note that the index depends on the context of this flow step.
index - the state index.value - the value of the transition.
void addStateListener(StepStateListener listener)
listener - the listener.void removeStateListener(StepStateListener listener)
listener - the listener.String getTemplate()
void setTemplate(String path)
path - the template path.void removeTemplate()
Variable getVariable(int index)
throws ConstructionException
index - the index of the variable.
ConstructionException - if construction fails.
IndexOutOfBoundsException - for wrong index.
IllegalStateException - if the flow filter is missing.
void setVariable(int index,
Variable var)
throws ConstructionException
index - the index of the variable.var - the variable.
ConstructionException - if construction fails.
IndexOutOfBoundsException - for wrong index.
IllegalStateException - if the flow filter is missing.
List getVariables()
throws ConstructionException
ConstructionException - if construction fails.
IllegalStateException - if the flow filter is missing.void setVariables(List list)
list - a list of variables.
void addVariable(Variable var)
throws ConstructionException
var - the variable.
ConstructionException - if construction fails.
NullPointerException - for a null variable.
IllegalStateException - if the flow filter is missing.
void addVariable(int index,
Variable var)
throws ConstructionException
index - the index of the variable.var - the variable.
ConstructionException - if construction fails.
IndexOutOfBoundsException - for wrong index.
NullPointerException - for a null variable.
IllegalStateException - if the flow filter is missing.
Variable renewVariable(int index)
throws ConstructionException
index - the index of the variable.
ConstructionException - if construction fails.
IndexOutOfBoundsException - for wrong index.
IllegalStateException - if the flow filter is missing.
List renewVariables()
throws ConstructionException
ConstructionException - if construction fails.
IllegalStateException - if the flow filter is missing.
void removeVariable(int index)
throws ConstructionException
index - the index of the variable.
ConstructionException - if construction fails.
IndexOutOfBoundsException - for wrong index.
IllegalStateException - if the flow filter is missing.
void removeVariables()
throws ConstructionException
ConstructionException - if construction fails.
IllegalStateException - if the flow filter is missing.
void sortVariables(Comparator comparator)
throws ConstructionException
comparator - the comparator to apply.
ConstructionException - if construction fails.
IllegalStateException - if the flow filter is missing.int variableCount()
boolean isValidVariable(int index)
index - the index of the variable.
IndexOutOfBoundsException - for wrong index.boolean isInvalidVariable(int index)
index - the index of the variable.
IndexOutOfBoundsException - for wrong index.
void setValidVariable(int index,
boolean flag)
index - the inded of the variable.flag - true if valid, false otherwise.
IndexOutOfBoundsException - for wrong index.boolean isValidVariables()
void setValidVariables(boolean flag)
flag - true if valid, false otherwise.void resetVariable(int index)
index - the index of the variable.
IndexOutOfBoundsException - for wrong index.void resetVariables()
boolean containsInvalidVariables()
void resetInvalidVariables()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||