View Javadoc
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.Date;
12  import javax.xml.bind.annotation.XmlAccessType;
13  import javax.xml.bind.annotation.XmlAccessorType;
14  import javax.xml.bind.annotation.XmlAttribute;
15  import javax.xml.bind.annotation.XmlElement;
16  import javax.xml.bind.annotation.XmlIDREF;
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.XmlJavaTypeAdapter;
21  
22  
23  /**
24   * <p>Java class for anonymous complex type.
25   * 
26   * <p>The following schema fragment specifies the expected content contained within this class.
27   * 
28   * <pre>
29   * &lt;complexType&gt;
30   *   &lt;complexContent&gt;
31   *     &lt;extension base="{http://ejava.info/eLeague/1.0.2009.1}ReferencedType"&gt;
32   *       &lt;sequence&gt;
33   *         &lt;element name="starts" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/&gt;
34   *         &lt;element name="duration" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
35   *         &lt;element name="location" type="{http://www.w3.org/2001/XMLSchema}IDREF" minOccurs="0"/&gt;
36   *         &lt;element name="homeTeam" type="{http://www.w3.org/2001/XMLSchema}IDREF"/&gt;
37   *         &lt;element name="awayTeam" type="{http://www.w3.org/2001/XMLSchema}IDREF"/&gt;
38   *         &lt;element name="homeScore" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/&gt;
39   *         &lt;element name="awayScore" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/&gt;
40   *       &lt;/sequence&gt;
41   *       &lt;attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}long" /&gt;
42   *     &lt;/extension&gt;
43   *   &lt;/complexContent&gt;
44   * &lt;/complexType&gt;
45   * </pre>
46   * 
47   * 
48   */
49  @XmlAccessorType(XmlAccessType.FIELD)
50  @XmlType(name = "", propOrder = {
51      "starts",
52      "duration",
53      "location",
54      "homeTeam",
55      "awayTeam",
56      "homeScore",
57      "awayScore"
58  })
59  @XmlRootElement(name = "contest")
60  public class Contest
61      extends ReferencedType
62  {
63  
64      @XmlElement(type = String.class)
65      @XmlJavaTypeAdapter(Adapter2 .class)
66      @XmlSchemaType(name = "dateTime")
67      protected Date starts;
68      protected long duration;
69      @XmlIDREF
70      @XmlSchemaType(name = "IDREF")
71      protected Object location;
72      @XmlElement(required = true)
73      @XmlIDREF
74      @XmlSchemaType(name = "IDREF")
75      protected Object homeTeam;
76      @XmlElement(required = true)
77      @XmlIDREF
78      @XmlSchemaType(name = "IDREF")
79      protected Object awayTeam;
80      @XmlElement(type = String.class)
81      @XmlJavaTypeAdapter(Adapter4 .class)
82      @XmlSchemaType(name = "int")
83      protected Integer homeScore;
84      @XmlElement(type = String.class)
85      @XmlJavaTypeAdapter(Adapter4 .class)
86      @XmlSchemaType(name = "int")
87      protected Integer awayScore;
88      @XmlAttribute(name = "id", required = true)
89      protected long id;
90  
91      /**
92       * Default no-arg constructor
93       * 
94       */
95      public Contest() {
96          super();
97      }
98  
99      /**
100      * Fully-initialising value constructor
101      * 
102      */
103     public Contest(final String refid, final Date starts, final long duration, final Object location, final Object homeTeam, final Object awayTeam, final Integer homeScore, final Integer awayScore, final long id) {
104         super(refid);
105         this.starts = starts;
106         this.duration = duration;
107         this.location = location;
108         this.homeTeam = homeTeam;
109         this.awayTeam = awayTeam;
110         this.homeScore = homeScore;
111         this.awayScore = awayScore;
112         this.id = id;
113     }
114 
115     /**
116      * Gets the value of the starts property.
117      * 
118      * @return
119      *     possible object is
120      *     {@link String }
121      *     
122      */
123     public Date getStarts() {
124         return starts;
125     }
126 
127     /**
128      * Sets the value of the starts property.
129      * 
130      * @param value
131      *     allowed object is
132      *     {@link String }
133      *     
134      */
135     public void setStarts(Date value) {
136         this.starts = value;
137     }
138 
139     /**
140      * Gets the value of the duration property.
141      * 
142      */
143     public long getDuration() {
144         return duration;
145     }
146 
147     /**
148      * Sets the value of the duration property.
149      * 
150      */
151     public void setDuration(long value) {
152         this.duration = value;
153     }
154 
155     /**
156      * Gets the value of the location property.
157      * 
158      * @return
159      *     possible object is
160      *     {@link Object }
161      *     
162      */
163     public Object getLocation() {
164         return location;
165     }
166 
167     /**
168      * Sets the value of the location property.
169      * 
170      * @param value
171      *     allowed object is
172      *     {@link Object }
173      *     
174      */
175     public void setLocation(Object value) {
176         this.location = value;
177     }
178 
179     /**
180      * Gets the value of the homeTeam property.
181      * 
182      * @return
183      *     possible object is
184      *     {@link Object }
185      *     
186      */
187     public Object getHomeTeam() {
188         return homeTeam;
189     }
190 
191     /**
192      * Sets the value of the homeTeam property.
193      * 
194      * @param value
195      *     allowed object is
196      *     {@link Object }
197      *     
198      */
199     public void setHomeTeam(Object value) {
200         this.homeTeam = value;
201     }
202 
203     /**
204      * Gets the value of the awayTeam property.
205      * 
206      * @return
207      *     possible object is
208      *     {@link Object }
209      *     
210      */
211     public Object getAwayTeam() {
212         return awayTeam;
213     }
214 
215     /**
216      * Sets the value of the awayTeam property.
217      * 
218      * @param value
219      *     allowed object is
220      *     {@link Object }
221      *     
222      */
223     public void setAwayTeam(Object value) {
224         this.awayTeam = value;
225     }
226 
227     /**
228      * Gets the value of the homeScore property.
229      * 
230      * @return
231      *     possible object is
232      *     {@link String }
233      *     
234      */
235     public Integer getHomeScore() {
236         return homeScore;
237     }
238 
239     /**
240      * Sets the value of the homeScore property.
241      * 
242      * @param value
243      *     allowed object is
244      *     {@link String }
245      *     
246      */
247     public void setHomeScore(Integer value) {
248         this.homeScore = value;
249     }
250 
251     /**
252      * Gets the value of the awayScore property.
253      * 
254      * @return
255      *     possible object is
256      *     {@link String }
257      *     
258      */
259     public Integer getAwayScore() {
260         return awayScore;
261     }
262 
263     /**
264      * Sets the value of the awayScore property.
265      * 
266      * @param value
267      *     allowed object is
268      *     {@link String }
269      *     
270      */
271     public void setAwayScore(Integer value) {
272         this.awayScore = value;
273     }
274 
275     /**
276      * Gets the value of the id property.
277      * 
278      */
279     public long getId() {
280         return id;
281     }
282 
283     /**
284      * Sets the value of the id property.
285      * 
286      */
287     public void setId(long value) {
288         this.id = value;
289     }
290 
291 }