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 * <p>Java class for scheduleDefinition complex type.
16 *
17 * <p>The following schema fragment specifies the expected content contained within this class.
18 *
19 * <pre>
20 * <complexType name="scheduleDefinition">
21 * <complexContent>
22 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
23 * <sequence>
24 * <element name="triggers" type="{urn:org:miloss:fgsms:services:interfaces:automatedReportingService}abstractSchedule" maxOccurs="unbounded"/>
25 * </sequence>
26 * </restriction>
27 * </complexContent>
28 * </complexType>
29 * </pre>
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 * Gets the value of the triggers property.
48 *
49 * <p>
50 * This accessor method returns a reference to the live list,
51 * not a snapshot. Therefore any modification you make to the
52 * returned list will be present inside the JAXB object.
53 * This is why there is not a <CODE>set</CODE> method for the triggers property.
54 *
55 * <p>
56 * For example, to add a new item, do as follows:
57 * <pre>
58 * getTriggers().add(newItem);
59 * </pre>
60 *
61 *
62 * <p>
63 * Objects of the following type(s) are allowed in the list
64 * {@link AbstractSchedule }
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 }