1 //
2 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0
3 // See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a>
4 // Any modifications to this file will be lost upon recompilation of the source schema.
5 // Generated on: 2019.08.22 at 12:16:01 PM UTC
6 //
7
8
9 package ejava.projects.eleague.dto;
10
11 import java.util.ArrayList;
12 import java.util.Date;
13 import java.util.List;
14 import javax.xml.bind.annotation.XmlAccessType;
15 import javax.xml.bind.annotation.XmlAccessorType;
16 import javax.xml.bind.annotation.XmlAttribute;
17 import javax.xml.bind.annotation.XmlElement;
18 import javax.xml.bind.annotation.XmlRootElement;
19 import javax.xml.bind.annotation.XmlSchemaType;
20 import javax.xml.bind.annotation.XmlType;
21 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
22 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
23
24
25 /**
26 * <p>Java class for anonymous complex type.
27 *
28 * <p>The following schema fragment specifies the expected content contained within this class.
29 *
30 * <pre>
31 * <complexType>
32 * <complexContent>
33 * <extension base="{http://ejava.info/eLeague/1.0.2009.1}ReferencedType">
34 * <sequence>
35 * <element name="name" type="{http://www.w3.org/2001/XMLSchema}token"/>
36 * <element name="starts" type="{http://www.w3.org/2001/XMLSchema}date"/>
37 * <element name="ends" type="{http://www.w3.org/2001/XMLSchema}date"/>
38 * <element ref="{http://ejava.info/eLeague/1.0.2009.1}division" maxOccurs="unbounded" minOccurs="0"/>
39 * <element ref="{http://ejava.info/eLeague/1.0.2009.1}contest" maxOccurs="unbounded" minOccurs="0"/>
40 * </sequence>
41 * <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}long" />
42 * </extension>
43 * </complexContent>
44 * </complexType>
45 * </pre>
46 *
47 *
48 */
49 @XmlAccessorType(XmlAccessType.FIELD)
50 @XmlType(name = "", propOrder = {
51 "name",
52 "starts",
53 "ends",
54 "division",
55 "contest"
56 })
57 @XmlRootElement(name = "season")
58 public class Season
59 extends ReferencedType
60 {
61
62 @XmlElement(required = true)
63 @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
64 @XmlSchemaType(name = "token")
65 protected String name;
66 @XmlElement(required = true, type = String.class)
67 @XmlJavaTypeAdapter(Adapter3 .class)
68 @XmlSchemaType(name = "date")
69 protected Date starts;
70 @XmlElement(required = true, type = String.class)
71 @XmlJavaTypeAdapter(Adapter3 .class)
72 @XmlSchemaType(name = "date")
73 protected Date ends;
74 @XmlElement(namespace = "http://ejava.info/eLeague/1.0.2009.1")
75 protected List<Division> division;
76 @XmlElement(namespace = "http://ejava.info/eLeague/1.0.2009.1")
77 protected List<Contest> contest;
78 @XmlAttribute(name = "id", required = true)
79 protected long id;
80
81 /**
82 * Default no-arg constructor
83 *
84 */
85 public Season() {
86 super();
87 }
88
89 /**
90 * Fully-initialising value constructor
91 *
92 */
93 public Season(final String refid, final String name, final Date starts, final Date ends, final List<Division> division, final List<Contest> contest, final long id) {
94 super(refid);
95 this.name = name;
96 this.starts = starts;
97 this.ends = ends;
98 this.division = division;
99 this.contest = contest;
100 this.id = id;
101 }
102
103 /**
104 * Gets the value of the name property.
105 *
106 * @return
107 * possible object is
108 * {@link String }
109 *
110 */
111 public String getName() {
112 return name;
113 }
114
115 /**
116 * Sets the value of the name property.
117 *
118 * @param value
119 * allowed object is
120 * {@link String }
121 *
122 */
123 public void setName(String value) {
124 this.name = value;
125 }
126
127 /**
128 * Gets the value of the starts property.
129 *
130 * @return
131 * possible object is
132 * {@link String }
133 *
134 */
135 public Date getStarts() {
136 return starts;
137 }
138
139 /**
140 * Sets the value of the starts property.
141 *
142 * @param value
143 * allowed object is
144 * {@link String }
145 *
146 */
147 public void setStarts(Date value) {
148 this.starts = value;
149 }
150
151 /**
152 * Gets the value of the ends property.
153 *
154 * @return
155 * possible object is
156 * {@link String }
157 *
158 */
159 public Date getEnds() {
160 return ends;
161 }
162
163 /**
164 * Sets the value of the ends property.
165 *
166 * @param value
167 * allowed object is
168 * {@link String }
169 *
170 */
171 public void setEnds(Date value) {
172 this.ends = value;
173 }
174
175 /**
176 * Gets the value of the division property.
177 *
178 * <p>
179 * This accessor method returns a reference to the live list,
180 * not a snapshot. Therefore any modification you make to the
181 * returned list will be present inside the JAXB object.
182 * This is why there is not a <CODE>set</CODE> method for the division property.
183 *
184 * <p>
185 * For example, to add a new item, do as follows:
186 * <pre>
187 * getDivision().add(newItem);
188 * </pre>
189 *
190 *
191 * <p>
192 * Objects of the following type(s) are allowed in the list
193 * {@link Division }
194 *
195 *
196 */
197 public List<Division> getDivision() {
198 if (division == null) {
199 division = new ArrayList<Division>();
200 }
201 return this.division;
202 }
203
204 /**
205 * Gets the value of the contest property.
206 *
207 * <p>
208 * This accessor method returns a reference to the live list,
209 * not a snapshot. Therefore any modification you make to the
210 * returned list will be present inside the JAXB object.
211 * This is why there is not a <CODE>set</CODE> method for the contest property.
212 *
213 * <p>
214 * For example, to add a new item, do as follows:
215 * <pre>
216 * getContest().add(newItem);
217 * </pre>
218 *
219 *
220 * <p>
221 * Objects of the following type(s) are allowed in the list
222 * {@link Contest }
223 *
224 *
225 */
226 public List<Contest> getContest() {
227 if (contest == null) {
228 contest = new ArrayList<Contest>();
229 }
230 return this.contest;
231 }
232
233 /**
234 * Gets the value of the id property.
235 *
236 */
237 public long getId() {
238 return id;
239 }
240
241 /**
242 * Sets the value of the id property.
243 *
244 */
245 public void setId(long value) {
246 this.id = value;
247 }
248
249 }