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 * Reference to an implementation.
022 *
023 * <p>Java class for ImplementationReference complex type.
024 *
025 * <p>The following schema fragment specifies the expected content contained within this class.
026 *
027 * <pre>
028 * <complexType name="ImplementationReference">
029 * <complexContent>
030 * <extension base="{http://jomc.org/model}ModelObject">
031 * <attribute name="identifier" use="required" type="{http://jomc.org/model}Identifier" />
032 * <attribute name="version" type="{http://jomc.org/model}Version" />
033 * <attribute name="final" type="{http://jomc.org/model}Flag" default="false" />
034 * <attribute name="override" type="{http://jomc.org/model}Flag" default="false" />
035 * </extension>
036 * </complexContent>
037 * </complexType>
038 * </pre>
039 *
040 *
041 */
042 @XmlAccessorType(XmlAccessType.FIELD)
043 @XmlType(name = "ImplementationReference")
044 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-12-07T03:06:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
045 public class ImplementationReference
046 extends ModelObject
047 implements Cloneable
048 {
049
050 @XmlAttribute(required = true)
051 @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
052 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-12-07T03:06:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
053 protected String identifier;
054 @XmlAttribute
055 @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
056 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-12-07T03:06:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
057 protected String version;
058 @XmlAttribute(name = "final")
059 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-12-07T03:06:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
060 protected Boolean _final;
061 @XmlAttribute
062 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-12-07T03:06:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
063 protected Boolean override;
064
065 /**
066 * Creates a new {@code ImplementationReference} instance.
067 *
068 */
069 public ImplementationReference() {
070 // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000
071 super();
072 }
073
074 /**
075 * Creates a new {@code ImplementationReference} instance by deeply copying a given {@code ImplementationReference} instance.
076 *
077 *
078 * @param o
079 * The instance to copy.
080 * @throws NullPointerException
081 * if {@code o} is {@code null}.
082 */
083 public ImplementationReference(final ImplementationReference o) {
084 // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000
085 super(o);
086 if (o == null) {
087 throw new NullPointerException("Cannot create a copy of 'ImplementationReference' from 'null'.");
088 }
089 // CBuiltinLeafInfo: java.lang.String
090 this.identifier = o.getIdentifier();
091 // CBuiltinLeafInfo: java.lang.String
092 this.version = o.getVersion();
093 // CBuiltinLeafInfo: java.lang.Boolean
094 this._final = o.isFinal();
095 // CBuiltinLeafInfo: java.lang.Boolean
096 this.override = o.isOverride();
097 }
098
099 /**
100 * The identifier of the referenced implementation.
101 *
102 * @return
103 * possible object is
104 * {@link String }
105 *
106 */
107 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-12-07T03:06:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
108 public String getIdentifier() {
109 return identifier;
110 }
111
112 /**
113 * Sets the value of the identifier property.
114 *
115 * @param value
116 * allowed object is
117 * {@link String }
118 *
119 */
120 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-12-07T03:06:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
121 public void setIdentifier(String value) {
122 this.identifier = value;
123 }
124
125 /**
126 * The version of the referenced implementation or {@code null}.
127 *
128 * @return
129 * possible object is
130 * {@link String }
131 *
132 */
133 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-12-07T03:06:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
134 public String getVersion() {
135 return version;
136 }
137
138 /**
139 * Sets the value of the version property.
140 *
141 * @param value
142 * allowed object is
143 * {@link String }
144 *
145 */
146 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-12-07T03:06:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
147 public void setVersion(String value) {
148 this.version = value;
149 }
150
151 /**
152 * {@code true} if this implementation reference is the final node in an inheritance hierarchy.
153 *
154 * @return
155 * possible object is
156 * {@link Boolean }
157 *
158 */
159 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-12-07T03:06:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
160 public boolean isFinal() {
161 if (_final == null) {
162 return false;
163 } else {
164 return _final;
165 }
166 }
167
168 /**
169 * Sets the value of the final property.
170 *
171 * @param value
172 * allowed object is
173 * {@link Boolean }
174 *
175 */
176 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-12-07T03:06:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
177 public void setFinal(Boolean value) {
178 this._final = value;
179 }
180
181 /**
182 * {@code true} if this implementation reference is intended to override a super implementation reference.
183 *
184 * @return
185 * possible object is
186 * {@link Boolean }
187 *
188 */
189 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-12-07T03:06:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
190 public boolean isOverride() {
191 if (override == null) {
192 return false;
193 } else {
194 return override;
195 }
196 }
197
198 /**
199 * Sets the value of the override property.
200 *
201 * @param value
202 * allowed object is
203 * {@link Boolean }
204 *
205 */
206 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-12-07T03:06:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
207 public void setOverride(Boolean value) {
208 this.override = value;
209 }
210
211 /**
212 * Creates and returns a deep copy of this object.
213 *
214 *
215 * @return
216 * A deep copy of this object.
217 */
218 @Override
219 @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-12-07T03:06:36+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
220 public ImplementationReference clone() {
221 // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000
222 return new ImplementationReference(this);
223 }
224
225 }