001 //
002 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833
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: 2009.11.18 at 06:28:36 AM UTC
006 //
007
008
009 package org.jomc.model;
010
011 import javax.annotation.Generated;
012 import javax.xml.bind.annotation.XmlAccessType;
013 import javax.xml.bind.annotation.XmlAccessorType;
014 import javax.xml.bind.annotation.XmlAttribute;
015 import javax.xml.bind.annotation.XmlType;
016 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
017 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
018
019
020 /**
021 * Model of an author.
022 * <p>An author extends a person adding property {@code version} holding the
023 * version of a model object created due to the author.</p>
024 *
025 *
026 *
027 */
028 @XmlAccessorType(XmlAccessType.FIELD)
029 @XmlType(name = "Author")
030 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
031 public class Author
032 extends Person
033 implements Cloneable
034 {
035
036 @XmlAttribute
037 @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
038 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
039 protected String version;
040
041 /**
042 * Creates a new {@code Author} instance.
043 *
044 */
045 public Author() {
046 // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000
047 super();
048 }
049
050 /**
051 * Creates a new {@code Author} instance by deeply copying a given {@code Author} instance.
052 *
053 *
054 * @param o
055 * The instance to copy.
056 * @throws NullPointerException
057 * if {@code o} is {@code null}.
058 */
059 public Author(final Author o) {
060 // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000
061 super(o);
062 if (o == null) {
063 throw new NullPointerException("Cannot create a copy of 'Author' from 'null'.");
064 }
065 // CBuiltinLeafInfo: java.lang.String
066 this.version = o.getVersion();
067 }
068
069 /**
070 * The version of the model object created due to the author or {@code null}.
071 *
072 * @return
073 * possible object is
074 * {@link String }
075 *
076 */
077 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
078 public String getVersion() {
079 return version;
080 }
081
082 /**
083 * Sets the value of the version property.
084 *
085 * @param value
086 * allowed object is
087 * {@link String }
088 *
089 */
090 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
091 public void setVersion(String value) {
092 this.version = value;
093 }
094
095 /**
096 * Creates and returns a deep copy of this object.
097 *
098 *
099 * @return
100 * A deep copy of this object.
101 */
102 @Override
103 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-11-18T06:28:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
104 public Author clone() {
105 // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000
106 return new Author(this);
107 }
108
109 }