| 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.01.03 at 05:01:35 AM CET  | 
| 6 | // | 
| 7 |   | 
| 8 |   | 
| 9 | package org.jomc.model; | 
| 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 javax.xml.bind.annotation.adapters.CollapsedStringAdapter; | 
| 17 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | 
| 18 |   | 
| 19 |   | 
| 20 | /** | 
| 21 |  * Reference to an implementation. | 
| 22 |  *  | 
| 23 |  * <p>Java class for ImplementationReference complex type. | 
| 24 |  *  | 
| 25 |  * <p>The following schema fragment specifies the expected content contained within this class. | 
| 26 |  *  | 
| 27 |  * <pre> | 
| 28 |  * <complexType name="ImplementationReference"> | 
| 29 |  *   <complexContent> | 
| 30 |  *     <extension base="{http://jomc.org/model}ModelObject"> | 
| 31 |  *       <attribute name="identifier" use="required" type="{http://jomc.org/model}Identifier" /> | 
| 32 |  *       <attribute name="version" type="{http://jomc.org/model}Version" /> | 
| 33 |  *       <attribute name="final" type="{http://jomc.org/model}Flag" default="false" /> | 
| 34 |  *       <attribute name="override" type="{http://jomc.org/model}Flag" default="false" /> | 
| 35 |  *     </extension> | 
| 36 |  *   </complexContent> | 
| 37 |  * </complexType> | 
| 38 |  * </pre> | 
| 39 |  *  | 
| 40 |  *  | 
| 41 |  */ | 
| 42 | @XmlAccessorType(XmlAccessType.FIELD) | 
| 43 | @XmlType(name = "ImplementationReference", namespace = "http://jomc.org/model") | 
| 44 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 45 | public class ImplementationReference | 
| 46 |     extends ModelObject | 
| 47 |     implements Cloneable, Inheritable | 
| 48 | { | 
| 49 |   | 
| 50 |     @XmlAttribute(name = "identifier", required = true) | 
| 51 |     @XmlJavaTypeAdapter(CollapsedStringAdapter.class) | 
| 52 |     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 53 |     protected String identifier; | 
| 54 |     @XmlAttribute(name = "version") | 
| 55 |     @XmlJavaTypeAdapter(CollapsedStringAdapter.class) | 
| 56 |     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 57 |     protected String version; | 
| 58 |     @XmlAttribute(name = "final") | 
| 59 |     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 60 |     protected Boolean _final; | 
| 61 |     @XmlAttribute(name = "override") | 
| 62 |     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 63 |     protected Boolean override; | 
| 64 |   | 
| 65 |     /** | 
| 66 |      * Creates a new {@code ImplementationReference} instance. | 
| 67 |      *  | 
| 68 |      */ | 
| 69 |     public ImplementationReference() { | 
| 70 |         // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000 | 
| 71 |         super(); | 
| 72 |     } | 
| 73 |   | 
| 74 |     /** | 
| 75 |      * Creates a new {@code ImplementationReference} instance by deeply copying a given {@code ImplementationReference} instance. | 
| 76 |      *  | 
| 77 |      *  | 
| 78 |      * @param o | 
| 79 |      *     The instance to copy. | 
| 80 |      * @throws NullPointerException | 
| 81 |      *     if {@code o} is {@code null}. | 
| 82 |      */ | 
| 83 |     public ImplementationReference(final ImplementationReference o) { | 
| 84 |         // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000 | 
| 85 |         super(o); | 
| 86 |         if (o == null) { | 
| 87 |             throw new NullPointerException("Cannot create a copy of 'ImplementationReference' from 'null'."); | 
| 88 |         } | 
| 89 |         // CBuiltinLeafInfo: java.lang.String | 
| 90 |         this.identifier = ((o.identifier == null)?null:o.getIdentifier()); | 
| 91 |         // CBuiltinLeafInfo: java.lang.String | 
| 92 |         this.version = ((o.version == null)?null:o.getVersion()); | 
| 93 |         // CBuiltinLeafInfo: java.lang.Boolean | 
| 94 |         this._final = ((o._final == null)?null:o.isFinal()); | 
| 95 |         // CBuiltinLeafInfo: java.lang.Boolean | 
| 96 |         this.override = ((o.override == null)?null:o.isOverride()); | 
| 97 |     } | 
| 98 |   | 
| 99 |     /** | 
| 100 |      * The identifier of the referenced implementation. | 
| 101 |      *  | 
| 102 |      * @return | 
| 103 |      *     possible object is | 
| 104 |      *     {@link String } | 
| 105 |      *      | 
| 106 |      */ | 
| 107 |     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 108 |     public String getIdentifier() { | 
| 109 |         return identifier; | 
| 110 |     } | 
| 111 |   | 
| 112 |     /** | 
| 113 |      * Sets the value of the identifier property. | 
| 114 |      *  | 
| 115 |      * @param value | 
| 116 |      *     allowed object is | 
| 117 |      *     {@link String } | 
| 118 |      *      | 
| 119 |      */ | 
| 120 |     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 121 |     public void setIdentifier(String value) { | 
| 122 |         this.identifier = value; | 
| 123 |     } | 
| 124 |   | 
| 125 |     /** | 
| 126 |      * The version of the referenced implementation or {@code null}. | 
| 127 |      *  | 
| 128 |      * @return | 
| 129 |      *     possible object is | 
| 130 |      *     {@link String } | 
| 131 |      *      | 
| 132 |      */ | 
| 133 |     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 134 |     public String getVersion() { | 
| 135 |         return version; | 
| 136 |     } | 
| 137 |   | 
| 138 |     /** | 
| 139 |      * Sets the value of the version property. | 
| 140 |      *  | 
| 141 |      * @param value | 
| 142 |      *     allowed object is | 
| 143 |      *     {@link String } | 
| 144 |      *      | 
| 145 |      */ | 
| 146 |     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 147 |     public void setVersion(String value) { | 
| 148 |         this.version = value; | 
| 149 |     } | 
| 150 |   | 
| 151 |     /** | 
| 152 |      * {@code true}, if this implementation reference is the final node in an inheritance hierarchy. | 
| 153 |      *  | 
| 154 |      * @return | 
| 155 |      *     possible object is | 
| 156 |      *     {@link Boolean } | 
| 157 |      *      | 
| 158 |      */ | 
| 159 |     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 160 |     public boolean isFinal() { | 
| 161 |         if (_final == null) { | 
| 162 |             return false; | 
| 163 |         } else { | 
| 164 |             return _final; | 
| 165 |         } | 
| 166 |     } | 
| 167 |   | 
| 168 |     /** | 
| 169 |      * Sets the value of the final property. | 
| 170 |      *  | 
| 171 |      * @param value | 
| 172 |      *     allowed object is | 
| 173 |      *     {@link Boolean } | 
| 174 |      *      | 
| 175 |      */ | 
| 176 |     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 177 |     public void setFinal(Boolean value) { | 
| 178 |         this._final = value; | 
| 179 |     } | 
| 180 |   | 
| 181 |     /** | 
| 182 |      * {@code true}, if this implementation reference is intended to override a super implementation reference. | 
| 183 |      *  | 
| 184 |      * @return | 
| 185 |      *     possible object is | 
| 186 |      *     {@link Boolean } | 
| 187 |      *      | 
| 188 |      */ | 
| 189 |     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 190 |     public boolean isOverride() { | 
| 191 |         if (override == null) { | 
| 192 |             return false; | 
| 193 |         } else { | 
| 194 |             return override; | 
| 195 |         } | 
| 196 |     } | 
| 197 |   | 
| 198 |     /** | 
| 199 |      * Sets the value of the override property. | 
| 200 |      *  | 
| 201 |      * @param value | 
| 202 |      *     allowed object is | 
| 203 |      *     {@link Boolean } | 
| 204 |      *      | 
| 205 |      */ | 
| 206 |     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 207 |     public void setOverride(Boolean value) { | 
| 208 |         this.override = value; | 
| 209 |     } | 
| 210 |   | 
| 211 |     /** | 
| 212 |      * Creates and returns a deep copy of this object. | 
| 213 |      *  | 
| 214 |      *  | 
| 215 |      * @return | 
| 216 |      *     A deep copy of this object. | 
| 217 |      */ | 
| 218 |     @Override | 
| 219 |     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 220 |     public ImplementationReference clone() { | 
| 221 |         { | 
| 222 |             // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000 | 
| 223 |             final ImplementationReference clone = ((ImplementationReference) super.clone()); | 
| 224 |             // CBuiltinLeafInfo: java.lang.String | 
| 225 |             clone.identifier = ((this.identifier == null)?null:this.getIdentifier()); | 
| 226 |             // CBuiltinLeafInfo: java.lang.String | 
| 227 |             clone.version = ((this.version == null)?null:this.getVersion()); | 
| 228 |             // CBuiltinLeafInfo: java.lang.Boolean | 
| 229 |             clone._final = ((this._final == null)?null:this.isFinal()); | 
| 230 |             // CBuiltinLeafInfo: java.lang.Boolean | 
| 231 |             clone.override = ((this.override == null)?null:this.isOverride()); | 
| 232 |             return clone; | 
| 233 |         } | 
| 234 |     } | 
| 235 |   | 
| 236 | } |