Class AndState

All Implemented Interfaces:
Serializable, Runnable, ArooaContextAware, ArooaSessionAware, Forceable, PropertyChangeNotifier, Iconic, LogEnabled, Resettable, Stateful, Stoppable, Structural

public class AndState extends StateReflector
Author:
Rob Gordon
See Also:

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>
  • Constructor Details

    • AndState

      public AndState()
  • Method Details