package org.oddjob.state;
/**
* @oddjob.description
*
* A job who's return state is a logical OR of the child states.
* <p>
*
* @oddjob.example
*
* COMPLETE if either files exist, INCOMPLETE otherwise.
*
* <pre>
* <or:and xmlns:state="http://rgordon.co.uk/oddjob/state">
* <jobs>
* <exists file="doesntexist1">/>
* <exists file="doesntexist2">/>
* </jobs>
* </or:and>
* </pre>
*
* @author Rob Gordon
*/
public class OrState extends StateReflector {
private static final long serialVersionUID = 2009031800L;
@Override
protected StateOperator getInitialStateOp() {
return new OrStateOp();
}
}