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

COVERAGE SUMMARY FOR SOURCE FILE [MessageReference.java]

nameclass, %method, %block, %line, %
MessageReference.java100% (1/1)56%  (5/9)51%  (57/111)51%  (13.9/27)

COVERAGE BREAKDOWN BY CLASS AND METHOD

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

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