ELeague.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.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
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;
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element ref="{http://ejava.info/eLeague/1.0.2009.1}contact" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://ejava.info/eLeague/1.0.2009.1}league-metadata"/>
* <element ref="{http://ejava.info/eLeague/1.0.2009.1}club" maxOccurs="unbounded" minOccurs="0"/>
* <element ref="{http://ejava.info/eLeague/1.0.2009.1}season" maxOccurs="unbounded" minOccurs="0"/>
* <element name="currentSeason" type="{http://www.w3.org/2001/XMLSchema}IDREF"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"contact",
"leagueMetadata",
"club",
"season",
"currentSeason"
})
@XmlRootElement(name = "eLeague")
public class ELeague {
@XmlElement(namespace = "http://ejava.info/eLeague/1.0.2009.1")
protected List<Contact> contact;
@XmlElement(name = "league-metadata", namespace = "http://ejava.info/eLeague/1.0.2009.1", required = true)
protected LeagueMetadata leagueMetadata;
@XmlElement(namespace = "http://ejava.info/eLeague/1.0.2009.1")
protected List<Club> club;
@XmlElement(namespace = "http://ejava.info/eLeague/1.0.2009.1")
protected List<Season> season;
@XmlElement(required = true)
@XmlIDREF
@XmlSchemaType(name = "IDREF")
protected Object currentSeason;
/**
* Default no-arg constructor
*
*/
public ELeague() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public ELeague(final List<Contact> contact, final LeagueMetadata leagueMetadata, final List<Club> club, final List<Season> season, final Object currentSeason) {
this.contact = contact;
this.leagueMetadata = leagueMetadata;
this.club = club;
this.season = season;
this.currentSeason = currentSeason;
}
/**
* Gets the value of the contact 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 contact property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getContact().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Contact }
*
*
*/
public List<Contact> getContact() {
if (contact == null) {
contact = new ArrayList<Contact>();
}
return this.contact;
}
/**
* Gets the value of the leagueMetadata property.
*
* @return
* possible object is
* {@link LeagueMetadata }
*
*/
public LeagueMetadata getLeagueMetadata() {
return leagueMetadata;
}
/**
* Sets the value of the leagueMetadata property.
*
* @param value
* allowed object is
* {@link LeagueMetadata }
*
*/
public void setLeagueMetadata(LeagueMetadata value) {
this.leagueMetadata = value;
}
/**
* Gets the value of the club 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 club property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getClub().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Club }
*
*
*/
public List<Club> getClub() {
if (club == null) {
club = new ArrayList<Club>();
}
return this.club;
}
/**
* Gets the value of the season 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 season property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getSeason().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Season }
*
*
*/
public List<Season> getSeason() {
if (season == null) {
season = new ArrayList<Season>();
}
return this.season;
}
/**
* Gets the value of the currentSeason property.
*
* @return
* possible object is
* {@link Object }
*
*/
public Object getCurrentSeason() {
return currentSeason;
}
/**
* Sets the value of the currentSeason property.
*
* @param value
* allowed object is
* {@link Object }
*
*/
public void setCurrentSeason(Object value) {
this.currentSeason = value;
}
}