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.10.02 at 06:07:50 PM 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.XmlSeeAlso;
016    import javax.xml.bind.annotation.XmlType;
017    import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
018    import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
019    
020    
021    /**
022     * Reference to a specification.
023     * @see Specification
024     * 
025     * 
026     * 
027     */
028    @XmlAccessorType(XmlAccessType.FIELD)
029    @XmlType(name = "SpecificationReference")
030    @XmlSeeAlso({
031        Dependency.class
032    })
033    @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:07:50+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
034    public class SpecificationReference
035        extends ModelObject
036        implements Cloneable
037    {
038    
039        @XmlAttribute(required = true)
040        @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
041        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:07:50+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
042        protected String identifier;
043        @XmlAttribute
044        @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
045        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:07:50+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
046        protected String version;
047        @XmlAttribute(name = "final")
048        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:07:50+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
049        protected Boolean _final;
050        @XmlAttribute
051        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:07:50+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
052        protected Boolean override;
053    
054        /**
055         * Creates a new {@code SpecificationReference} instance.
056         * 
057         */
058        public SpecificationReference() {
059             // CC-XJC Version 1.0 Build 2009-09-18T15:48:40+0000
060            super();
061        }
062    
063        /**
064         * Creates a new {@code SpecificationReference} instance by deeply copying a given instance.
065         * 
066         * @param o
067         *     The instance to copy or {@code null}.
068         */
069        public SpecificationReference(final SpecificationReference o) {
070             // CC-XJC Version 1.0 Build 2009-09-18T15:48:40+0000
071            super(o);
072            if (o!= null) {
073                {
074                    // CBuiltinLeafInfo: java.lang.String
075                    this.identifier = ((String) o.getIdentifier());
076                    // CBuiltinLeafInfo: java.lang.String
077                    this.version = ((String) o.getVersion());
078                    // CBuiltinLeafInfo: java.lang.Boolean
079                    this._final = ((Boolean) o.isFinal());
080                    // CBuiltinLeafInfo: java.lang.Boolean
081                    this.override = ((Boolean) o.isOverride());
082                }
083            }
084        }
085    
086        /**
087         * The identifier of the referenced specification.
088         * 
089         * @return
090         *     possible object is
091         *     {@link String }
092         *     
093         */
094        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:07:50+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
095        public String getIdentifier() {
096            return identifier;
097        }
098    
099        /**
100         * Sets the value of the identifier property.
101         * 
102         * @param value
103         *     allowed object is
104         *     {@link String }
105         *     
106         */
107        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:07:50+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
108        public void setIdentifier(String value) {
109            this.identifier = value;
110        }
111    
112        /**
113         * The version of the referenced specification or {@code null}.
114         * 
115         * @return
116         *     possible object is
117         *     {@link String }
118         *     
119         */
120        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:07:50+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
121        public String getVersion() {
122            return version;
123        }
124    
125        /**
126         * Sets the value of the version property.
127         * 
128         * @param value
129         *     allowed object is
130         *     {@link String }
131         *     
132         */
133        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:07:50+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
134        public void setVersion(String value) {
135            this.version = value;
136        }
137    
138        /**
139         * Flags this specification reference final.
140         * 
141         * @return
142         *     possible object is
143         *     {@link Boolean }
144         *     
145         */
146        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:07:50+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
147        public boolean isFinal() {
148            if (_final == null) {
149                return false;
150            } else {
151                return _final;
152            }
153        }
154    
155        /**
156         * Sets the value of the final property.
157         * 
158         * @param value
159         *     allowed object is
160         *     {@link Boolean }
161         *     
162         */
163        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:07:50+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
164        public void setFinal(Boolean value) {
165            this._final = value;
166        }
167    
168        /**
169         * True, if this specification reference is intended to override a super specification reference.
170         * 
171         * @return
172         *     possible object is
173         *     {@link Boolean }
174         *     
175         */
176        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:07:50+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
177        public boolean isOverride() {
178            if (override == null) {
179                return false;
180            } else {
181                return override;
182            }
183        }
184    
185        /**
186         * Sets the value of the override property.
187         * 
188         * @param value
189         *     allowed object is
190         *     {@link Boolean }
191         *     
192         */
193        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:07:50+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
194        public void setOverride(Boolean value) {
195            this.override = value;
196        }
197    
198        /**
199         * Creates and returns a deep copy of this object.
200         * 
201         * 
202         * @return
203         *     A deep copy of this object.
204         */
205        @Override
206        @Generated(value = "com.sun.tools.xjc.Driver", date = "2009-10-02T06:07:50+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833")
207        public SpecificationReference clone() {
208             // CC-XJC Version 1.0 Build 2009-09-18T15:48:40+0000
209            return new SpecificationReference(this);
210        }
211    
212    }