1
2
3
4
5
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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
83
84
85 public Season() {
86 super();
87 }
88
89
90
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
105
106
107
108
109
110
111 public String getName() {
112 return name;
113 }
114
115
116
117
118
119
120
121
122
123 public void setName(String value) {
124 this.name = value;
125 }
126
127
128
129
130
131
132
133
134
135 public Date getStarts() {
136 return starts;
137 }
138
139
140
141
142
143
144
145
146
147 public void setStarts(Date value) {
148 this.starts = value;
149 }
150
151
152
153
154
155
156
157
158
159 public Date getEnds() {
160 return ends;
161 }
162
163
164
165
166
167
168
169
170
171 public void setEnds(Date value) {
172 this.ends = value;
173 }
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
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
235
236
237 public long getId() {
238 return id;
239 }
240
241
242
243
244
245 public void setId(long value) {
246 this.id = value;
247 }
248
249 }