EMMA Coverage Report (generated Sun Apr 01 02:45:34 CEST 2012)
[all classes][org.jomc.model]

COVERAGE SUMMARY FOR SOURCE FILE [Text.java]

nameclass, %method, %block, %line, %
Text.java100% (1/1)67%  (6/9)42%  (44/105)47%  (12.6/27)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class Text100% (1/1)67%  (6/9)42%  (44/105)47%  (12.6/27)
Text (Text): void 0%   (0/1)0%   (0/37)0%   (0/7)
getType (): String 0%   (0/1)0%   (0/8)0%   (0/3)
setType (String): void 0%   (0/1)0%   (0/4)0%   (0/2)
clone (): Text 100% (1/1)69%  (27/39)65%  (4.6/7)
Text (): void 100% (1/1)100% (3/3)100% (2/2)
getLanguage (): String 100% (1/1)100% (3/3)100% (1/1)
getValue (): String 100% (1/1)100% (3/3)100% (1/1)
setLanguage (String): void 100% (1/1)100% (4/4)100% (2/2)
setValue (String): void 100% (1/1)100% (4/4)100% (2/2)

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: 2012.04.01 at 02:39:59 AM CEST 
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.XmlValue;
17import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
18import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
19 
20 
21/**
22 * 
23 * Model of text.
24 * 
25 * The 'Text' type defines attributes 'language', 'type' and 'value'. Attribute 'language' holds the language key
26 * identifying the text in a set of texts. Attribute 'type' specifies a Multipurpose Internet Mail Extension (MIME) type,
27 * as defined in RFC 2045 and 2046. Attribute 'value' holds the text of the type corresponding to the language.
28 *       
29 * 
30 * <p>Java class for Text complex type.
31 * 
32 * <p>The following schema fragment specifies the expected content contained within this class.
33 * 
34 * <pre>
35 * &lt;complexType name="Text">
36 *   &lt;simpleContent>
37 *     &lt;extension base="&lt;http://jomc.org/model>String">
38 *       &lt;attribute name="language" use="required" type="{http://jomc.org/model}Language" />
39 *       &lt;attribute name="type" type="{http://jomc.org/model}MimeType" default="text/plain" />
40 *     &lt;/extension>
41 *   &lt;/simpleContent>
42 * &lt;/complexType>
43 * </pre>
44 * 
45 * 
46 */
47@XmlAccessorType(XmlAccessType.FIELD)
48@XmlType(name = "Text", namespace = "http://jomc.org/model", propOrder = {
49    "value"
50})
51@Generated(value = "com.sun.tools.xjc.Driver", date = "2012-04-01T02:39:59+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
52public class Text implements Cloneable
53{
54 
55    @XmlValue
56    @Generated(value = "com.sun.tools.xjc.Driver", date = "2012-04-01T02:39:59+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
57    protected String value;
58    @XmlAttribute(name = "language", required = true)
59    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
60    @Generated(value = "com.sun.tools.xjc.Driver", date = "2012-04-01T02:39:59+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
61    protected String language;
62    @XmlAttribute(name = "type")
63    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
64    @Generated(value = "com.sun.tools.xjc.Driver", date = "2012-04-01T02:39:59+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
65    protected String type;
66 
67    /**
68     * Creates a new {@code Text} instance.
69     * 
70     */
71    public Text() {
72        // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000
73        super();
74    }
75 
76    /**
77     * Creates a new {@code Text} instance by deeply copying a given {@code Text} instance.
78     * 
79     * 
80     * @param o
81     *     The instance to copy.
82     * @throws NullPointerException
83     *     if {@code o} is {@code null}.
84     */
85    public Text(final Text o) {
86        // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000
87        super();
88        if (o == null) {
89            throw new NullPointerException("Cannot create a copy of 'Text' from 'null'.");
90        }
91        // CBuiltinLeafInfo: java.lang.String
92        this.value = ((o.value == null)?null:o.getValue());
93        // CBuiltinLeafInfo: java.lang.String
94        this.language = ((o.language == null)?null:o.getLanguage());
95        // CBuiltinLeafInfo: java.lang.String
96        this.type = ((o.type == null)?null:o.getType());
97    }
98 
99    /**
100     * Gets the value of the value property.
101     * 
102     * @return
103     *     possible object is
104     *     {@link String }
105     *     
106     */
107    @Generated(value = "com.sun.tools.xjc.Driver", date = "2012-04-01T02:39:59+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
108    public String getValue() {
109        return value;
110    }
111 
112    /**
113     * Sets the value of the value property.
114     * 
115     * @param value
116     *     allowed object is
117     *     {@link String }
118     *     
119     */
120    @Generated(value = "com.sun.tools.xjc.Driver", date = "2012-04-01T02:39:59+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
121    public void setValue(String value) {
122        this.value = value;
123    }
124 
125    /**
126     * The language key of this text.
127     * 
128     * @return
129     *     possible object is
130     *     {@link String }
131     *     
132     */
133    @Generated(value = "com.sun.tools.xjc.Driver", date = "2012-04-01T02:39:59+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
134    public String getLanguage() {
135        return language;
136    }
137 
138    /**
139     * Sets the value of the language property.
140     * 
141     * @param value
142     *     allowed object is
143     *     {@link String }
144     *     
145     */
146    @Generated(value = "com.sun.tools.xjc.Driver", date = "2012-04-01T02:39:59+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
147    public void setLanguage(String value) {
148        this.language = value;
149    }
150 
151    /**
152     * The Multipurpose Internet Mail Extension (MIME) type, as defined in RFC 2045 and 2046.
153     * 
154     * @return
155     *     possible object is
156     *     {@link String }
157     *     
158     */
159    @Generated(value = "com.sun.tools.xjc.Driver", date = "2012-04-01T02:39:59+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
160    public String getType() {
161        if (type == null) {
162            return "text/plain";
163        } else {
164            return type;
165        }
166    }
167 
168    /**
169     * Sets the value of the type property.
170     * 
171     * @param value
172     *     allowed object is
173     *     {@link String }
174     *     
175     */
176    @Generated(value = "com.sun.tools.xjc.Driver", date = "2012-04-01T02:39:59+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
177    public void setType(String value) {
178        this.type = value;
179    }
180 
181    /**
182     * Creates and returns a deep copy of this object.
183     * 
184     * 
185     * @return
186     *     A deep copy of this object.
187     */
188    @Override
189    @Generated(value = "com.sun.tools.xjc.Driver", date = "2012-04-01T02:39:59+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-2")
190    public Text clone() {
191        try {
192            {
193                // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000
194                final Text clone = ((Text) super.clone());
195                // CBuiltinLeafInfo: java.lang.String
196                clone.value = ((this.value == null)?null:this.getValue());
197                // CBuiltinLeafInfo: java.lang.String
198                clone.language = ((this.language == null)?null:this.getLanguage());
199                // CBuiltinLeafInfo: java.lang.String
200                clone.type = ((this.type == null)?null:this.getType());
201                return clone;
202            }
203        } catch (CloneNotSupportedException e) {
204            // Please report this at https://apps.sourceforge.net/mantisbt/ccxjc/
205            throw new AssertionError(e);
206        }
207    }
208 
209}

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