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 * Schema validation test.
021 * 
022 * <p>Java class for SchemaConstraintsTestType complex type.
023 * 
024 * <p>The following schema fragment specifies the expected content contained within this class.
025 * 
026 * <pre>
027 * &lt;complexType name="SchemaConstraintsTestType">
028 *   &lt;complexContent>
029 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
030 *       &lt;sequence>
031 *         &lt;element name="model-object" type="{http://jomc.org/model/test}AnyModelObject" minOccurs="0"/>
032 *       &lt;/sequence>
033 *       &lt;attribute name="identifier" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
034 *     &lt;/restriction>
035 *   &lt;/complexContent>
036 * &lt;/complexType>
037 * </pre>
038 * 
039 * 
040 */
041@XmlAccessorType(XmlAccessType.FIELD)
042@XmlType(name = "SchemaConstraintsTestType", namespace = "http://jomc.org/model/test", propOrder = {
043    "modelObject"
044})
045@Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
046public class SchemaConstraintsTestType implements Cloneable
047{
048
049    @XmlElement(name = "model-object", namespace = "http://jomc.org/model/test")
050    @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
051    protected AnyModelObject modelObject;
052    @XmlAttribute(name = "identifier", required = true)
053    @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
054    protected String identifier;
055
056    /**
057     * Creates a new {@code SchemaConstraintsTestType} instance.
058     * 
059     */
060    public SchemaConstraintsTestType() {
061        // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000
062        super();
063    }
064
065    /**
066     * Creates a new {@code SchemaConstraintsTestType} instance by deeply copying a given {@code SchemaConstraintsTestType} instance.
067     * 
068     * 
069     * @param o
070     *     The instance to copy.
071     * @throws NullPointerException
072     *     if {@code o} is {@code null}.
073     */
074    public SchemaConstraintsTestType(final SchemaConstraintsTestType o) {
075        // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000
076        super();
077        if (o == null) {
078            throw new NullPointerException("Cannot create a copy of 'SchemaConstraintsTestType' from 'null'.");
079        }
080        // CClassInfo: org.jomc.model.test.AnyModelObject
081        this.modelObject = ((o.modelObject == null)?null:((o.getModelObject() == null)?null:o.getModelObject().clone()));
082        // CBuiltinLeafInfo: java.lang.String
083        this.identifier = ((o.identifier == null)?null:o.getIdentifier());
084    }
085
086    /**
087     * Gets the value of the modelObject property.
088     * 
089     * @return
090     *     possible object is
091     *     {@link AnyModelObject }
092     *     
093     */
094    @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
095    public AnyModelObject getModelObject() {
096        return modelObject;
097    }
098
099    /**
100     * Sets the value of the modelObject property.
101     * 
102     * @param value
103     *     allowed object is
104     *     {@link AnyModelObject }
105     *     
106     */
107    @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
108    public void setModelObject(AnyModelObject value) {
109        this.modelObject = value;
110    }
111
112    /**
113     * Gets the value of the identifier property.
114     * 
115     * @return
116     *     possible object is
117     *     {@link String }
118     *     
119     */
120    @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
121    public String getIdentifier() {
122        return identifier;
123    }
124
125    /**
126     * Sets the value of the identifier property.
127     * 
128     * @param value
129     *     allowed object is
130     *     {@link String }
131     *     
132     */
133    @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
134    public void setIdentifier(String value) {
135        this.identifier = value;
136    }
137
138    /**
139     * Creates and returns a deep copy of this object.
140     * 
141     * 
142     * @return
143     *     A deep copy of this object.
144     */
145    @Override
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 SchemaConstraintsTestType clone() {
148        try {
149            {
150                // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000
151                final SchemaConstraintsTestType clone = ((SchemaConstraintsTestType) super.clone());
152                // CClassInfo: org.jomc.model.test.AnyModelObject
153                clone.modelObject = ((this.modelObject == null)?null:((this.getModelObject() == null)?null:this.getModelObject().clone()));
154                // CBuiltinLeafInfo: java.lang.String
155                clone.identifier = ((this.identifier == null)?null:this.getIdentifier());
156                return clone;
157            }
158        } catch (CloneNotSupportedException e) {
159            // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
160            throw new AssertionError(e);
161        }
162    }
163
164}