View Javadoc

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