1
2 package org.miloss.fgsms.services.interfaces.automatedreportingservice;
3
4 import java.io.Serializable;
5 import java.util.ArrayList;
6 import java.util.List;
7 import javax.xml.bind.annotation.XmlAccessType;
8 import javax.xml.bind.annotation.XmlAccessorType;
9 import javax.xml.bind.annotation.XmlElement;
10 import javax.xml.bind.annotation.XmlSeeAlso;
11 import javax.xml.bind.annotation.XmlType;
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 @XmlAccessorType(XmlAccessType.FIELD)
34 @XmlType(name = "scheduleDefinition", propOrder = {
35 "triggers"
36 })
37 @XmlSeeAlso(value = {DailySchedule.class, WeeklySchedule.class, MonthlySchedule.class, OneTimeSchedule.class,ImmediateSchedule.class})
38 public class ScheduleDefinition
39 implements Serializable
40 {
41
42 private final static long serialVersionUID = 1L;
43 @XmlElement(required = true)
44 protected List<AbstractSchedule> triggers;
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68 public List<AbstractSchedule> getTriggers() {
69 if (triggers == null) {
70 triggers = new ArrayList<AbstractSchedule>();
71 }
72 return this.triggers;
73 }
74
75 public boolean isSetTriggers() {
76 return ((this.triggers!= null)&&(!this.triggers.isEmpty()));
77 }
78
79 public void unsetTriggers() {
80 this.triggers = null;
81 }
82
83 }