001//
002// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
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: 2013.04.21 at 08:43:19 PM CEST 
006//
007
008
009package org.jomc.model.test;
010
011import javax.annotation.Generated;
012import javax.xml.bind.annotation.XmlAccessType;
013import javax.xml.bind.annotation.XmlAccessorType;
014import javax.xml.bind.annotation.XmlAttribute;
015import javax.xml.bind.annotation.XmlElement;
016import javax.xml.bind.annotation.XmlType;
017
018
019/**
020 * Instance test.
021 * 
022 * <p>Java class for InstanceTestType complex type.
023 * 
024 * <p>The following schema fragment specifies the expected content contained within this class.
025 * 
026 * <pre>
027 * &lt;complexType name="InstanceTestType">
028 *   &lt;complexContent>
029 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
030 *       &lt;sequence>
031 *         &lt;element name="modules" type="{http://jomc.org/model/test}AnyModelObject" minOccurs="0"/>
032 *         &lt;element name="instance" type="{http://jomc.org/model/test}AnyModelObject"/>
033 *       &lt;/sequence>
034 *       &lt;attribute name="identifier" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
035 *       &lt;attribute name="implementationIdentifier" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
036 *       &lt;attribute name="dependencyName" type="{http://www.w3.org/2001/XMLSchema}string" />
037 *     &lt;/restriction>
038 *   &lt;/complexContent>
039 * &lt;/complexType>
040 * </pre>
041 * 
042 * 
043 */
044@XmlAccessorType(XmlAccessType.FIELD)
045@XmlType(name = "InstanceTestType", namespace = "http://jomc.org/model/test", propOrder = {
046    "modules",
047    "instance"
048})
049@Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
050public class InstanceTestType implements Cloneable
051{
052
053    @XmlElement(namespace = "http://jomc.org/model/test")
054    @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
055    protected AnyModelObject modules;
056    @XmlElement(namespace = "http://jomc.org/model/test", required = true)
057    @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
058    protected AnyModelObject instance;
059    @XmlAttribute(name = "identifier", required = true)
060    @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
061    protected String identifier;
062    @XmlAttribute(name = "implementationIdentifier", required = true)
063    @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
064    protected String implementationIdentifier;
065    @XmlAttribute(name = "dependencyName")
066    @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
067    protected String dependencyName;
068
069    /**
070     * Creates a new {@code InstanceTestType} instance.
071     * 
072     */
073    public InstanceTestType() {
074        // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000
075        super();
076    }
077
078    /**
079     * Creates a new {@code InstanceTestType} instance by deeply copying a given {@code InstanceTestType} instance.
080     * 
081     * 
082     * @param o
083     *     The instance to copy.
084     * @throws NullPointerException
085     *     if {@code o} is {@code null}.
086     */
087    public InstanceTestType(final InstanceTestType o) {
088        // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000
089        super();
090        if (o == null) {
091            throw new NullPointerException("Cannot create a copy of 'InstanceTestType' from 'null'.");
092        }
093        // CClassInfo: org.jomc.model.test.AnyModelObject
094        this.modules = ((o.modules == null)?null:((o.getModules() == null)?null:o.getModules().clone()));
095        // CClassInfo: org.jomc.model.test.AnyModelObject
096        this.instance = ((o.instance == null)?null:((o.getInstance() == null)?null:o.getInstance().clone()));
097        // CBuiltinLeafInfo: java.lang.String
098        this.identifier = ((o.identifier == null)?null:o.getIdentifier());
099        // 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}