1
2
3
4
5
6
7
8
9 package ejava.projects.eleague.dto;
10
11 import java.util.ArrayList;
12 import java.util.List;
13 import javax.xml.bind.annotation.XmlAccessType;
14 import javax.xml.bind.annotation.XmlAccessorType;
15 import javax.xml.bind.annotation.XmlAttribute;
16 import javax.xml.bind.annotation.XmlElement;
17 import javax.xml.bind.annotation.XmlRootElement;
18 import javax.xml.bind.annotation.XmlSchemaType;
19 import javax.xml.bind.annotation.XmlType;
20 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
21 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
22
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 @XmlAccessorType(XmlAccessType.FIELD)
49 @XmlType(name = "", propOrder = {
50 "group",
51 "level",
52 "ranking",
53 "contact",
54 "teamSeason"
55 })
56 @XmlRootElement(name = "division")
57 public class Division
58 extends ReferencedType
59 {
60
61 @XmlElement(required = true)
62 @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
63 @XmlSchemaType(name = "token")
64 protected String group;
65 @XmlElement(required = true)
66 @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
67 @XmlSchemaType(name = "token")
68 protected String level;
69 @XmlElement(type = String.class)
70 @XmlJavaTypeAdapter(Adapter4 .class)
71 @XmlSchemaType(name = "int")
72 protected Integer ranking;
73 @XmlElement(namespace = "http://ejava.info/eLeague/1.0.2009.1")
74 protected Contact contact;
75 @XmlElement(name = "team-season", namespace = "http://ejava.info/eLeague/1.0.2009.1")
76 protected List<TeamSeason> teamSeason;
77 @XmlAttribute(name = "id", required = true)
78 protected long id;
79
80
81
82
83
84 public Division() {
85 super();
86 }
87
88
89
90
91
92 public Division(final String refid, final String group, final String level, final Integer ranking, final Contact contact, final List<TeamSeason> teamSeason, final long id) {
93 super(refid);
94 this.group = group;
95 this.level = level;
96 this.ranking = ranking;
97 this.contact = contact;
98 this.teamSeason = teamSeason;
99 this.id = id;
100 }
101
102
103
104
105
106
107
108
109
110 public String getGroup() {
111 return group;
112 }
113
114
115
116
117
118
119
120
121
122 public void setGroup(String value) {
123 this.group = value;
124 }
125
126
127
128
129
130
131
132
133
134 public String getLevel() {
135 return level;
136 }
137
138
139
140
141
142
143
144
145
146 public void setLevel(String value) {
147 this.level = value;
148 }
149
150
151
152
153
154
155
156
157
158 public Integer getRanking() {
159 return ranking;
160 }
161
162
163
164
165
166
167
168
169
170 public void setRanking(Integer value) {
171 this.ranking = value;
172 }
173
174
175
176
177
178
179
180
181
182 public Contact getContact() {
183 return contact;
184 }
185
186
187
188
189
190
191
192
193
194 public void setContact(Contact value) {
195 this.contact = value;
196 }
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220 public List<TeamSeason> getTeamSeason() {
221 if (teamSeason == null) {
222 teamSeason = new ArrayList<TeamSeason>();
223 }
224 return this.teamSeason;
225 }
226
227
228
229
230
231 public long getId() {
232 return id;
233 }
234
235
236
237
238
239 public void setId(long value) {
240 this.id = value;
241 }
242
243 }