| 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 |  *  | 
| 22 |  * Model of an author. | 
| 23 |  *  | 
| 24 |  * The 'Author' type extends the 'Person' type adding attribute 'version' holding a version created by the author. | 
| 25 |  *        | 
| 26 |  *  | 
| 27 |  * <p>Java class for Author complex type. | 
| 28 |  *  | 
| 29 |  * <p>The following schema fragment specifies the expected content contained within this class. | 
| 30 |  *  | 
| 31 |  * <pre> | 
| 32 |  * <complexType name="Author"> | 
| 33 |  *   <complexContent> | 
| 34 |  *     <extension base="{http://jomc.org/model}Person"> | 
| 35 |  *       <attribute name="version" type="{http://jomc.org/model}Version" /> | 
| 36 |  *     </extension> | 
| 37 |  *   </complexContent> | 
| 38 |  * </complexType> | 
| 39 |  * </pre> | 
| 40 |  *  | 
| 41 |  *  | 
| 42 |  */ | 
| 43 | @XmlAccessorType(XmlAccessType.FIELD) | 
| 44 | @XmlType(name = "Author", namespace = "http://jomc.org/model") | 
| 45 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 46 | public class Author | 
| 47 |     extends Person | 
| 48 |     implements Cloneable | 
| 49 | { | 
| 50 |   | 
| 51 |     @XmlAttribute(name = "version") | 
| 52 |     @XmlJavaTypeAdapter(CollapsedStringAdapter.class) | 
| 53 |     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 54 |     protected String version; | 
| 55 |   | 
| 56 |     /** | 
| 57 |      * Creates a new {@code Author} instance. | 
| 58 |      *  | 
| 59 |      */ | 
| 60 |     public Author() { | 
| 61 |         // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000 | 
| 62 |         super(); | 
| 63 |     } | 
| 64 |   | 
| 65 |     /** | 
| 66 |      * Creates a new {@code Author} instance by deeply copying a given {@code Author} instance. | 
| 67 |      *  | 
| 68 |      *  | 
| 69 |      * @param o | 
| 70 |      *     The instance to copy. | 
| 71 |      * @throws NullPointerException | 
| 72 |      *     if {@code o} is {@code null}. | 
| 73 |      */ | 
| 74 |     public Author(final Author o) { | 
| 75 |         // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000 | 
| 76 |         super(o); | 
| 77 |         if (o == null) { | 
| 78 |             throw new NullPointerException("Cannot create a copy of 'Author' from 'null'."); | 
| 79 |         } | 
| 80 |         // CBuiltinLeafInfo: java.lang.String | 
| 81 |         this.version = ((o.version == null)?null:o.getVersion()); | 
| 82 |     } | 
| 83 |   | 
| 84 |     /** | 
| 85 |      * The version created by this author or {@code null}. | 
| 86 |      *  | 
| 87 |      * @return | 
| 88 |      *     possible object is | 
| 89 |      *     {@link String } | 
| 90 |      *      | 
| 91 |      */ | 
| 92 |     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 93 |     public String getVersion() { | 
| 94 |         return version; | 
| 95 |     } | 
| 96 |   | 
| 97 |     /** | 
| 98 |      * Sets the value of the version property. | 
| 99 |      *  | 
| 100 |      * @param value | 
| 101 |      *     allowed object is | 
| 102 |      *     {@link String } | 
| 103 |      *      | 
| 104 |      */ | 
| 105 |     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 106 |     public void setVersion(String value) { | 
| 107 |         this.version = value; | 
| 108 |     } | 
| 109 |   | 
| 110 |     /** | 
| 111 |      * Creates and returns a deep copy of this object. | 
| 112 |      *  | 
| 113 |      *  | 
| 114 |      * @return | 
| 115 |      *     A deep copy of this object. | 
| 116 |      */ | 
| 117 |     @Override | 
| 118 |     @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 119 |     public Author clone() { | 
| 120 |         { | 
| 121 |             // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000 | 
| 122 |             final Author clone = ((Author) super.clone()); | 
| 123 |             // CBuiltinLeafInfo: java.lang.String | 
| 124 |             clone.version = ((this.version == null)?null:this.getVersion()); | 
| 125 |             return clone; | 
| 126 |         } | 
| 127 |     } | 
| 128 |   | 
| 129 | } |