public class SetJob extends SimpleJob
<oddjob> <job> <sequential> <jobs> <set> <values> <value key="check.checkBoolean" value="true"/> <value key="check.checkByte" value="127"/> <value key="check.checkChar" value="a"/> <date key="check.checkDate" date="2005-12-25" timeZone="GMT"/> <value key="check.checkDouble" value="9E99"/> <value key="check.checkFloat" value="1.23"/> <value key="check.checkInt" value="1234567"/> <value key="check.checkLong" value="2345678"/> <value key="check.checkShort" value="123"/> <value key="check.checkString" value="hello"/> </values> </set> <bean id="check" class="org.oddjob.values.CheckBasicSetters"/> </jobs> </sequential> </job> </oddjob>This is the configuration for one of the tests.
Constructor and Description |
---|
SetJob() |
Modifier and Type | Method and Description |
---|---|
protected int |
execute()
Execute this job.
|
void |
setValues(java.lang.String name,
ArooaValue value)
Add a name value pair.
|
fireDestroyedState, force, getStateChanger, hardReset, iconHelper, isStop, onDestroy, onReset, onStop, run, sleep, softReset, stateHandler, stop
configure, getName, logger, logger, loggerName, save, setName, toString
addIconListener, addPropertyChangeListener, addStateListener, configure, destroy, firePropertyChange, getArooaSession, iconForId, initialise, lastStateEvent, onConfigured, onInitialised, removeIconListener, removePropertyChangeListener, removeStateListener, save, setArooaContext, setArooaSession
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addStateListener, lastStateEvent, removeStateListener
public void setValues(java.lang.String name, ArooaValue value)
Property: values
Description: The thing to set on the property that is given by the key of this mapped property.
Required: No, but pointless if not provided.
name
- The name of the variable.value
- The runtime configurable for the value.