1 | // |
2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 |
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: 2010.02.03 at 01:25:12 AM UTC |
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.XmlSeeAlso; |
16 | import javax.xml.bind.annotation.XmlType; |
17 | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; |
18 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
19 | import javax.xml.datatype.XMLGregorianCalendar; |
20 | |
21 | |
22 | /** |
23 | * Base model object. |
24 | * |
25 | * <p>Java class for ModelObject complex type. |
26 | * |
27 | * <p>The following schema fragment specifies the expected content contained within this class. |
28 | * |
29 | * <pre> |
30 | * <complexType name="ModelObject"> |
31 | * <complexContent> |
32 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
33 | * <sequence> |
34 | * <element ref="{http://jomc.org/model}documentation" minOccurs="0"/> |
35 | * <element ref="{http://jomc.org/model}authors" minOccurs="0"/> |
36 | * </sequence> |
37 | * <attribute name="modelVersion" type="{http://jomc.org/model}Version" default="1.0" /> |
38 | * <attribute name="createDate" type="{http://jomc.org/model}DateTime" /> |
39 | * <attribute name="deprecated" type="{http://jomc.org/model}Flag" default="false" /> |
40 | * </restriction> |
41 | * </complexContent> |
42 | * </complexType> |
43 | * </pre> |
44 | * |
45 | * |
46 | */ |
47 | @XmlAccessorType(XmlAccessType.FIELD) |
48 | @XmlType(name = "ModelObject", propOrder = { |
49 | "documentation", |
50 | "authors" |
51 | }) |
52 | @XmlSeeAlso({ |
53 | Arguments.class, |
54 | Argument.class, |
55 | Dependencies.class, |
56 | Message.class, |
57 | Property.class, |
58 | Authors.class, |
59 | Modules.class, |
60 | Implementation.class, |
61 | Properties.class, |
62 | Specification.class, |
63 | Instance.class, |
64 | Instances.class, |
65 | Implementations.class, |
66 | Persons.class, |
67 | Specifications.class, |
68 | Person.class, |
69 | Module.class, |
70 | Messages.class, |
71 | ImplementationReference.class, |
72 | MessageReference.class, |
73 | PropertyReference.class, |
74 | SpecificationReference.class |
75 | }) |
76 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
77 | public class ModelObject implements Cloneable |
78 | { |
79 | |
80 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
81 | protected Texts documentation; |
82 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
83 | protected Authors authors; |
84 | @XmlAttribute |
85 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) |
86 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
87 | protected String modelVersion; |
88 | @XmlAttribute |
89 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
90 | protected XMLGregorianCalendar createDate; |
91 | @XmlAttribute |
92 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
93 | protected Boolean deprecated; |
94 | |
95 | /** |
96 | * Creates a new {@code ModelObject} instance. |
97 | * |
98 | */ |
99 | public ModelObject() { |
100 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
101 | super(); |
102 | } |
103 | |
104 | /** |
105 | * Creates a new {@code ModelObject} instance by deeply copying a given {@code ModelObject} instance. |
106 | * |
107 | * |
108 | * @param o |
109 | * The instance to copy. |
110 | * @throws NullPointerException |
111 | * if {@code o} is {@code null}. |
112 | */ |
113 | public ModelObject(final ModelObject o) { |
114 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
115 | super(); |
116 | if (o == null) { |
117 | throw new NullPointerException("Cannot create a copy of 'ModelObject' from 'null'."); |
118 | } |
119 | // CClassInfo: org.jomc.model.Texts |
120 | this.documentation = ((o.getDocumentation() == null)?null:o.getDocumentation().clone()); |
121 | // CClassInfo: org.jomc.model.Authors |
122 | this.authors = ((o.getAuthors() == null)?null:o.getAuthors().clone()); |
123 | // CBuiltinLeafInfo: java.lang.String |
124 | this.modelVersion = o.getModelVersion(); |
125 | // CBuiltinLeafInfo: javax.xml.datatype.XMLGregorianCalendar |
126 | this.createDate = ((o.getCreateDate() == null)?null:((XMLGregorianCalendar) o.getCreateDate().clone())); |
127 | // CBuiltinLeafInfo: java.lang.Boolean |
128 | this.deprecated = o.isDeprecated(); |
129 | } |
130 | |
131 | /** |
132 | * Documentation of this object or {@code null}. |
133 | * |
134 | * @return |
135 | * possible object is |
136 | * {@link Texts } |
137 | * |
138 | */ |
139 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
140 | public Texts getDocumentation() { |
141 | return documentation; |
142 | } |
143 | |
144 | /** |
145 | * Sets the value of the documentation property. |
146 | * |
147 | * @param value |
148 | * allowed object is |
149 | * {@link Texts } |
150 | * |
151 | */ |
152 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
153 | public void setDocumentation(Texts value) { |
154 | this.documentation = value; |
155 | } |
156 | |
157 | /** |
158 | * Authors of this object or {@code null}. |
159 | * |
160 | * @return |
161 | * possible object is |
162 | * {@link Authors } |
163 | * |
164 | */ |
165 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
166 | public Authors getAuthors() { |
167 | return authors; |
168 | } |
169 | |
170 | /** |
171 | * Sets the value of the authors property. |
172 | * |
173 | * @param value |
174 | * allowed object is |
175 | * {@link Authors } |
176 | * |
177 | */ |
178 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
179 | public void setAuthors(Authors value) { |
180 | this.authors = value; |
181 | } |
182 | |
183 | /** |
184 | * Model version of this object. |
185 | * |
186 | * @return |
187 | * possible object is |
188 | * {@link String } |
189 | * |
190 | */ |
191 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
192 | public String getModelVersion() { |
193 | if (modelVersion == null) { |
194 | return "1.0"; |
195 | } else { |
196 | return modelVersion; |
197 | } |
198 | } |
199 | |
200 | /** |
201 | * Sets the value of the modelVersion property. |
202 | * |
203 | * @param value |
204 | * allowed object is |
205 | * {@link String } |
206 | * |
207 | */ |
208 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
209 | public void setModelVersion(String value) { |
210 | this.modelVersion = value; |
211 | } |
212 | |
213 | /** |
214 | * The date this object got created or {@code null}. |
215 | * |
216 | * @return |
217 | * possible object is |
218 | * {@link XMLGregorianCalendar } |
219 | * |
220 | */ |
221 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
222 | public XMLGregorianCalendar getCreateDate() { |
223 | return createDate; |
224 | } |
225 | |
226 | /** |
227 | * Sets the value of the createDate property. |
228 | * |
229 | * @param value |
230 | * allowed object is |
231 | * {@link XMLGregorianCalendar } |
232 | * |
233 | */ |
234 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
235 | public void setCreateDate(XMLGregorianCalendar value) { |
236 | this.createDate = value; |
237 | } |
238 | |
239 | /** |
240 | * {@code true} if this object is deprecated. |
241 | * |
242 | * @return |
243 | * possible object is |
244 | * {@link Boolean } |
245 | * |
246 | */ |
247 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
248 | public boolean isDeprecated() { |
249 | if (deprecated == null) { |
250 | return false; |
251 | } else { |
252 | return deprecated; |
253 | } |
254 | } |
255 | |
256 | /** |
257 | * Sets the value of the deprecated property. |
258 | * |
259 | * @param value |
260 | * allowed object is |
261 | * {@link Boolean } |
262 | * |
263 | */ |
264 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
265 | public void setDeprecated(Boolean value) { |
266 | this.deprecated = value; |
267 | } |
268 | |
269 | /** |
270 | * Creates and returns a deep copy of this object. |
271 | * |
272 | * |
273 | * @return |
274 | * A deep copy of this object. |
275 | */ |
276 | @Override |
277 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
278 | public ModelObject clone() { |
279 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
280 | return new ModelObject(this); |
281 | } |
282 | |
283 | } |