org.oddjob.state
Class AndState
java.lang.Object
org.oddjob.framework.BaseComponent
org.oddjob.framework.BasePrimary
org.oddjob.framework.StructuralJob<Runnable>
org.oddjob.framework.SimultaneousStructural
org.oddjob.state.StateReflector
org.oddjob.state.AndState
- All Implemented Interfaces:
- Serializable, Runnable, ArooaContextAware, Forceable, PropertyChangeNotifier, Iconic, LogEnabled, Resetable, Stateful, Stoppable, Structural
public class AndState
- extends StateReflector
Description
A job who's return state is a logical AND of the child states.
Example
COMPLETE if both files exist, INCOMPLETE otherwise.
<state:and xmlns:state="http://rgordon.co.uk/oddjob/state">
<jobs>
<exists file="${file.one}"/>
<exists file="${file.two}"/>
</jobs>
</state:and>
- See Also:
- Serialized Form
- Author:
- Rob Gordon
| Methods inherited from class org.oddjob.framework.StructuralJob |
addStructuralListener, fireDestroyedState, force, getStateChanger, hardReset, onDestroy, onReset, removeStructuralListener, run, softReset, stateHandler |
| Methods inherited from class org.oddjob.framework.BaseComponent |
addIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext, setArooaSession |
AndState
public AndState()
getStateOp
protected StateOperator getStateOp()
- Specified by:
getStateOp in class StructuralJob<Runnable>