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.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 * <p>Java class for anonymous complex type.
26 *
27 * <p>The following schema fragment specifies the expected content contained within this class.
28 *
29 * <pre>
30 * <complexType>
31 * <complexContent>
32 * <extension base="{http://ejava.info/eLeague/1.0.2009.1}ReferencedType">
33 * <sequence>
34 * <element name="group" type="{http://www.w3.org/2001/XMLSchema}token"/>
35 * <element name="level" type="{http://www.w3.org/2001/XMLSchema}token"/>
36 * <element name="ranking" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
37 * <element ref="{http://ejava.info/eLeague/1.0.2009.1}contact" minOccurs="0"/>
38 * <element ref="{http://ejava.info/eLeague/1.0.2009.1}team-season" maxOccurs="unbounded" minOccurs="0"/>
39 * </sequence>
40 * <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}long" />
41 * </extension>
42 * </complexContent>
43 * </complexType>
44 * </pre>
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 * Default no-arg constructor
82 *
83 */
84 public Division() {
85 super();
86 }
87
88 /**
89 * Fully-initialising value constructor
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 * Gets the value of the group property.
104 *
105 * @return
106 * possible object is
107 * {@link String }
108 *
109 */
110 public String getGroup() {
111 return group;
112 }
113
114 /**
115 * Sets the value of the group property.
116 *
117 * @param value
118 * allowed object is
119 * {@link String }
120 *
121 */
122 public void setGroup(String value) {
123 this.group = value;
124 }
125
126 /**
127 * Gets the value of the level property.
128 *
129 * @return
130 * possible object is
131 * {@link String }
132 *
133 */
134 public String getLevel() {
135 return level;
136 }
137
138 /**
139 * Sets the value of the level property.
140 *
141 * @param value
142 * allowed object is
143 * {@link String }
144 *
145 */
146 public void setLevel(String value) {
147 this.level = value;
148 }
149
150 /**
151 * Gets the value of the ranking property.
152 *
153 * @return
154 * possible object is
155 * {@link String }
156 *
157 */
158 public Integer getRanking() {
159 return ranking;
160 }
161
162 /**
163 * Sets the value of the ranking property.
164 *
165 * @param value
166 * allowed object is
167 * {@link String }
168 *
169 */
170 public void setRanking(Integer value) {
171 this.ranking = value;
172 }
173
174 /**
175 * Gets the value of the contact property.
176 *
177 * @return
178 * possible object is
179 * {@link Contact }
180 *
181 */
182 public Contact getContact() {
183 return contact;
184 }
185
186 /**
187 * Sets the value of the contact property.
188 *
189 * @param value
190 * allowed object is
191 * {@link Contact }
192 *
193 */
194 public void setContact(Contact value) {
195 this.contact = value;
196 }
197
198 /**
199 * Gets the value of the teamSeason property.
200 *
201 * <p>
202 * This accessor method returns a reference to the live list,
203 * not a snapshot. Therefore any modification you make to the
204 * returned list will be present inside the JAXB object.
205 * This is why there is not a <CODE>set</CODE> method for the teamSeason property.
206 *
207 * <p>
208 * For example, to add a new item, do as follows:
209 * <pre>
210 * getTeamSeason().add(newItem);
211 * </pre>
212 *
213 *
214 * <p>
215 * Objects of the following type(s) are allowed in the list
216 * {@link TeamSeason }
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 * Gets the value of the id property.
229 *
230 */
231 public long getId() {
232 return id;
233 }
234
235 /**
236 * Sets the value of the id property.
237 *
238 */
239 public void setId(long value) {
240 this.id = value;
241 }
242
243 }