xmlBuf.append( "</expression>" );
xmlBuf.append( "<state>" );
xmlBuf.append( scheduledJobs.get(j).getTriggerState() );
xmlBuf.append( "</state>" );
xmlBuf.append( "<start>" );
xmlBuf.append( new DateTimeValue( scheduledJobs.get(j).getStartTime() ) );
xmlBuf.append( "</start>" );
xmlBuf.append( "<end>" );
Date endTime = scheduledJobs.get(j).getEndTime();
if( endTime != null ) {
xmlBuf.append( new DateTimeValue( endTime ) );
}
xmlBuf.append( "</end>" );
xmlBuf.append( "<previous>" );
Date previousTime = scheduledJobs.get(j).getPreviousFireTime();
if( previousTime != null ) {
xmlBuf.append( new DateTimeValue( scheduledJobs.get(j).getPreviousFireTime() ) );
}
xmlBuf.append( "</previous>" );
xmlBuf.append( "<next>" );
Date nextTime = scheduledJobs.get(j).getNextFireTime();
if( nextTime != null ) {
xmlBuf.append( new DateTimeValue() );
}
xmlBuf.append( "</next>" );
xmlBuf.append( "<final>" );
Date finalTime = scheduledJobs.get(j).getFinalFireTime();
if( ( endTime != null ) && ( finalTime != null ) ) {
xmlBuf.append( new DateTimeValue() );
}
xmlBuf.append( "</final>" );
xmlBuf.append( "</" + SchedulerModule.PREFIX + ":trigger>" );
xmlBuf.append( "</" + SchedulerModule.PREFIX + ":job>" );