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   * Schema validation test.
21   * 
22   * <p>Java class for SchemaConstraintsTestType complex type.
23   * 
24   * <p>The following schema fragment specifies the expected content contained within this class.
25   * 
26   * <pre>
27   * &lt;complexType name="SchemaConstraintsTestType">
28   *   &lt;complexContent>
29   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
30   *       &lt;sequence>
31   *         &lt;element name="model-object" type="{http://jomc.org/model/test}AnyModelObject" minOccurs="0"/>
32   *       &lt;/sequence>
33   *       &lt;attribute name="identifier" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
34   *     &lt;/restriction>
35   *   &lt;/complexContent>
36   * &lt;/complexType>
37   * </pre>
38   * 
39   * 
40   */
41  @XmlAccessorType(XmlAccessType.FIELD)
42  @XmlType(name = "SchemaConstraintsTestType", namespace = "http://jomc.org/model/test", propOrder = {
43      "modelObject"
44  })
45  @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
46  public class SchemaConstraintsTestType implements Cloneable
47  {
48  
49      @XmlElement(name = "model-object", namespace = "http://jomc.org/model/test")
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      protected AnyModelObject modelObject;
52      @XmlAttribute(name = "identifier", required = true)
53      @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
54      protected String identifier;
55  
56      /**
57       * Creates a new {@code SchemaConstraintsTestType} instance.
58       * 
59       */
60      public SchemaConstraintsTestType() {
61          // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000
62          super();
63      }
64  
65      /**
66       * Creates a new {@code SchemaConstraintsTestType} instance by deeply copying a given {@code SchemaConstraintsTestType} instance.
67       * 
68       * 
69       * @param o
70       *     The instance to copy.
71       * @throws NullPointerException
72       *     if {@code o} is {@code null}.
73       */
74      public SchemaConstraintsTestType(final SchemaConstraintsTestType o) {
75          // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000
76          super();
77          if (o == null) {
78              throw new NullPointerException("Cannot create a copy of 'SchemaConstraintsTestType' from 'null'.");
79          }
80          // CClassInfo: org.jomc.model.test.AnyModelObject
81          this.modelObject = ((o.modelObject == null)?null:((o.getModelObject() == null)?null:o.getModelObject().clone()));
82          // CBuiltinLeafInfo: java.lang.String
83          this.identifier = ((o.identifier == null)?null:o.getIdentifier());
84      }
85  
86      /**
87       * Gets the value of the modelObject property.
88       * 
89       * @return
90       *     possible object is
91       *     {@link AnyModelObject }
92       *     
93       */
94      @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
95      public AnyModelObject getModelObject() {
96          return modelObject;
97      }
98  
99      /**
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 }