EMMA Coverage Report (generated Thu Jan 03 04:54:40 CET 2013)
[all classes][org.jomc.model]

COVERAGE SUMMARY FOR SOURCE FILE [SpecificationReference.java]

nameclass, %method, %block, %line, %
SpecificationReference.java100% (1/1)55%  (6/11)51%  (69/136)50%  (15.9/32)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SpecificationReference100% (1/1)55%  (6/11)51%  (69/136)50%  (15.9/32)
SpecificationReference (SpecificationReference): void 0%   (0/1)0%   (0/49)0%   (0/8)
setFinal (Boolean): void 0%   (0/1)0%   (0/4)0%   (0/2)
setIdentifier (String): void 0%   (0/1)0%   (0/4)0%   (0/2)
setOverride (Boolean): void 0%   (0/1)0%   (0/4)0%   (0/2)
setVersion (String): void 0%   (0/1)0%   (0/4)0%   (0/2)
clone (): SpecificationReference 100% (1/1)95%  (42/44)98%  (5.9/6)
SpecificationReference (): void 100% (1/1)100% (3/3)100% (2/2)
getIdentifier (): String 100% (1/1)100% (3/3)100% (1/1)
getVersion (): String 100% (1/1)100% (3/3)100% (1/1)
isFinal (): boolean 100% (1/1)100% (9/9)100% (3/3)
isOverride (): boolean 100% (1/1)100% (9/9)100% (3/3)

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 
9package org.jomc.model;
10 
11import javax.annotation.Generated;
12import javax.xml.bind.annotation.XmlAccessType;
13import javax.xml.bind.annotation.XmlAccessorType;
14import javax.xml.bind.annotation.XmlAttribute;
15import javax.xml.bind.annotation.XmlSeeAlso;
16import javax.xml.bind.annotation.XmlType;
17import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
18import 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-01-03T05:01:35+01:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
49public 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-01-03T05:01:35+01: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-01-03T05:01:35+01: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-01-03T05:01:35+01: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-01-03T05:01:35+01: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-01-03T05:01:35+01: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-01-03T05:01:35+01: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-01-03T05:01:35+01: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-01-03T05:01:35+01: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-01-03T05:01:35+01: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-01-03T05:01:35+01: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-01-03T05:01:35+01: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-01-03T05:01:35+01: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-01-03T05:01:35+01: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}

[all classes][org.jomc.model]
EMMA 2.1.5320 (stable) (C) Vladimir Roubtsov