001// 002// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 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: 2016.11.01 at 03:16:38 AM CET 006// 007 008 009package org.jomc.model; 010 011import javax.annotation.Generated; 012import javax.xml.bind.annotation.XmlAccessType; 013import javax.xml.bind.annotation.XmlAccessorType; 014import javax.xml.bind.annotation.XmlAttribute; 015import javax.xml.bind.annotation.XmlType; 016import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; 017import 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", namespace = "http://jomc.org/model") 045@Generated(value = "com.sun.tools.xjc.Driver", date = "2016-11-01T03:16:37+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") 046public class Author 047 extends Person 048 implements Cloneable 049{ 050 051 @XmlAttribute(name = "version") 052 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 053 @Generated(value = "com.sun.tools.xjc.Driver", date = "2016-11-01T03:16:37+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") 054 protected String version; 055 056 /** 057 * Creates a new {@code Author} instance. 058 * 059 */ 060 public Author() { 061 // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+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 2.0.1 Build 2012-03-02T12:09:12+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.version == null)?null: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 = "2016-11-01T03:16:37+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") 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 = "2016-11-01T03:16:37+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 = "2016-11-01T03:16:37+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}