| 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 | * Reference to a message. | 
| 22 | * | 
| 23 | * <p>Java class for MessageReference complex type. | 
| 24 | * | 
| 25 | * <p>The following schema fragment specifies the expected content contained within this class. | 
| 26 | * | 
| 27 | * <pre> | 
| 28 | * <complexType name="MessageReference"> | 
| 29 | *   <complexContent> | 
| 30 | *     <extension base="{http://jomc.org/model}ModelObject"> | 
| 31 | *       <attribute name="name" use="required" type="{http://jomc.org/model}Identifier" /> | 
| 32 | *       <attribute name="final" type="{http://jomc.org/model}Flag" default="false" /> | 
| 33 | *       <attribute name="override" type="{http://jomc.org/model}Flag" default="false" /> | 
| 34 | *     </extension> | 
| 35 | *   </complexContent> | 
| 36 | * </complexType> | 
| 37 | * </pre> | 
| 38 | * | 
| 39 | * | 
| 40 | */ | 
| 41 | @XmlAccessorType(XmlAccessType.FIELD) | 
| 42 | @XmlType(name = "MessageReference", namespace = "http://jomc.org/model") | 
| 43 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 44 | public class MessageReference | 
| 45 | extends ModelObject | 
| 46 | implements Cloneable, Inheritable | 
| 47 | { | 
| 48 |  | 
| 49 | @XmlAttribute(name = "name", required = true) | 
| 50 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) | 
| 51 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 52 | protected String name; | 
| 53 | @XmlAttribute(name = "final") | 
| 54 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 55 | protected Boolean _final; | 
| 56 | @XmlAttribute(name = "override") | 
| 57 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 58 | protected Boolean override; | 
| 59 |  | 
| 60 | /** | 
| 61 | * Creates a new {@code MessageReference} instance. | 
| 62 | * | 
| 63 | */ | 
| 64 | public MessageReference() { | 
| 65 | // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000 | 
| 66 | super(); | 
| 67 | } | 
| 68 |  | 
| 69 | /** | 
| 70 | * Creates a new {@code MessageReference} instance by deeply copying a given {@code MessageReference} instance. | 
| 71 | * | 
| 72 | * | 
| 73 | * @param o | 
| 74 | *     The instance to copy. | 
| 75 | * @throws NullPointerException | 
| 76 | *     if {@code o} is {@code null}. | 
| 77 | */ | 
| 78 | public MessageReference(final MessageReference o) { | 
| 79 | // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000 | 
| 80 | super(o); | 
| 81 | if (o == null) { | 
| 82 | throw new NullPointerException("Cannot create a copy of 'MessageReference' from 'null'."); | 
| 83 | } | 
| 84 | // CBuiltinLeafInfo: java.lang.String | 
| 85 | this.name = ((o.name == null)?null:o.getName()); | 
| 86 | // CBuiltinLeafInfo: java.lang.Boolean | 
| 87 | this._final = ((o._final == null)?null:o.isFinal()); | 
| 88 | // CBuiltinLeafInfo: java.lang.Boolean | 
| 89 | this.override = ((o.override == null)?null:o.isOverride()); | 
| 90 | } | 
| 91 |  | 
| 92 | /** | 
| 93 | * The name of the referenced message. | 
| 94 | * | 
| 95 | * @return | 
| 96 | *     possible object is | 
| 97 | *     {@link String } | 
| 98 | * | 
| 99 | */ | 
| 100 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 101 | public String getName() { | 
| 102 | return name; | 
| 103 | } | 
| 104 |  | 
| 105 | /** | 
| 106 | * Sets the value of the name property. | 
| 107 | * | 
| 108 | * @param value | 
| 109 | *     allowed object is | 
| 110 | *     {@link String } | 
| 111 | * | 
| 112 | */ | 
| 113 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 114 | public void setName(String value) { | 
| 115 | this.name = value; | 
| 116 | } | 
| 117 |  | 
| 118 | /** | 
| 119 | * {@code true}, if this message reference is the final node in an inheritance hierarchy. | 
| 120 | * | 
| 121 | * @return | 
| 122 | *     possible object is | 
| 123 | *     {@link Boolean } | 
| 124 | * | 
| 125 | */ | 
| 126 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 127 | public boolean isFinal() { | 
| 128 | if (_final == null) { | 
| 129 | return false; | 
| 130 | } else { | 
| 131 | return _final; | 
| 132 | } | 
| 133 | } | 
| 134 |  | 
| 135 | /** | 
| 136 | * Sets the value of the final property. | 
| 137 | * | 
| 138 | * @param value | 
| 139 | *     allowed object is | 
| 140 | *     {@link Boolean } | 
| 141 | * | 
| 142 | */ | 
| 143 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 144 | public void setFinal(Boolean value) { | 
| 145 | this._final = value; | 
| 146 | } | 
| 147 |  | 
| 148 | /** | 
| 149 | * {@code true}, if this message reference is intended to override a super message reference. | 
| 150 | * | 
| 151 | * @return | 
| 152 | *     possible object is | 
| 153 | *     {@link Boolean } | 
| 154 | * | 
| 155 | */ | 
| 156 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 157 | public boolean isOverride() { | 
| 158 | if (override == null) { | 
| 159 | return false; | 
| 160 | } else { | 
| 161 | return override; | 
| 162 | } | 
| 163 | } | 
| 164 |  | 
| 165 | /** | 
| 166 | * Sets the value of the override property. | 
| 167 | * | 
| 168 | * @param value | 
| 169 | *     allowed object is | 
| 170 | *     {@link Boolean } | 
| 171 | * | 
| 172 | */ | 
| 173 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 174 | public void setOverride(Boolean value) { | 
| 175 | this.override = value; | 
| 176 | } | 
| 177 |  | 
| 178 | /** | 
| 179 | * Creates and returns a deep copy of this object. | 
| 180 | * | 
| 181 | * | 
| 182 | * @return | 
| 183 | *     A deep copy of this object. | 
| 184 | */ | 
| 185 | @Override | 
| 186 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2013-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2") | 
| 187 | public MessageReference clone() { | 
| 188 | { | 
| 189 | // CC-XJC Version 2.0.1 Build 2012-03-02T12:09:12+0000 | 
| 190 | final MessageReference clone = ((MessageReference) super.clone()); | 
| 191 | // CBuiltinLeafInfo: java.lang.String | 
| 192 | clone.name = ((this.name == null)?null:this.getName()); | 
| 193 | // CBuiltinLeafInfo: java.lang.Boolean | 
| 194 | clone._final = ((this._final == null)?null:this.isFinal()); | 
| 195 | // CBuiltinLeafInfo: java.lang.Boolean | 
| 196 | clone.override = ((this.override == null)?null:this.isOverride()); | 
| 197 | return clone; | 
| 198 | } | 
| 199 | } | 
| 200 |  | 
| 201 | } |