source: trunk/docx4j/src/main/java/org/docx4j/vml/ObjectFactory.java @ 1461

Revision 1461, 14.2 KB checked in by jharrop, 14 months ago (diff)

VML generated classes, based on ECMA 376 1ed (rather than earlier draft).
Includes @XmlType? namespace annotations from revs 940 and 1129.

Line 
1/*
2 *  Copyright 2007-2008, Plutext Pty Ltd.
3 *   
4 *  This file is part of docx4j.
5
6    docx4j is licensed under the Apache License, Version 2.0 (the "License");
7    you may not use this file except in compliance with the License.
8
9    You may obtain a copy of the License at
10
11        http://www.apache.org/licenses/LICENSE-2.0
12
13    Unless required by applicable law or agreed to in writing, software
14    distributed under the License is distributed on an "AS IS" BASIS,
15    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16    See the License for the specific language governing permissions and
17    limitations under the License.
18
19 */
20
21
22package org.docx4j.vml;
23
24import javax.xml.bind.JAXBElement;
25import javax.xml.bind.annotation.XmlElementDecl;
26import javax.xml.bind.annotation.XmlRegistry;
27import javax.xml.namespace.QName;
28
29
30/**
31 * This object contains factory methods for each
32 * Java content interface and Java element interface
33 * generated in the org.docx4j.vml package.
34 * <p>An ObjectFactory allows you to programatically
35 * construct new instances of the Java representation
36 * for XML content. The Java representation of XML
37 * content can consist of schema derived interfaces
38 * and classes representing the binding of schema
39 * type definitions, element declarations and model
40 * groups.  Factory methods for each of these are
41 * provided in this class.
42 *
43 */
44@XmlRegistry
45public class ObjectFactory {
46
47    private final static QName _Roundrect_QNAME = new QName("urn:schemas-microsoft-com:vml", "roundrect");
48    private final static QName _Shape_QNAME = new QName("urn:schemas-microsoft-com:vml", "shape");
49    private final static QName _Image_QNAME = new QName("urn:schemas-microsoft-com:vml", "image");
50    private final static QName _Rect_QNAME = new QName("urn:schemas-microsoft-com:vml", "rect");
51    private final static QName _Stroke_QNAME = new QName("urn:schemas-microsoft-com:vml", "stroke");
52    private final static QName _Shadow_QNAME = new QName("urn:schemas-microsoft-com:vml", "shadow");
53    private final static QName _Arc_QNAME = new QName("urn:schemas-microsoft-com:vml", "arc");
54    private final static QName _Shapetype_QNAME = new QName("urn:schemas-microsoft-com:vml", "shapetype");
55    private final static QName _Imagedata_QNAME = new QName("urn:schemas-microsoft-com:vml", "imagedata");
56    private final static QName _Oval_QNAME = new QName("urn:schemas-microsoft-com:vml", "oval");
57    private final static QName _Curve_QNAME = new QName("urn:schemas-microsoft-com:vml", "curve");
58    private final static QName _Formulas_QNAME = new QName("urn:schemas-microsoft-com:vml", "formulas");
59    private final static QName _Textbox_QNAME = new QName("urn:schemas-microsoft-com:vml", "textbox");
60    private final static QName _Background_QNAME = new QName("urn:schemas-microsoft-com:vml", "background");
61    private final static QName _Handles_QNAME = new QName("urn:schemas-microsoft-com:vml", "handles");
62    private final static QName _Group_QNAME = new QName("urn:schemas-microsoft-com:vml", "group");
63    private final static QName _Fill_QNAME = new QName("urn:schemas-microsoft-com:vml", "fill");
64    private final static QName _Textpath_QNAME = new QName("urn:schemas-microsoft-com:vml", "textpath");
65    private final static QName _Polyline_QNAME = new QName("urn:schemas-microsoft-com:vml", "polyline");
66    private final static QName _Path_QNAME = new QName("urn:schemas-microsoft-com:vml", "path");
67    private final static QName _Line_QNAME = new QName("urn:schemas-microsoft-com:vml", "line");
68
69    /**
70     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.docx4j.vml
71     *
72     */
73    public ObjectFactory() {
74    }
75
76    /**
77     * Create an instance of {@link CTPath }
78     *
79     */
80    public CTPath createCTPath() {
81        return new CTPath();
82    }
83
84    /**
85     * Create an instance of {@link CTH }
86     *
87     */
88    public CTH createCTH() {
89        return new CTH();
90    }
91
92    /**
93     * Create an instance of {@link CTShadow }
94     *
95     */
96    public CTShadow createCTShadow() {
97        return new CTShadow();
98    }
99
100    /**
101     * Create an instance of {@link CTTextPath }
102     *
103     */
104    public CTTextPath createCTTextPath() {
105        return new CTTextPath();
106    }
107
108    /**
109     * Create an instance of {@link CTImageData }
110     *
111     */
112    public CTImageData createCTImageData() {
113        return new CTImageData();
114    }
115
116    /**
117     * Create an instance of {@link CTFill }
118     *
119     */
120    public CTFill createCTFill() {
121        return new CTFill();
122    }
123
124    /**
125     * Create an instance of {@link CTPolyLine }
126     *
127     */
128    public CTPolyLine createCTPolyLine() {
129        return new CTPolyLine();
130    }
131
132    /**
133     * Create an instance of {@link CTCurve }
134     *
135     */
136    public CTCurve createCTCurve() {
137        return new CTCurve();
138    }
139
140    /**
141     * Create an instance of {@link CTGroup }
142     *
143     */
144    public CTGroup createCTGroup() {
145        return new CTGroup();
146    }
147
148    /**
149     * Create an instance of {@link CTBackground }
150     *
151     */
152    public CTBackground createCTBackground() {
153        return new CTBackground();
154    }
155
156    /**
157     * Create an instance of {@link CTStroke }
158     *
159     */
160    public CTStroke createCTStroke() {
161        return new CTStroke();
162    }
163
164    /**
165     * Create an instance of {@link CTRect }
166     *
167     */
168    public CTRect createCTRect() {
169        return new CTRect();
170    }
171
172    /**
173     * Create an instance of {@link CTRoundRect }
174     *
175     */
176    public CTRoundRect createCTRoundRect() {
177        return new CTRoundRect();
178    }
179
180    /**
181     * Create an instance of {@link CTImage }
182     *
183     */
184    public CTImage createCTImage() {
185        return new CTImage();
186    }
187
188    /**
189     * Create an instance of {@link CTLine }
190     *
191     */
192    public CTLine createCTLine() {
193        return new CTLine();
194    }
195
196    /**
197     * Create an instance of {@link CTOval }
198     *
199     */
200    public CTOval createCTOval() {
201        return new CTOval();
202    }
203
204    /**
205     * Create an instance of {@link CTHandles }
206     *
207     */
208    public CTHandles createCTHandles() {
209        return new CTHandles();
210    }
211
212    /**
213     * Create an instance of {@link CTTextbox }
214     *
215     */
216    public CTTextbox createCTTextbox() {
217        return new CTTextbox();
218    }
219
220    /**
221     * Create an instance of {@link CTShapetype }
222     *
223     */
224    public CTShapetype createCTShapetype() {
225        return new CTShapetype();
226    }
227
228    /**
229     * Create an instance of {@link CTShape }
230     *
231     */
232    public CTShape createCTShape() {
233        return new CTShape();
234    }
235
236    /**
237     * Create an instance of {@link CTF }
238     *
239     */
240    public CTF createCTF() {
241        return new CTF();
242    }
243
244    /**
245     * Create an instance of {@link CTFormulas }
246     *
247     */
248    public CTFormulas createCTFormulas() {
249        return new CTFormulas();
250    }
251
252    /**
253     * Create an instance of {@link CTArc }
254     *
255     */
256    public CTArc createCTArc() {
257        return new CTArc();
258    }
259
260    /**
261     * Create an instance of {@link JAXBElement }{@code <}{@link CTRoundRect }{@code >}}
262     *
263     */
264    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:vml", name = "roundrect")
265    public JAXBElement<CTRoundRect> createRoundrect(CTRoundRect value) {
266        return new JAXBElement<CTRoundRect>(_Roundrect_QNAME, CTRoundRect.class, null, value);
267    }
268
269    /**
270     * Create an instance of {@link JAXBElement }{@code <}{@link CTShape }{@code >}}
271     *
272     */
273    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:vml", name = "shape")
274    public JAXBElement<CTShape> createShape(CTShape value) {
275        return new JAXBElement<CTShape>(_Shape_QNAME, CTShape.class, null, value);
276    }
277
278    /**
279     * Create an instance of {@link JAXBElement }{@code <}{@link CTImage }{@code >}}
280     *
281     */
282    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:vml", name = "image")
283    public JAXBElement<CTImage> createImage(CTImage value) {
284        return new JAXBElement<CTImage>(_Image_QNAME, CTImage.class, null, value);
285    }
286
287    /**
288     * Create an instance of {@link JAXBElement }{@code <}{@link CTRect }{@code >}}
289     *
290     */
291    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:vml", name = "rect")
292    public JAXBElement<CTRect> createRect(CTRect value) {
293        return new JAXBElement<CTRect>(_Rect_QNAME, CTRect.class, null, value);
294    }
295
296    /**
297     * Create an instance of {@link JAXBElement }{@code <}{@link CTStroke }{@code >}}
298     *
299     */
300    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:vml", name = "stroke")
301    public JAXBElement<CTStroke> createStroke(CTStroke value) {
302        return new JAXBElement<CTStroke>(_Stroke_QNAME, CTStroke.class, null, value);
303    }
304
305    /**
306     * Create an instance of {@link JAXBElement }{@code <}{@link CTShadow }{@code >}}
307     *
308     */
309    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:vml", name = "shadow")
310    public JAXBElement<CTShadow> createShadow(CTShadow value) {
311        return new JAXBElement<CTShadow>(_Shadow_QNAME, CTShadow.class, null, value);
312    }
313
314    /**
315     * Create an instance of {@link JAXBElement }{@code <}{@link CTArc }{@code >}}
316     *
317     */
318    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:vml", name = "arc")
319    public JAXBElement<CTArc> createArc(CTArc value) {
320        return new JAXBElement<CTArc>(_Arc_QNAME, CTArc.class, null, value);
321    }
322
323    /**
324     * Create an instance of {@link JAXBElement }{@code <}{@link CTShapetype }{@code >}}
325     *
326     */
327    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:vml", name = "shapetype")
328    public JAXBElement<CTShapetype> createShapetype(CTShapetype value) {
329        return new JAXBElement<CTShapetype>(_Shapetype_QNAME, CTShapetype.class, null, value);
330    }
331
332    /**
333     * Create an instance of {@link JAXBElement }{@code <}{@link CTImageData }{@code >}}
334     *
335     */
336    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:vml", name = "imagedata")
337    public JAXBElement<CTImageData> createImagedata(CTImageData value) {
338        return new JAXBElement<CTImageData>(_Imagedata_QNAME, CTImageData.class, null, value);
339    }
340
341    /**
342     * Create an instance of {@link JAXBElement }{@code <}{@link CTOval }{@code >}}
343     *
344     */
345    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:vml", name = "oval")
346    public JAXBElement<CTOval> createOval(CTOval value) {
347        return new JAXBElement<CTOval>(_Oval_QNAME, CTOval.class, null, value);
348    }
349
350    /**
351     * Create an instance of {@link JAXBElement }{@code <}{@link CTCurve }{@code >}}
352     *
353     */
354    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:vml", name = "curve")
355    public JAXBElement<CTCurve> createCurve(CTCurve value) {
356        return new JAXBElement<CTCurve>(_Curve_QNAME, CTCurve.class, null, value);
357    }
358
359    /**
360     * Create an instance of {@link JAXBElement }{@code <}{@link CTFormulas }{@code >}}
361     *
362     */
363    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:vml", name = "formulas")
364    public JAXBElement<CTFormulas> createFormulas(CTFormulas value) {
365        return new JAXBElement<CTFormulas>(_Formulas_QNAME, CTFormulas.class, null, value);
366    }
367
368    /**
369     * Create an instance of {@link JAXBElement }{@code <}{@link CTTextbox }{@code >}}
370     *
371     */
372    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:vml", name = "textbox")
373    public JAXBElement<CTTextbox> createTextbox(CTTextbox value) {
374        return new JAXBElement<CTTextbox>(_Textbox_QNAME, CTTextbox.class, null, value);
375    }
376
377    /**
378     * Create an instance of {@link JAXBElement }{@code <}{@link CTBackground }{@code >}}
379     *
380     */
381    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:vml", name = "background")
382    public JAXBElement<CTBackground> createBackground(CTBackground value) {
383        return new JAXBElement<CTBackground>(_Background_QNAME, CTBackground.class, null, value);
384    }
385
386    /**
387     * Create an instance of {@link JAXBElement }{@code <}{@link CTHandles }{@code >}}
388     *
389     */
390    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:vml", name = "handles")
391    public JAXBElement<CTHandles> createHandles(CTHandles value) {
392        return new JAXBElement<CTHandles>(_Handles_QNAME, CTHandles.class, null, value);
393    }
394
395    /**
396     * Create an instance of {@link JAXBElement }{@code <}{@link CTGroup }{@code >}}
397     *
398     */
399    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:vml", name = "group")
400    public JAXBElement<CTGroup> createGroup(CTGroup value) {
401        return new JAXBElement<CTGroup>(_Group_QNAME, CTGroup.class, null, value);
402    }
403
404    /**
405     * Create an instance of {@link JAXBElement }{@code <}{@link CTFill }{@code >}}
406     *
407     */
408    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:vml", name = "fill")
409    public JAXBElement<CTFill> createFill(CTFill value) {
410        return new JAXBElement<CTFill>(_Fill_QNAME, CTFill.class, null, value);
411    }
412
413    /**
414     * Create an instance of {@link JAXBElement }{@code <}{@link CTTextPath }{@code >}}
415     *
416     */
417    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:vml", name = "textpath")
418    public JAXBElement<CTTextPath> createTextpath(CTTextPath value) {
419        return new JAXBElement<CTTextPath>(_Textpath_QNAME, CTTextPath.class, null, value);
420    }
421
422    /**
423     * Create an instance of {@link JAXBElement }{@code <}{@link CTPolyLine }{@code >}}
424     *
425     */
426    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:vml", name = "polyline")
427    public JAXBElement<CTPolyLine> createPolyline(CTPolyLine value) {
428        return new JAXBElement<CTPolyLine>(_Polyline_QNAME, CTPolyLine.class, null, value);
429    }
430
431    /**
432     * Create an instance of {@link JAXBElement }{@code <}{@link CTPath }{@code >}}
433     *
434     */
435    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:vml", name = "path")
436    public JAXBElement<CTPath> createPath(CTPath value) {
437        return new JAXBElement<CTPath>(_Path_QNAME, CTPath.class, null, value);
438    }
439
440    /**
441     * Create an instance of {@link JAXBElement }{@code <}{@link CTLine }{@code >}}
442     *
443     */
444    @XmlElementDecl(namespace = "urn:schemas-microsoft-com:vml", name = "line")
445    public JAXBElement<CTLine> createLine(CTLine value) {
446        return new JAXBElement<CTLine>(_Line_QNAME, CTLine.class, null, value);
447    }
448
449}
Note: See TracBrowser for help on using the repository browser.