Contest.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.Date;
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.XmlIDREF;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
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>
 * &lt;complexType&gt;
 *   &lt;complexContent&gt;
 *     &lt;extension base="{http://ejava.info/eLeague/1.0.2009.1}ReferencedType"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="starts" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/&gt;
 *         &lt;element name="duration" type="{http://www.w3.org/2001/XMLSchema}long"/&gt;
 *         &lt;element name="location" type="{http://www.w3.org/2001/XMLSchema}IDREF" minOccurs="0"/&gt;
 *         &lt;element name="homeTeam" type="{http://www.w3.org/2001/XMLSchema}IDREF"/&gt;
 *         &lt;element name="awayTeam" type="{http://www.w3.org/2001/XMLSchema}IDREF"/&gt;
 *         &lt;element name="homeScore" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/&gt;
 *         &lt;element name="awayScore" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/&gt;
 *       &lt;/sequence&gt;
 *       &lt;attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}long" /&gt;
 *     &lt;/extension&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "starts",
    "duration",
    "location",
    "homeTeam",
    "awayTeam",
    "homeScore",
    "awayScore"
})
@XmlRootElement(name = "contest")
public class Contest
    extends ReferencedType
{

    @XmlElement(type = String.class)
    @XmlJavaTypeAdapter(Adapter2 .class)
    @XmlSchemaType(name = "dateTime")
    protected Date starts;
    protected long duration;
    @XmlIDREF
    @XmlSchemaType(name = "IDREF")
    protected Object location;
    @XmlElement(required = true)
    @XmlIDREF
    @XmlSchemaType(name = "IDREF")
    protected Object homeTeam;
    @XmlElement(required = true)
    @XmlIDREF
    @XmlSchemaType(name = "IDREF")
    protected Object awayTeam;
    @XmlElement(type = String.class)
    @XmlJavaTypeAdapter(Adapter4 .class)
    @XmlSchemaType(name = "int")
    protected Integer homeScore;
    @XmlElement(type = String.class)
    @XmlJavaTypeAdapter(Adapter4 .class)
    @XmlSchemaType(name = "int")
    protected Integer awayScore;
    @XmlAttribute(name = "id", required = true)
    protected long id;

    /**
     * Default no-arg constructor
     * 
     */
    public Contest() {
        super();
    }

    /**
     * Fully-initialising value constructor
     * 
     */
    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) {
        super(refid);
        this.starts = starts;
        this.duration = duration;
        this.location = location;
        this.homeTeam = homeTeam;
        this.awayTeam = awayTeam;
        this.homeScore = homeScore;
        this.awayScore = awayScore;
        this.id = id;
    }

    /**
     * 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 duration property.
     * 
     */
    public long getDuration() {
        return duration;
    }

    /**
     * Sets the value of the duration property.
     * 
     */
    public void setDuration(long value) {
        this.duration = value;
    }

    /**
     * Gets the value of the location property.
     * 
     * @return
     *     possible object is
     *     {@link Object }
     *     
     */
    public Object getLocation() {
        return location;
    }

    /**
     * Sets the value of the location property.
     * 
     * @param value
     *     allowed object is
     *     {@link Object }
     *     
     */
    public void setLocation(Object value) {
        this.location = value;
    }

    /**
     * Gets the value of the homeTeam property.
     * 
     * @return
     *     possible object is
     *     {@link Object }
     *     
     */
    public Object getHomeTeam() {
        return homeTeam;
    }

    /**
     * Sets the value of the homeTeam property.
     * 
     * @param value
     *     allowed object is
     *     {@link Object }
     *     
     */
    public void setHomeTeam(Object value) {
        this.homeTeam = value;
    }

    /**
     * Gets the value of the awayTeam property.
     * 
     * @return
     *     possible object is
     *     {@link Object }
     *     
     */
    public Object getAwayTeam() {
        return awayTeam;
    }

    /**
     * Sets the value of the awayTeam property.
     * 
     * @param value
     *     allowed object is
     *     {@link Object }
     *     
     */
    public void setAwayTeam(Object value) {
        this.awayTeam = value;
    }

    /**
     * Gets the value of the homeScore property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public Integer getHomeScore() {
        return homeScore;
    }

    /**
     * Sets the value of the homeScore property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setHomeScore(Integer value) {
        this.homeScore = value;
    }

    /**
     * Gets the value of the awayScore property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public Integer getAwayScore() {
        return awayScore;
    }

    /**
     * Sets the value of the awayScore property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setAwayScore(Integer value) {
        this.awayScore = value;
    }

    /**
     * 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;
    }

}