1
2
3
4
5
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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
66
67
68 public Team() {
69 super();
70 }
71
72
73
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
85
86
87
88
89
90
91 public String getName() {
92 return name;
93 }
94
95
96
97
98
99
100
101
102
103 public void setName(String value) {
104 this.name = value;
105 }
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
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
138
139
140 public long getId() {
141 return id;
142 }
143
144
145
146
147
148 public void setId(long value) {
149 this.id = value;
150 }
151
152 }