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.12.07 at 03:06: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 *
022 * Model of an author.
023 *
024 * The 'Author' type extends the 'Person' type adding attribute 'version' holding a version created by the author.
025 *
026 *
027 * <p>Java class for Author complex type.
028 *
029 * <p>The following schema fragment specifies the expected content contained within this class.
030 *
031 * <pre>
032 * <complexType name="Author">
033 * <complexContent>
034 * <extension base="{http://jomc.org/model}Person">
035 * <attribute name="version" type="{http://jomc.org/model}Version" />
036 * </extension>
037 * </complexContent>
038 * </complexType>
039 * </pre>
040 *
041 *
042 */
043 @XmlAccessorType(XmlAccessType.FIELD)
044 @XmlType(name = "Author")
045 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-12-07T03:06:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
046 public class Author
047 extends Person
048 implements Cloneable
049 {
050
051 @XmlAttribute
052 @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
053 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-12-07T03:06:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
054 protected String version;
055
056 /**
057 * Creates a new {@code Author} instance.
058 *
059 */
060 public Author() {
061 // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000
062 super();
063 }
064
065 /**
066 * Creates a new {@code Author} instance by deeply copying a given {@code Author} instance.
067 *
068 *
069 * @param o
070 * The instance to copy.
071 * @throws NullPointerException
072 * if {@code o} is {@code null}.
073 */
074 public Author(final Author o) {
075 // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000
076 super(o);
077 if (o == null) {
078 throw new NullPointerException("Cannot create a copy of 'Author' from 'null'.");
079 }
080 // CBuiltinLeafInfo: java.lang.String
081 this.version = o.getVersion();
082 }
083
084 /**
085 * The version created by this author or {@code null}.
086 *
087 * @return
088 * possible object is
089 * {@link String }
090 *
091 */
092 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-12-07T03:06:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
093 public String getVersion() {
094 return version;
095 }
096
097 /**
098 * Sets the value of the version property.
099 *
100 * @param value
101 * allowed object is
102 * {@link String }
103 *
104 */
105 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-12-07T03:06:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
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 = "2009-12-07T03:06:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
119 public Author clone() {
120 // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000
121 return new Author(this);
122 }
123
124 }