]> gerrit.simantics Code Review - simantics/interop.git/blob - org.simantics.xml.sax/src/org/w3/_2001/xmlschema/Attribute.java
XML Schema converter
[simantics/interop.git] / org.simantics.xml.sax / src / org / w3 / _2001 / xmlschema / Attribute.java
1 //\r
2 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 \r
3 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> \r
4 // Any modifications to this file will be lost upon recompilation of the source schema. \r
5 // Generated on: 2015.06.17 at 02:58:58 PM EEST \r
6 //\r
7 \r
8 \r
9 package org.w3._2001.xmlschema;\r
10 \r
11 import javax.xml.bind.annotation.XmlAccessType;\r
12 import javax.xml.bind.annotation.XmlAccessorType;\r
13 import javax.xml.bind.annotation.XmlAttribute;\r
14 import javax.xml.bind.annotation.XmlSchemaType;\r
15 import javax.xml.bind.annotation.XmlSeeAlso;\r
16 import javax.xml.bind.annotation.XmlType;\r
17 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;\r
18 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;\r
19 import javax.xml.namespace.QName;\r
20 \r
21 \r
22 /**\r
23  * <p>Java class for attribute complex type.\r
24  * \r
25  * <p>The following schema fragment specifies the expected content contained within this class.\r
26  * \r
27  * <pre>\r
28  * &lt;complexType name="attribute">\r
29  *   &lt;complexContent>\r
30  *     &lt;extension base="{http://www.w3.org/2001/XMLSchema}annotated">\r
31  *       &lt;sequence>\r
32  *         &lt;element name="simpleType" type="{http://www.w3.org/2001/XMLSchema}localSimpleType" minOccurs="0"/>\r
33  *       &lt;/sequence>\r
34  *       &lt;attGroup ref="{http://www.w3.org/2001/XMLSchema}defRef"/>\r
35  *       &lt;attribute name="type" type="{http://www.w3.org/2001/XMLSchema}QName" />\r
36  *       &lt;attribute name="use" default="optional">\r
37  *         &lt;simpleType>\r
38  *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">\r
39  *             &lt;enumeration value="prohibited"/>\r
40  *             &lt;enumeration value="optional"/>\r
41  *             &lt;enumeration value="required"/>\r
42  *           &lt;/restriction>\r
43  *         &lt;/simpleType>\r
44  *       &lt;/attribute>\r
45  *       &lt;attribute name="default" type="{http://www.w3.org/2001/XMLSchema}string" />\r
46  *       &lt;attribute name="fixed" type="{http://www.w3.org/2001/XMLSchema}string" />\r
47  *       &lt;attribute name="form" type="{http://www.w3.org/2001/XMLSchema}formChoice" />\r
48  *       &lt;anyAttribute processContents='lax' namespace='##other'/>\r
49  *     &lt;/extension>\r
50  *   &lt;/complexContent>\r
51  * &lt;/complexType>\r
52  * </pre>\r
53  * \r
54  * \r
55  */\r
56 @XmlAccessorType(XmlAccessType.FIELD)\r
57 @XmlType(name = "attribute", propOrder = {\r
58     "simpleType"\r
59 })\r
60 @XmlSeeAlso({\r
61     TopLevelAttribute.class\r
62 })\r
63 public class Attribute\r
64     extends Annotated\r
65 {\r
66 \r
67     protected LocalSimpleType simpleType;\r
68     @XmlAttribute(name = "type")\r
69     protected QName type;\r
70     @XmlAttribute(name = "use")\r
71     @XmlJavaTypeAdapter(CollapsedStringAdapter.class)\r
72     protected String use;\r
73     @XmlAttribute(name = "default")\r
74     protected String _default;\r
75     @XmlAttribute(name = "fixed")\r
76     protected String fixed;\r
77     @XmlAttribute(name = "form")\r
78     protected FormChoice form;\r
79     @XmlAttribute(name = "name")\r
80     @XmlJavaTypeAdapter(CollapsedStringAdapter.class)\r
81     @XmlSchemaType(name = "NCName")\r
82     protected String name;\r
83     @XmlAttribute(name = "ref")\r
84     protected QName ref;\r
85 \r
86     /**\r
87      * Gets the value of the simpleType property.\r
88      * \r
89      * @return\r
90      *     possible object is\r
91      *     {@link LocalSimpleType }\r
92      *     \r
93      */\r
94     public LocalSimpleType getSimpleType() {\r
95         return simpleType;\r
96     }\r
97 \r
98     /**\r
99      * Sets the value of the simpleType property.\r
100      * \r
101      * @param value\r
102      *     allowed object is\r
103      *     {@link LocalSimpleType }\r
104      *     \r
105      */\r
106     public void setSimpleType(LocalSimpleType value) {\r
107         this.simpleType = value;\r
108     }\r
109 \r
110     /**\r
111      * Gets the value of the type property.\r
112      * \r
113      * @return\r
114      *     possible object is\r
115      *     {@link QName }\r
116      *     \r
117      */\r
118     public QName getType() {\r
119         return type;\r
120     }\r
121 \r
122     /**\r
123      * Sets the value of the type property.\r
124      * \r
125      * @param value\r
126      *     allowed object is\r
127      *     {@link QName }\r
128      *     \r
129      */\r
130     public void setType(QName value) {\r
131         this.type = value;\r
132     }\r
133 \r
134     /**\r
135      * Gets the value of the use property.\r
136      * \r
137      * @return\r
138      *     possible object is\r
139      *     {@link String }\r
140      *     \r
141      */\r
142     public String getUse() {\r
143         if (use == null) {\r
144             return "optional";\r
145         } else {\r
146             return use;\r
147         }\r
148     }\r
149 \r
150     /**\r
151      * Sets the value of the use property.\r
152      * \r
153      * @param value\r
154      *     allowed object is\r
155      *     {@link String }\r
156      *     \r
157      */\r
158     public void setUse(String value) {\r
159         this.use = value;\r
160     }\r
161 \r
162     /**\r
163      * Gets the value of the default property.\r
164      * \r
165      * @return\r
166      *     possible object is\r
167      *     {@link String }\r
168      *     \r
169      */\r
170     public String getDefault() {\r
171         return _default;\r
172     }\r
173 \r
174     /**\r
175      * Sets the value of the default property.\r
176      * \r
177      * @param value\r
178      *     allowed object is\r
179      *     {@link String }\r
180      *     \r
181      */\r
182     public void setDefault(String value) {\r
183         this._default = value;\r
184     }\r
185 \r
186     /**\r
187      * Gets the value of the fixed property.\r
188      * \r
189      * @return\r
190      *     possible object is\r
191      *     {@link String }\r
192      *     \r
193      */\r
194     public String getFixed() {\r
195         return fixed;\r
196     }\r
197 \r
198     /**\r
199      * Sets the value of the fixed property.\r
200      * \r
201      * @param value\r
202      *     allowed object is\r
203      *     {@link String }\r
204      *     \r
205      */\r
206     public void setFixed(String value) {\r
207         this.fixed = value;\r
208     }\r
209 \r
210     /**\r
211      * Gets the value of the form property.\r
212      * \r
213      * @return\r
214      *     possible object is\r
215      *     {@link FormChoice }\r
216      *     \r
217      */\r
218     public FormChoice getForm() {\r
219         return form;\r
220     }\r
221 \r
222     /**\r
223      * Sets the value of the form property.\r
224      * \r
225      * @param value\r
226      *     allowed object is\r
227      *     {@link FormChoice }\r
228      *     \r
229      */\r
230     public void setForm(FormChoice value) {\r
231         this.form = value;\r
232     }\r
233 \r
234     /**\r
235      * Gets the value of the name property.\r
236      * \r
237      * @return\r
238      *     possible object is\r
239      *     {@link String }\r
240      *     \r
241      */\r
242     public String getName() {\r
243         return name;\r
244     }\r
245 \r
246     /**\r
247      * Sets the value of the name property.\r
248      * \r
249      * @param value\r
250      *     allowed object is\r
251      *     {@link String }\r
252      *     \r
253      */\r
254     public void setName(String value) {\r
255         this.name = value;\r
256     }\r
257 \r
258     /**\r
259      * Gets the value of the ref property.\r
260      * \r
261      * @return\r
262      *     possible object is\r
263      *     {@link QName }\r
264      *     \r
265      */\r
266     public QName getRef() {\r
267         return ref;\r
268     }\r
269 \r
270     /**\r
271      * Sets the value of the ref property.\r
272      * \r
273      * @param value\r
274      *     allowed object is\r
275      *     {@link QName }\r
276      *     \r
277      */\r
278     public void setRef(QName value) {\r
279         this.ref = value;\r
280     }\r
281 \r
282 }\r