public B timerWithDuration ( String timerDuration ) { TimeDuration timeDuration = createInstance ( TimeDuration . class ) ; timeDuration . setTextContent ( timerDuration ) ; TimerEventDefinition timerEventDefinition = createInstance ( TimerEventDefinition . class ) ; timerEventDefinition . setTimeDuration ( timeDuration ) ; element . getEventDefinitions ( ) . add ( timerEventDefinition ) ; return myself ; }
Sets an event definition for the timer with a time duration .