|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Attribute Modules are meant to perform one thing: generate the various
state combinations that can be produced from the sub-tree's generated
IItem list. If on a fire( String, IDataList )
call, it has passed
through all of
its combinations of the list, it should return false from
hasAnotherState()
. If another call to
fire( String, IDataList )
is done,
then the module needs to reset itself to restart its combinations.
Method Summary | |
IAttributeModule |
copy()
Copy the current module, and reset the new module's state as if fire( String, IDataList ) has never been called. |
IDataList |
fire(String value,
IDataList list)
Perform the specific permutation of the given data list. |
boolean |
hasAnotherState()
The containing application will ensure that this will only be called after each fire( String, IDataList ) call. |
void |
registerValueModule(IValueModule module)
Register the given value module with this module. |
boolean |
shouldFireTreeParse(String value,
IDataList list)
Determines if the tree at the node in the list should be fired. |
Method Detail |
public void registerValueModule(IValueModule module)
public IAttributeModule copy()
fire( String, IDataList )
has never been called.public boolean hasAnotherState()
fire( String, IDataList )
call. The
fire( String, IDataList )
call should
store this result at the end of the fire( String, IDataList )
method.fire( String, IDataList )
public boolean shouldFireTreeParse(String value, IDataList list)
This is useful for performing conditional branching on a tree to prevent the sub-nodes for executing any actions which may be undesired (such as property adjustments).
public IDataList fire(String value, IDataList list)
hasAnotherState()
at the end of this method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |