Season.java
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0
// See <a href="https://javaee.github.io/jaxb-v2/">https://javaee.github.io/jaxb-v2/</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.08.22 at 12:16:01 PM UTC
//
package ejava.projects.eleague.dto;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <extension base="{http://ejava.info/eLeague/1.0.2009.1}ReferencedType">
* <sequence>
* <element name="name" type="{http://www.w3.org/2001/XMLSchema}token"/>
* <element name="starts" type="{http://www.w3.org/2001/XMLSchema}date"/>
* <element name="ends" type="{http://www.w3.org/2001/XMLSchema}date"/>
* <element ref="{http://ejava.info/eLeague/1.0.2009.1}division" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://ejava.info/eLeague/1.0.2009.1}contest" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}long" />
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"name",
"starts",
"ends",
"division",
"contest"
})
@XmlRootElement(name = "season")
public class Season
extends ReferencedType
{
@XmlElement(required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "token")
protected String name;
@XmlElement(required = true, type = String.class)
@XmlJavaTypeAdapter(Adapter3 .class)
@XmlSchemaType(name = "date")
protected Date starts;
@XmlElement(required = true, type = String.class)
@XmlJavaTypeAdapter(Adapter3 .class)
@XmlSchemaType(name = "date")
protected Date ends;
@XmlElement(namespace = "http://ejava.info/eLeague/1.0.2009.1")
protected List<Division> division;
@XmlElement(namespace = "http://ejava.info/eLeague/1.0.2009.1")
protected List<Contest> contest;
@XmlAttribute(name = "id", required = true)
protected long id;
/**
* Default no-arg constructor
*
*/
public Season() {
super();
}
/**
* Fully-initialising value constructor
*
*/
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) {
super(refid);
this.name = name;
this.starts = starts;
this.ends = ends;
this.division = division;
this.contest = contest;
this.id = id;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
/**
* Gets the value of the starts property.
*
* @return
* possible object is
* {@link String }
*
*/
public Date getStarts() {
return starts;
}
/**
* Sets the value of the starts property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setStarts(Date value) {
this.starts = value;
}
/**
* Gets the value of the ends property.
*
* @return
* possible object is
* {@link String }
*
*/
public Date getEnds() {
return ends;
}
/**
* Sets the value of the ends property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEnds(Date value) {
this.ends = value;
}
/**
* Gets the value of the division property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the division property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getDivision().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Division }
*
*
*/
public List<Division> getDivision() {
if (division == null) {
division = new ArrayList<Division>();
}
return this.division;
}
/**
* Gets the value of the contest property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the contest property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContest().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Contest }
*
*
*/
public List<Contest> getContest() {
if (contest == null) {
contest = new ArrayList<Contest>();
}
return this.contest;
}
/**
* Gets the value of the id property.
*
*/
public long getId() {
return id;
}
/**
* Sets the value of the id property.
*
*/
public void setId(long value) {
this.id = value;
}
}