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.ArrayList;
12 import java.util.List;
13 import javax.xml.bind.annotation.XmlAccessType;
14 import javax.xml.bind.annotation.XmlAccessorType;
15 import javax.xml.bind.annotation.XmlAttribute;
16 import javax.xml.bind.annotation.XmlElement;
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.CollapsedStringAdapter;
21 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
22
23
24 /**
25 * <p>Java class for anonymous complex type.
26 *
27 * <p>The following schema fragment specifies the expected content contained within this class.
28 *
29 * <pre>
30 * <complexType>
31 * <complexContent>
32 * <extension base="{http://ejava.info/eLeague/1.0.2009.1}ReferencedType">
33 * <sequence>
34 * <element name="name" type="{http://www.w3.org/2001/XMLSchema}token"/>
35 * <element name="contact-role" type="{http://ejava.info/eLeague/1.0.2009.1}ContactRoleType" maxOccurs="unbounded" minOccurs="0"/>
36 * </sequence>
37 * <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}long" />
38 * </extension>
39 * </complexContent>
40 * </complexType>
41 * </pre>
42 *
43 *
44 */
45 @XmlAccessorType(XmlAccessType.FIELD)
46 @XmlType(name = "", propOrder = {
47 "name",
48 "contactRole"
49 })
50 @XmlRootElement(name = "team")
51 public class Team
52 extends ReferencedType
53 {
54
55 @XmlElement(required = true)
56 @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
57 @XmlSchemaType(name = "token")
58 protected String name;
59 @XmlElement(name = "contact-role")
60 protected List<ContactRoleType> contactRole;
61 @XmlAttribute(name = "id", required = true)
62 protected long id;
63
64 /**
65 * Default no-arg constructor
66 *
67 */
68 public Team() {
69 super();
70 }
71
72 /**
73 * Fully-initialising value constructor
74 *
75 */
76 public Team(final String refid, final String name, final List<ContactRoleType> contactRole, final long id) {
77 super(refid);
78 this.name = name;
79 this.contactRole = contactRole;
80 this.id = id;
81 }
82
83 /**
84 * Gets the value of the name property.
85 *
86 * @return
87 * possible object is
88 * {@link String }
89 *
90 */
91 public String getName() {
92 return name;
93 }
94
95 /**
96 * Sets the value of the name property.
97 *
98 * @param value
99 * allowed object is
100 * {@link String }
101 *
102 */
103 public void setName(String value) {
104 this.name = value;
105 }
106
107 /**
108 * Gets the value of the contactRole property.
109 *
110 * <p>
111 * This accessor method returns a reference to the live list,
112 * not a snapshot. Therefore any modification you make to the
113 * returned list will be present inside the JAXB object.
114 * This is why there is not a <CODE>set</CODE> method for the contactRole property.
115 *
116 * <p>
117 * For example, to add a new item, do as follows:
118 * <pre>
119 * getContactRole().add(newItem);
120 * </pre>
121 *
122 *
123 * <p>
124 * Objects of the following type(s) are allowed in the list
125 * {@link ContactRoleType }
126 *
127 *
128 */
129 public List<ContactRoleType> getContactRole() {
130 if (contactRole == null) {
131 contactRole = new ArrayList<ContactRoleType>();
132 }
133 return this.contactRole;
134 }
135
136 /**
137 * Gets the value of the id property.
138 *
139 */
140 public long getId() {
141 return id;
142 }
143
144 /**
145 * Sets the value of the id property.
146 *
147 */
148 public void setId(long value) {
149 this.id = value;
150 }
151
152 }