public B timerWithCycle ( String timerCycle ) { TimeCycle timeCycle = createInstance ( TimeCycle . class ) ; timeCycle . setTextContent ( timerCycle ) ; TimerEventDefinition timerEventDefinition = createInstance ( TimerEventDefinition . class ) ; timerEventDefinition . setTimeCycle ( timeCycle ) ; element . getEventDefinitions ( ) . add ( timerEventDefinition ) ; return myself ; }
Sets an event definition for the timer with a time cycle .