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="name" type="{http://www.w3.org/2001/XMLSchema}token"/>
35 * <element ref="{http://ejava.info/eLeague/1.0.2009.1}contact"/>
36 * <element ref="{http://ejava.info/eLeague/1.0.2009.1}venue" maxOccurs="unbounded" minOccurs="0"/>
37 * <element ref="{http://ejava.info/eLeague/1.0.2009.1}team" maxOccurs="unbounded" minOccurs="0"/>
38 * </sequence>
39 * <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}long" />
40 * </extension>
41 * </complexContent>
42 * </complexType>
43 * </pre>
44 *
45 *
46 */
47 @XmlAccessorType(XmlAccessType.FIELD)
48 @XmlType(name = "", propOrder = {
49 "name",
50 "contact",
51 "venue",
52 "team"
53 })
54 @XmlRootElement(name = "club")
55 public class Club
56 extends ReferencedType
57 {
58
59 @XmlElement(required = true)
60 @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
61 @XmlSchemaType(name = "token")
62 protected String name;
63 @XmlElement(namespace = "http://ejava.info/eLeague/1.0.2009.1", required = true)
64 protected Contact contact;
65 @XmlElement(namespace = "http://ejava.info/eLeague/1.0.2009.1")
66 protected List<Venue> venue;
67 @XmlElement(namespace = "http://ejava.info/eLeague/1.0.2009.1")
68 protected List<Team> team;
69 @XmlAttribute(name = "id", required = true)
70 protected long id;
71
72 /**
73 * Default no-arg constructor
74 *
75 */
76 public Club() {
77 super();
78 }
79
80 /**
81 * Fully-initialising value constructor
82 *
83 */
84 public Club(final String refid, final String name, final Contact contact, final List<Venue> venue, final List<Team> team, final long id) {
85 super(refid);
86 this.name = name;
87 this.contact = contact;
88 this.venue = venue;
89 this.team = team;
90 this.id = id;
91 }
92
93 /**
94 * Gets the value of the name property.
95 *
96 * @return
97 * possible object is
98 * {@link String }
99 *
100 */
101 public String getName() {
102 return name;
103 }
104
105 /**
106 * Sets the value of the name property.
107 *
108 * @param value
109 * allowed object is
110 * {@link String }
111 *
112 */
113 public void setName(String value) {
114 this.name = value;
115 }
116
117 /**
118 * Gets the value of the contact property.
119 *
120 * @return
121 * possible object is
122 * {@link Contact }
123 *
124 */
125 public Contact getContact() {
126 return contact;
127 }
128
129 /**
130 * Sets the value of the contact property.
131 *
132 * @param value
133 * allowed object is
134 * {@link Contact }
135 *
136 */
137 public void setContact(Contact value) {
138 this.contact = value;
139 }
140
141 /**
142 * Gets the value of the venue property.
143 *
144 * <p>
145 * This accessor method returns a reference to the live list,
146 * not a snapshot. Therefore any modification you make to the
147 * returned list will be present inside the JAXB object.
148 * This is why there is not a <CODE>set</CODE> method for the venue property.
149 *
150 * <p>
151 * For example, to add a new item, do as follows:
152 * <pre>
153 * getVenue().add(newItem);
154 * </pre>
155 *
156 *
157 * <p>
158 * Objects of the following type(s) are allowed in the list
159 * {@link Venue }
160 *
161 *
162 */
163 public List<Venue> getVenue() {
164 if (venue == null) {
165 venue = new ArrayList<Venue>();
166 }
167 return this.venue;
168 }
169
170 /**
171 * Gets the value of the team property.
172 *
173 * <p>
174 * This accessor method returns a reference to the live list,
175 * not a snapshot. Therefore any modification you make to the
176 * returned list will be present inside the JAXB object.
177 * This is why there is not a <CODE>set</CODE> method for the team property.
178 *
179 * <p>
180 * For example, to add a new item, do as follows:
181 * <pre>
182 * getTeam().add(newItem);
183 * </pre>
184 *
185 *
186 * <p>
187 * Objects of the following type(s) are allowed in the list
188 * {@link Team }
189 *
190 *
191 */
192 public List<Team> getTeam() {
193 if (team == null) {
194 team = new ArrayList<Team>();
195 }
196 return this.team;
197 }
198
199 /**
200 * Gets the value of the id property.
201 *
202 */
203 public long getId() {
204 return id;
205 }
206
207 /**
208 * Sets the value of the id property.
209 *
210 */
211 public void setId(long value) {
212 this.id = value;
213 }
214
215 }