1 | // |
2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 |
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: 2010.02.03 at 01:25:12 AM UTC |
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.XmlType; |
16 | import javax.xml.bind.annotation.XmlValue; |
17 | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; |
18 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
19 | |
20 | |
21 | /** |
22 | * |
23 | * Model of text. |
24 | * |
25 | * The 'Text' type defines attributes 'language' and 'value'. Attribute 'language' holds the language key identifying the |
26 | * text in a set of texts. Attribute 'value' holds the text corresponding to that language. |
27 | * |
28 | * |
29 | * <p>Java class for Text complex type. |
30 | * |
31 | * <p>The following schema fragment specifies the expected content contained within this class. |
32 | * |
33 | * <pre> |
34 | * <complexType name="Text"> |
35 | * <simpleContent> |
36 | * <extension base="<http://jomc.org/model>String"> |
37 | * <attribute name="language" use="required" type="{http://jomc.org/model}Language" /> |
38 | * </extension> |
39 | * </simpleContent> |
40 | * </complexType> |
41 | * </pre> |
42 | * |
43 | * |
44 | */ |
45 | @XmlAccessorType(XmlAccessType.FIELD) |
46 | @XmlType(name = "Text", propOrder = { |
47 | "value" |
48 | }) |
49 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
50 | public class Text implements Cloneable |
51 | { |
52 | |
53 | @XmlValue |
54 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
55 | protected String value; |
56 | @XmlAttribute(required = true) |
57 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) |
58 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
59 | protected String language; |
60 | |
61 | /** |
62 | * Creates a new {@code Text} instance. |
63 | * |
64 | */ |
65 | public Text() { |
66 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
67 | super(); |
68 | } |
69 | |
70 | /** |
71 | * Creates a new {@code Text} instance by deeply copying a given {@code Text} instance. |
72 | * |
73 | * |
74 | * @param o |
75 | * The instance to copy. |
76 | * @throws NullPointerException |
77 | * if {@code o} is {@code null}. |
78 | */ |
79 | public Text(final Text o) { |
80 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
81 | super(); |
82 | if (o == null) { |
83 | throw new NullPointerException("Cannot create a copy of 'Text' from 'null'."); |
84 | } |
85 | // CBuiltinLeafInfo: java.lang.String |
86 | this.value = o.getValue(); |
87 | // CBuiltinLeafInfo: java.lang.String |
88 | this.language = o.getLanguage(); |
89 | } |
90 | |
91 | /** |
92 | * Gets the value of the value property. |
93 | * |
94 | * @return |
95 | * possible object is |
96 | * {@link String } |
97 | * |
98 | */ |
99 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
100 | public String getValue() { |
101 | return value; |
102 | } |
103 | |
104 | /** |
105 | * Sets the value of the value property. |
106 | * |
107 | * @param value |
108 | * allowed object is |
109 | * {@link String } |
110 | * |
111 | */ |
112 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
113 | public void setValue(String value) { |
114 | this.value = value; |
115 | } |
116 | |
117 | /** |
118 | * The language key of this text. |
119 | * |
120 | * @return |
121 | * possible object is |
122 | * {@link String } |
123 | * |
124 | */ |
125 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
126 | public String getLanguage() { |
127 | return language; |
128 | } |
129 | |
130 | /** |
131 | * Sets the value of the language property. |
132 | * |
133 | * @param value |
134 | * allowed object is |
135 | * {@link String } |
136 | * |
137 | */ |
138 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
139 | public void setLanguage(String value) { |
140 | this.language = value; |
141 | } |
142 | |
143 | /** |
144 | * Creates and returns a deep copy of this object. |
145 | * |
146 | * |
147 | * @return |
148 | * A deep copy of this object. |
149 | */ |
150 | @Override |
151 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-02-03T01:25:12+00:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
152 | public Text clone() { |
153 | // CC-XJC Version 1.2 Build 2009-11-15T21:50:02+0000 |
154 | return new Text(this); |
155 | } |
156 | |
157 | } |