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.XmlType;
16  import org.jomc.model.Inheritable;
17  
18  
19  /**
20   * <p>Java class for TestInheritable complex type.
21   * 
22   * <p>The following schema fragment specifies the expected content contained within this class.
23   * 
24   * <pre>
25   * &lt;complexType name="TestInheritable">
26   *   &lt;complexContent>
27   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
28   *       &lt;attribute name="final" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
29   *       &lt;attribute name="override" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
30   *     &lt;/restriction>
31   *   &lt;/complexContent>
32   * &lt;/complexType>
33   * </pre>
34   * 
35   * 
36   */
37  @XmlAccessorType(XmlAccessType.FIELD)
38  @XmlType(name = "TestInheritable", namespace = "http://jomc.org/model/test")
39  @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
40  public class TestInheritable implements Cloneable, Inheritable
41  {
42  
43      @XmlAttribute(name = "final")
44      @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
45      protected Boolean _final;
46      @XmlAttribute(name = "override")
47      @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
48      protected Boolean override;
49  
50      /**
51       * Creates a new {@code TestInheritable} instance.
52       * 
53       */
54      public TestInheritable() {
55          // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000
56          super();
57      }
58  
59      /**
60       * Creates a new {@code TestInheritable} instance by deeply copying a given {@code TestInheritable} instance.
61       * 
62       * 
63       * @param o
64       *     The instance to copy.
65       * @throws NullPointerException
66       *     if {@code o} is {@code null}.
67       */
68      public TestInheritable(final TestInheritable o) {
69          // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000
70          super();
71          if (o == null) {
72              throw new NullPointerException("Cannot create a copy of 'TestInheritable' from 'null'.");
73          }
74          // CBuiltinLeafInfo: java.lang.Boolean
75          this._final = ((o._final == null)?null:o.isFinal());
76          // CBuiltinLeafInfo: java.lang.Boolean
77          this.override = ((o.override == null)?null:o.isOverride());
78      }
79  
80      /**
81       * Gets the value of the final property.
82       * 
83       * @return
84       *     possible object is
85       *     {@link Boolean }
86       *     
87       */
88      @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
89      public boolean isFinal() {
90          if (_final == null) {
91              return false;
92          } else {
93              return _final;
94          }
95      }
96  
97      /**
98       * Sets the value of the final property.
99       * 
100      * @param value
101      *     allowed object is
102      *     {@link Boolean }
103      *     
104      */
105     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
106     public void setFinal(Boolean value) {
107         this._final = value;
108     }
109 
110     /**
111      * Gets the value of the override property.
112      * 
113      * @return
114      *     possible object is
115      *     {@link Boolean }
116      *     
117      */
118     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
119     public boolean isOverride() {
120         if (override == null) {
121             return false;
122         } else {
123             return override;
124         }
125     }
126 
127     /**
128      * Sets the value of the override property.
129      * 
130      * @param value
131      *     allowed object is
132      *     {@link Boolean }
133      *     
134      */
135     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
136     public void setOverride(Boolean value) {
137         this.override = value;
138     }
139 
140     /**
141      * Creates and returns a deep copy of this object.
142      * 
143      * 
144      * @return
145      *     A deep copy of this object.
146      */
147     @Override
148     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
149     public TestInheritable clone() {
150         try {
151             {
152                 // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000
153                 final TestInheritable clone = ((TestInheritable) super.clone());
154                 // CBuiltinLeafInfo: java.lang.Boolean
155                 clone._final = ((this._final == null)?null:this.isFinal());
156                 // CBuiltinLeafInfo: java.lang.Boolean
157                 clone.override = ((this.override == null)?null:this.isOverride());
158                 return clone;
159             }
160         } catch (CloneNotSupportedException e) {
161             // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
162             throw new AssertionError(e);
163         }
164     }
165 
166 }