001 //
002 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833
003 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
004 // Any modifications to this file will be lost upon recompilation of the source schema.
005 // Generated on: 2009.10.02 at 06:12:00 PM UTC
006 //
007
008
009 package org.jomc.model.test;
010
011 import java.util.ArrayList;
012 import java.util.Iterator;
013 import java.util.List;
014 import javax.annotation.Generated;
015 import javax.xml.bind.annotation.XmlAccessType;
016 import javax.xml.bind.annotation.XmlAccessorType;
017 import javax.xml.bind.annotation.XmlElement;
018 import javax.xml.bind.annotation.XmlType;
019
020
021 /**
022 * List of tests.
023 *
024 *
025 *
026 */
027 @XmlAccessorType(XmlAccessType.FIELD)
028 @XmlType(name = "TestSuite", propOrder = {
029 "schemaConstraintsTest",
030 "modulesConstraintsTest",
031 "implementationTest"
032 })
033 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:12:00+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
034 public class TestSuite
035 implements Cloneable
036 {
037
038 @XmlElement(name = "schema-constraints-test")
039 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:12:00+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
040 protected List<SchemaConstraintsTest> schemaConstraintsTest;
041 @XmlElement(name = "modules-constraints-test")
042 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:12:00+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
043 protected List<ModulesConstraintsTest> modulesConstraintsTest;
044 @XmlElement(name = "implementation-test")
045 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:12:00+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
046 protected List<ImplementationTest> implementationTest;
047
048 /**
049 * Creates a new {@code TestSuite} instance.
050 *
051 */
052 public TestSuite() {
053 // CC-XJC Version 1.0 Build 2009-09-18T15:48:40+0000
054 super();
055 }
056
057 /**
058 * Creates a new {@code TestSuite} instance by deeply copying a given instance.
059 *
060 * @param o
061 * The instance to copy or {@code null}.
062 */
063 public TestSuite(final TestSuite o) {
064 // CC-XJC Version 1.0 Build 2009-09-18T15:48:40+0000
065 super();
066 if (o!= null) {
067 {
068 // 'SchemaConstraintsTest' collection.
069 copySchemaConstraintsTest(o.getSchemaConstraintsTest(), getSchemaConstraintsTest());
070 // 'ModulesConstraintsTest' collection.
071 copyModulesConstraintsTest(o.getModulesConstraintsTest(), getModulesConstraintsTest());
072 // 'ImplementationTest' collection.
073 copyImplementationTest(o.getImplementationTest(), getImplementationTest());
074 }
075 }
076 }
077
078 /**
079 * Gets the value of the schemaConstraintsTest property.
080 *
081 * <p>
082 * This accessor method returns a reference to the live list,
083 * not a snapshot. Therefore any modification you make to the
084 * returned list will be present inside the JAXB object.
085 * This is why there is not a <CODE>set</CODE> method for the schemaConstraintsTest property.
086 *
087 * <p>
088 * For example, to add a new item, do as follows:
089 * <pre>
090 * getSchemaConstraintsTest().add(newItem);
091 * </pre>
092 *
093 *
094 * <p>
095 * Objects of the following type(s) are allowed in the list
096 * {@link SchemaConstraintsTest }
097 *
098 *
099 */
100 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:12:00+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
101 public List<SchemaConstraintsTest> getSchemaConstraintsTest() {
102 if (schemaConstraintsTest == null) {
103 schemaConstraintsTest = new ArrayList<SchemaConstraintsTest>();
104 }
105 return this.schemaConstraintsTest;
106 }
107
108 /**
109 * Gets the value of the modulesConstraintsTest property.
110 *
111 * <p>
112 * This accessor method returns a reference to the live list,
113 * not a snapshot. Therefore any modification you make to the
114 * returned list will be present inside the JAXB object.
115 * This is why there is not a <CODE>set</CODE> method for the modulesConstraintsTest property.
116 *
117 * <p>
118 * For example, to add a new item, do as follows:
119 * <pre>
120 * getModulesConstraintsTest().add(newItem);
121 * </pre>
122 *
123 *
124 * <p>
125 * Objects of the following type(s) are allowed in the list
126 * {@link ModulesConstraintsTest }
127 *
128 *
129 */
130 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:12:00+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
131 public List<ModulesConstraintsTest> getModulesConstraintsTest() {
132 if (modulesConstraintsTest == null) {
133 modulesConstraintsTest = new ArrayList<ModulesConstraintsTest>();
134 }
135 return this.modulesConstraintsTest;
136 }
137
138 /**
139 * Gets the value of the implementationTest property.
140 *
141 * <p>
142 * This accessor method returns a reference to the live list,
143 * not a snapshot. Therefore any modification you make to the
144 * returned list will be present inside the JAXB object.
145 * This is why there is not a <CODE>set</CODE> method for the implementationTest property.
146 *
147 * <p>
148 * For example, to add a new item, do as follows:
149 * <pre>
150 * getImplementationTest().add(newItem);
151 * </pre>
152 *
153 *
154 * <p>
155 * Objects of the following type(s) are allowed in the list
156 * {@link ImplementationTest }
157 *
158 *
159 */
160 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:12:00+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
161 public List<ImplementationTest> getImplementationTest() {
162 if (implementationTest == null) {
163 implementationTest = new ArrayList<ImplementationTest>();
164 }
165 return this.implementationTest;
166 }
167
168 /**
169 * Copies all values of property {@code SchemaConstraintsTest} deeply.
170 *
171 * @param target
172 * The target to copy {@code source} to.
173 * @param source
174 * The source to copy from.
175 * @throws NullPointerException
176 * if {@code source} or {@code target} is {@code null}.
177 */
178 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:12:00+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
179 private static void copySchemaConstraintsTest(final List<SchemaConstraintsTest> source, final List<SchemaConstraintsTest> target) {
180 // CC-XJC Version 1.0 Build 2009-09-18T15:48:40+0000
181 if (!source.isEmpty()) {
182 for (Iterator it = source.iterator(); it.hasNext(); ) {
183 final Object next = it.next();
184 if (next instanceof SchemaConstraintsTest) {
185 // CClassInfo: org.jomc.model.test.SchemaConstraintsTest
186 target.add(((SchemaConstraintsTest) next).clone());
187 continue;
188 }
189 // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
190 throw new AssertionError((("Unexpected instance '"+ next)+"' for property 'SchemaConstraintsTest' of class 'org.jomc.model.test.TestSuite'."));
191 }
192 }
193 }
194
195 /**
196 * Copies all values of property {@code ModulesConstraintsTest} deeply.
197 *
198 * @param target
199 * The target to copy {@code source} to.
200 * @param source
201 * The source to copy from.
202 * @throws NullPointerException
203 * if {@code source} or {@code target} is {@code null}.
204 */
205 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:12:00+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
206 private static void copyModulesConstraintsTest(final List<ModulesConstraintsTest> source, final List<ModulesConstraintsTest> target) {
207 // CC-XJC Version 1.0 Build 2009-09-18T15:48:40+0000
208 if (!source.isEmpty()) {
209 for (Iterator it = source.iterator(); it.hasNext(); ) {
210 final Object next = it.next();
211 if (next instanceof ModulesConstraintsTest) {
212 // CClassInfo: org.jomc.model.test.ModulesConstraintsTest
213 target.add(((ModulesConstraintsTest) next).clone());
214 continue;
215 }
216 // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
217 throw new AssertionError((("Unexpected instance '"+ next)+"' for property 'ModulesConstraintsTest' of class 'org.jomc.model.test.TestSuite'."));
218 }
219 }
220 }
221
222 /**
223 * Copies all values of property {@code ImplementationTest} deeply.
224 *
225 * @param target
226 * The target to copy {@code source} to.
227 * @param source
228 * The source to copy from.
229 * @throws NullPointerException
230 * if {@code source} or {@code target} is {@code null}.
231 */
232 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:12:00+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
233 private static void copyImplementationTest(final List<ImplementationTest> source, final List<ImplementationTest> target) {
234 // CC-XJC Version 1.0 Build 2009-09-18T15:48:40+0000
235 if (!source.isEmpty()) {
236 for (Iterator it = source.iterator(); it.hasNext(); ) {
237 final Object next = it.next();
238 if (next instanceof ImplementationTest) {
239 // CClassInfo: org.jomc.model.test.ImplementationTest
240 target.add(((ImplementationTest) next).clone());
241 continue;
242 }
243 // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
244 throw new AssertionError((("Unexpected instance '"+ next)+"' for property 'ImplementationTest' of class 'org.jomc.model.test.TestSuite'."));
245 }
246 }
247 }
248
249 /**
250 * Creates and returns a deep copy of this object.
251 *
252 *
253 * @return
254 * A deep copy of this object.
255 */
256 @Override
257 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:12:00+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
258 public TestSuite clone() {
259 // CC-XJC Version 1.0 Build 2009-09-18T15:48:40+0000
260 return new TestSuite(this);
261 }
262
263 }