1
2
3
4
5
6
7
8
9 package org.jomc.model.test;
10
11 import java.util.ArrayList;
12 import java.util.Iterator;
13 import java.util.List;
14 import javax.annotation.Generated;
15 import javax.xml.bind.annotation.XmlAccessType;
16 import javax.xml.bind.annotation.XmlAccessorType;
17 import javax.xml.bind.annotation.XmlAttribute;
18 import javax.xml.bind.annotation.XmlElement;
19 import javax.xml.bind.annotation.XmlType;
20
21
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 = "ModulesConstraintsTestType", namespace = "http://jomc.org/model/test", propOrder = {
47 "modules",
48 "detail"
49 })
50 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
51 public class ModulesConstraintsTestType implements Cloneable
52 {
53
54 @XmlElement(namespace = "http://jomc.org/model/test")
55 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
56 protected AnyModelObject modules;
57 @XmlElement(namespace = "http://jomc.org/model/test")
58 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
59 protected List<ModelValidationReportDetail> detail;
60 @XmlAttribute(name = "identifier", required = true)
61 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
62 protected String identifier;
63
64
65
66
67
68 public ModulesConstraintsTestType() {
69
70 super();
71 }
72
73
74
75
76
77
78
79
80
81
82 public ModulesConstraintsTestType(final ModulesConstraintsTestType o) {
83
84 super();
85 if (o == null) {
86 throw new NullPointerException("Cannot create a copy of 'ModulesConstraintsTestType' from 'null'.");
87 }
88
89 this.modules = ((o.modules == null)?null:((o.getModules() == null)?null:o.getModules().clone()));
90
91 if (o.detail!= null) {
92 copyDetail(o.getDetail(), this.getDetail());
93 }
94
95 this.identifier = ((o.identifier == null)?null:o.getIdentifier());
96 }
97
98
99
100
101
102
103
104
105
106 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
107 public AnyModelObject getModules() {
108 return modules;
109 }
110
111
112
113
114
115
116
117
118
119 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
120 public void setModules(AnyModelObject value) {
121 this.modules = value;
122 }
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
147 public List<ModelValidationReportDetail> getDetail() {
148 if (detail == null) {
149 detail = new ArrayList<ModelValidationReportDetail>();
150 }
151 return this.detail;
152 }
153
154
155
156
157
158
159
160
161
162 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
163 public String getIdentifier() {
164 return identifier;
165 }
166
167
168
169
170
171
172
173
174
175 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
176 public void setIdentifier(String value) {
177 this.identifier = value;
178 }
179
180
181
182
183
184
185
186
187
188
189
190 @SuppressWarnings("unchecked")
191 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
192 private static void copyDetail(final List<ModelValidationReportDetail> source, final List<ModelValidationReportDetail> target) {
193
194 if ((source!= null)&&(!source.isEmpty())) {
195 for (final Iterator<?> it = source.iterator(); it.hasNext(); ) {
196 final Object next = it.next();
197 if (next instanceof ModelValidationReportDetail) {
198
199 target.add(((ModelValidationReportDetail) next).clone());
200 continue;
201 }
202
203 throw new AssertionError((("Unexpected instance '"+ next)+"' for property 'Detail' of class 'org.jomc.model.test.ModulesConstraintsTestType'."));
204 }
205 }
206 }
207
208
209
210
211
212
213
214
215 @Override
216 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
217 public ModulesConstraintsTestType clone() {
218 try {
219 {
220
221 final ModulesConstraintsTestType clone = ((ModulesConstraintsTestType) super.clone());
222
223 clone.modules = ((this.modules == null)?null:((this.getModules() == null)?null:this.getModules().clone()));
224
225 if (this.detail!= null) {
226 clone.detail = null;
227 copyDetail(this.getDetail(), clone.getDetail());
228 }
229
230 clone.identifier = ((this.identifier == null)?null:this.getIdentifier());
231 return clone;
232 }
233 } catch (CloneNotSupportedException e) {
234
235 throw new AssertionError(e);
236 }
237 }
238
239 }