View Javadoc

1   //
2   // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
3   // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
4   // Any modifications to this file will be lost upon recompilation of the source schema. 
5   // Generated on: 2013.04.21 at 08:43:19 PM CEST 
6   //
7   
8   
9   package org.jomc.model.test;
10  
11  import javax.annotation.Generated;
12  import javax.xml.bind.annotation.XmlAccessType;
13  import javax.xml.bind.annotation.XmlAccessorType;
14  import javax.xml.bind.annotation.XmlAttribute;
15  import javax.xml.bind.annotation.XmlElement;
16  import javax.xml.bind.annotation.XmlType;
17  
18  
19  /**
20   * Instance test.
21   * 
22   * <p>Java class for InstanceTestType complex type.
23   * 
24   * <p>The following schema fragment specifies the expected content contained within this class.
25   * 
26   * <pre>
27   * &lt;complexType name="InstanceTestType">
28   *   &lt;complexContent>
29   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
30   *       &lt;sequence>
31   *         &lt;element name="modules" type="{http://jomc.org/model/test}AnyModelObject" minOccurs="0"/>
32   *         &lt;element name="instance" type="{http://jomc.org/model/test}AnyModelObject"/>
33   *       &lt;/sequence>
34   *       &lt;attribute name="identifier" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
35   *       &lt;attribute name="implementationIdentifier" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
36   *       &lt;attribute name="dependencyName" type="{http://www.w3.org/2001/XMLSchema}string" />
37   *     &lt;/restriction>
38   *   &lt;/complexContent>
39   * &lt;/complexType>
40   * </pre>
41   * 
42   * 
43   */
44  @XmlAccessorType(XmlAccessType.FIELD)
45  @XmlType(name = "InstanceTestType", namespace = "http://jomc.org/model/test", propOrder = {
46      "modules",
47      "instance"
48  })
49  @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
50  public class InstanceTestType implements Cloneable
51  {
52  
53      @XmlElement(namespace = "http://jomc.org/model/test")
54      @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
55      protected AnyModelObject modules;
56      @XmlElement(namespace = "http://jomc.org/model/test", required = true)
57      @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
58      protected AnyModelObject instance;
59      @XmlAttribute(name = "identifier", required = true)
60      @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
61      protected String identifier;
62      @XmlAttribute(name = "implementationIdentifier", required = true)
63      @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
64      protected String implementationIdentifier;
65      @XmlAttribute(name = "dependencyName")
66      @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
67      protected String dependencyName;
68  
69      /**
70       * Creates a new {@code InstanceTestType} instance.
71       * 
72       */
73      public InstanceTestType() {
74          // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000
75          super();
76      }
77  
78      /**
79       * Creates a new {@code InstanceTestType} instance by deeply copying a given {@code InstanceTestType} instance.
80       * 
81       * 
82       * @param o
83       *     The instance to copy.
84       * @throws NullPointerException
85       *     if {@code o} is {@code null}.
86       */
87      public InstanceTestType(final InstanceTestType o) {
88          // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000
89          super();
90          if (o == null) {
91              throw new NullPointerException("Cannot create a copy of 'InstanceTestType' from 'null'.");
92          }
93          // CClassInfo: org.jomc.model.test.AnyModelObject
94          this.modules = ((o.modules == null)?null:((o.getModules() == null)?null:o.getModules().clone()));
95          // CClassInfo: org.jomc.model.test.AnyModelObject
96          this.instance = ((o.instance == null)?null:((o.getInstance() == null)?null:o.getInstance().clone()));
97          // CBuiltinLeafInfo: java.lang.String
98          this.identifier = ((o.identifier == null)?null:o.getIdentifier());
99          // CBuiltinLeafInfo: java.lang.String
100         this.implementationIdentifier = ((o.implementationIdentifier == null)?null:o.getImplementationIdentifier());
101         // CBuiltinLeafInfo: java.lang.String
102         this.dependencyName = ((o.dependencyName == null)?null:o.getDependencyName());
103     }
104 
105     /**
106      * Gets the value of the modules property.
107      * 
108      * @return
109      *     possible object is
110      *     {@link AnyModelObject }
111      *     
112      */
113     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
114     public AnyModelObject getModules() {
115         return modules;
116     }
117 
118     /**
119      * Sets the value of the modules property.
120      * 
121      * @param value
122      *     allowed object is
123      *     {@link AnyModelObject }
124      *     
125      */
126     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
127     public void setModules(AnyModelObject value) {
128         this.modules = value;
129     }
130 
131     /**
132      * Gets the value of the instance property.
133      * 
134      * @return
135      *     possible object is
136      *     {@link AnyModelObject }
137      *     
138      */
139     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
140     public AnyModelObject getInstance() {
141         return instance;
142     }
143 
144     /**
145      * Sets the value of the instance property.
146      * 
147      * @param value
148      *     allowed object is
149      *     {@link AnyModelObject }
150      *     
151      */
152     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
153     public void setInstance(AnyModelObject value) {
154         this.instance = value;
155     }
156 
157     /**
158      * Gets the value of the identifier property.
159      * 
160      * @return
161      *     possible object is
162      *     {@link String }
163      *     
164      */
165     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
166     public String getIdentifier() {
167         return identifier;
168     }
169 
170     /**
171      * Sets the value of the identifier property.
172      * 
173      * @param value
174      *     allowed object is
175      *     {@link String }
176      *     
177      */
178     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
179     public void setIdentifier(String value) {
180         this.identifier = value;
181     }
182 
183     /**
184      * Gets the value of the implementationIdentifier property.
185      * 
186      * @return
187      *     possible object is
188      *     {@link String }
189      *     
190      */
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     public String getImplementationIdentifier() {
193         return implementationIdentifier;
194     }
195 
196     /**
197      * Sets the value of the implementationIdentifier property.
198      * 
199      * @param value
200      *     allowed object is
201      *     {@link String }
202      *     
203      */
204     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
205     public void setImplementationIdentifier(String value) {
206         this.implementationIdentifier = value;
207     }
208 
209     /**
210      * Gets the value of the dependencyName property.
211      * 
212      * @return
213      *     possible object is
214      *     {@link String }
215      *     
216      */
217     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
218     public String getDependencyName() {
219         return dependencyName;
220     }
221 
222     /**
223      * Sets the value of the dependencyName property.
224      * 
225      * @param value
226      *     allowed object is
227      *     {@link String }
228      *     
229      */
230     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
231     public void setDependencyName(String value) {
232         this.dependencyName = value;
233     }
234 
235     /**
236      * Creates and returns a deep copy of this object.
237      * 
238      * 
239      * @return
240      *     A deep copy of this object.
241      */
242     @Override
243     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
244     public InstanceTestType clone() {
245         try {
246             {
247                 // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000
248                 final InstanceTestType clone = ((InstanceTestType) super.clone());
249                 // CClassInfo: org.jomc.model.test.AnyModelObject
250                 clone.modules = ((this.modules == null)?null:((this.getModules() == null)?null:this.getModules().clone()));
251                 // CClassInfo: org.jomc.model.test.AnyModelObject
252                 clone.instance = ((this.instance == null)?null:((this.getInstance() == null)?null:this.getInstance().clone()));
253                 // CBuiltinLeafInfo: java.lang.String
254                 clone.identifier = ((this.identifier == null)?null:this.getIdentifier());
255                 // CBuiltinLeafInfo: java.lang.String
256                 clone.implementationIdentifier = ((this.implementationIdentifier == null)?null:this.getImplementationIdentifier());
257                 // CBuiltinLeafInfo: java.lang.String
258                 clone.dependencyName = ((this.dependencyName == null)?null:this.getDependencyName());
259                 return clone;
260             }
261         } catch (CloneNotSupportedException e) {
262             // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
263             throw new AssertionError(e);
264         }
265     }
266 
267 }