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: 2013.04.21 at 08:43:19 PM CEST 006// 007 008 009package org.jomc.model.test; 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 org.jomc.model.Inheritable; 017 018 019/** 020 * <p>Java class for TestInheritable complex type. 021 * 022 * <p>The following schema fragment specifies the expected content contained within this class. 023 * 024 * <pre> 025 * <complexType name="TestInheritable"> 026 * <complexContent> 027 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 028 * <attribute name="final" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> 029 * <attribute name="override" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> 030 * </restriction> 031 * </complexContent> 032 * </complexType> 033 * </pre> 034 * 035 * 036 */ 037@XmlAccessorType(XmlAccessType.FIELD) 038@XmlType(name = "TestInheritable", namespace = "http://jomc.org/model/test") 039@Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") 040public class TestInheritable implements Cloneable, Inheritable 041{ 042 043 @XmlAttribute(name = "final") 044 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") 045 protected Boolean _final; 046 @XmlAttribute(name = "override") 047 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") 048 protected Boolean override; 049 050 /** 051 * Creates a new {@code TestInheritable} instance. 052 * 053 */ 054 public TestInheritable() { 055 // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000 056 super(); 057 } 058 059 /** 060 * Creates a new {@code TestInheritable} instance by deeply copying a given {@code TestInheritable} instance. 061 * 062 * 063 * @param o 064 * The instance to copy. 065 * @throws NullPointerException 066 * if {@code o} is {@code null}. 067 */ 068 public TestInheritable(final TestInheritable o) { 069 // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000 070 super(); 071 if (o == null) { 072 throw new NullPointerException("Cannot create a copy of 'TestInheritable' from 'null'."); 073 } 074 // CBuiltinLeafInfo: java.lang.Boolean 075 this._final = ((o._final == null)?null:o.isFinal()); 076 // CBuiltinLeafInfo: java.lang.Boolean 077 this.override = ((o.override == null)?null:o.isOverride()); 078 } 079 080 /** 081 * Gets the value of the final property. 082 * 083 * @return 084 * possible object is 085 * {@link Boolean } 086 * 087 */ 088 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") 089 public boolean isFinal() { 090 if (_final == null) { 091 return false; 092 } else { 093 return _final; 094 } 095 } 096 097 /** 098 * Sets the value of the final property. 099 * 100 * @param value 101 * allowed object is 102 * {@link Boolean } 103 * 104 */ 105 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") 106 public void setFinal(Boolean value) { 107 this._final = value; 108 } 109 110 /** 111 * Gets the value of the override property. 112 * 113 * @return 114 * possible object is 115 * {@link Boolean } 116 * 117 */ 118 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") 119 public boolean isOverride() { 120 if (override == null) { 121 return false; 122 } else { 123 return override; 124 } 125 } 126 127 /** 128 * Sets the value of the override property. 129 * 130 * @param value 131 * allowed object is 132 * {@link Boolean } 133 * 134 */ 135 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") 136 public void setOverride(Boolean value) { 137 this.override = value; 138 } 139 140 /** 141 * Creates and returns a deep copy of this object. 142 * 143 * 144 * @return 145 * A deep copy of this object. 146 */ 147 @Override 148 @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-04-21T08:43:19+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") 149 public TestInheritable clone() { 150 try { 151 { 152 // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000 153 final TestInheritable clone = ((TestInheritable) super.clone()); 154 // CBuiltinLeafInfo: java.lang.Boolean 155 clone._final = ((this._final == null)?null:this.isFinal()); 156 // CBuiltinLeafInfo: java.lang.Boolean 157 clone.override = ((this.override == null)?null:this.isOverride()); 158 return clone; 159 } 160 } catch (CloneNotSupportedException e) { 161 // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/ 162 throw new AssertionError(e); 163 } 164 } 165 166}