Division.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.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="group" type="{http://www.w3.org/2001/XMLSchema}token"/>
* <element name="level" type="{http://www.w3.org/2001/XMLSchema}token"/>
* <element name="ranking" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
* <element ref="{http://ejava.info/eLeague/1.0.2009.1}contact" minOccurs="0"/>
* <element ref="{http://ejava.info/eLeague/1.0.2009.1}team-season" 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 = {
"group",
"level",
"ranking",
"contact",
"teamSeason"
})
@XmlRootElement(name = "division")
public class Division
extends ReferencedType
{
@XmlElement(required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "token")
protected String group;
@XmlElement(required = true)
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlSchemaType(name = "token")
protected String level;
@XmlElement(type = String.class)
@XmlJavaTypeAdapter(Adapter4 .class)
@XmlSchemaType(name = "int")
protected Integer ranking;
@XmlElement(namespace = "http://ejava.info/eLeague/1.0.2009.1")
protected Contact contact;
@XmlElement(name = "team-season", namespace = "http://ejava.info/eLeague/1.0.2009.1")
protected List<TeamSeason> teamSeason;
@XmlAttribute(name = "id", required = true)
protected long id;
/**
* Default no-arg constructor
*
*/
public Division() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public Division(final String refid, final String group, final String level, final Integer ranking, final Contact contact, final List<TeamSeason> teamSeason, final long id) {
super(refid);
this.group = group;
this.level = level;
this.ranking = ranking;
this.contact = contact;
this.teamSeason = teamSeason;
this.id = id;
}
/**
* Gets the value of the group property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getGroup() {
return group;
}
/**
* Sets the value of the group property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setGroup(String value) {
this.group = value;
}
/**
* Gets the value of the level property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLevel() {
return level;
}
/**
* Sets the value of the level property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLevel(String value) {
this.level = value;
}
/**
* Gets the value of the ranking property.
*
* @return
* possible object is
* {@link String }
*
*/
public Integer getRanking() {
return ranking;
}
/**
* Sets the value of the ranking property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRanking(Integer value) {
this.ranking = value;
}
/**
* Gets the value of the contact property.
*
* @return
* possible object is
* {@link Contact }
*
*/
public Contact getContact() {
return contact;
}
/**
* Sets the value of the contact property.
*
* @param value
* allowed object is
* {@link Contact }
*
*/
public void setContact(Contact value) {
this.contact = value;
}
/**
* Gets the value of the teamSeason 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 teamSeason property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTeamSeason().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TeamSeason }
*
*
*/
public List<TeamSeason> getTeamSeason() {
if (teamSeason == null) {
teamSeason = new ArrayList<TeamSeason>();
}
return this.teamSeason;
}
/**
* 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;
}
}