source: trunk/docx4j/src/main/java/org/docx4j/wml/CTOdso.java @ 359

Revision 359, 15.9 KB checked in by jharrop, 4 years ago (diff)

Change CT_FldChar to FldChar?;
Style is freestanding, rather than an inner class of Styles.
(Other changes largely whitespace in license header)

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.wml;
23
24import java.math.BigInteger;
25import java.util.ArrayList;
26import java.util.List;
27import javax.xml.bind.Unmarshaller;
28import javax.xml.bind.annotation.XmlAccessType;
29import javax.xml.bind.annotation.XmlAccessorType;
30import javax.xml.bind.annotation.XmlAttribute;
31import javax.xml.bind.annotation.XmlTransient;
32import javax.xml.bind.annotation.XmlType;
33import org.jvnet.jaxb2_commons.ppp.Child;
34
35
36/**
37 * <p>Java class for CT_Odso complex type.
38 *
39 * <p>The following schema fragment specifies the expected content contained within this class.
40 *
41 * <pre>
42 * &lt;complexType name="CT_Odso">
43 *   &lt;complexContent>
44 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
45 *       &lt;sequence>
46 *         &lt;element name="udl" minOccurs="0">
47 *           &lt;complexType>
48 *             &lt;complexContent>
49 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
50 *                 &lt;attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
51 *               &lt;/restriction>
52 *             &lt;/complexContent>
53 *           &lt;/complexType>
54 *         &lt;/element>
55 *         &lt;element name="table" minOccurs="0">
56 *           &lt;complexType>
57 *             &lt;complexContent>
58 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
59 *                 &lt;attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
60 *               &lt;/restriction>
61 *             &lt;/complexContent>
62 *           &lt;/complexType>
63 *         &lt;/element>
64 *         &lt;element name="src" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Rel" minOccurs="0"/>
65 *         &lt;element name="colDelim" minOccurs="0">
66 *           &lt;complexType>
67 *             &lt;complexContent>
68 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
69 *                 &lt;attribute name="val" use="required">
70 *                   &lt;simpleType>
71 *                     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}integer">
72 *                     &lt;/restriction>
73 *                   &lt;/simpleType>
74 *                 &lt;/attribute>
75 *               &lt;/restriction>
76 *             &lt;/complexContent>
77 *           &lt;/complexType>
78 *         &lt;/element>
79 *         &lt;element name="type" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_MailMergeSourceType" minOccurs="0"/>
80 *         &lt;element name="fHdr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
81 *         &lt;element name="fieldMapData" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_OdsoFieldMapData" maxOccurs="unbounded" minOccurs="0"/>
82 *         &lt;element name="recipientData" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Rel" maxOccurs="unbounded" minOccurs="0"/>
83 *       &lt;/sequence>
84 *     &lt;/restriction>
85 *   &lt;/complexContent>
86 * &lt;/complexType>
87 * </pre>
88 *
89 *
90 */
91@XmlAccessorType(XmlAccessType.FIELD)
92@XmlType(name = "CT_Odso", propOrder = {
93    "udl",
94    "table",
95    "src",
96    "colDelim",
97    "type",
98    "fHdr",
99    "fieldMapData",
100    "recipientData"
101})
102public class CTOdso
103    implements Child
104{
105
106    protected CTOdso.Udl udl;
107    protected CTOdso.Table table;
108    protected CTRel src;
109    protected CTOdso.ColDelim colDelim;
110    protected CTMailMergeSourceType type;
111    protected BooleanDefaultTrue fHdr;
112    protected List<CTOdsoFieldMapData> fieldMapData;
113    protected List<CTRel> recipientData;
114    @XmlTransient
115    private Object parent;
116
117    /**
118     * Gets the value of the udl property.
119     *
120     * @return
121     *     possible object is
122     *     {@link CTOdso.Udl }
123     *     
124     */
125    public CTOdso.Udl getUdl() {
126        return udl;
127    }
128
129    /**
130     * Sets the value of the udl property.
131     *
132     * @param value
133     *     allowed object is
134     *     {@link CTOdso.Udl }
135     *     
136     */
137    public void setUdl(CTOdso.Udl value) {
138        this.udl = value;
139    }
140
141    /**
142     * Gets the value of the table property.
143     *
144     * @return
145     *     possible object is
146     *     {@link CTOdso.Table }
147     *     
148     */
149    public CTOdso.Table getTable() {
150        return table;
151    }
152
153    /**
154     * Sets the value of the table property.
155     *
156     * @param value
157     *     allowed object is
158     *     {@link CTOdso.Table }
159     *     
160     */
161    public void setTable(CTOdso.Table value) {
162        this.table = value;
163    }
164
165    /**
166     * Gets the value of the src property.
167     *
168     * @return
169     *     possible object is
170     *     {@link CTRel }
171     *     
172     */
173    public CTRel getSrc() {
174        return src;
175    }
176
177    /**
178     * Sets the value of the src property.
179     *
180     * @param value
181     *     allowed object is
182     *     {@link CTRel }
183     *     
184     */
185    public void setSrc(CTRel value) {
186        this.src = value;
187    }
188
189    /**
190     * Gets the value of the colDelim property.
191     *
192     * @return
193     *     possible object is
194     *     {@link CTOdso.ColDelim }
195     *     
196     */
197    public CTOdso.ColDelim getColDelim() {
198        return colDelim;
199    }
200
201    /**
202     * Sets the value of the colDelim property.
203     *
204     * @param value
205     *     allowed object is
206     *     {@link CTOdso.ColDelim }
207     *     
208     */
209    public void setColDelim(CTOdso.ColDelim value) {
210        this.colDelim = value;
211    }
212
213    /**
214     * Gets the value of the type property.
215     *
216     * @return
217     *     possible object is
218     *     {@link CTMailMergeSourceType }
219     *     
220     */
221    public CTMailMergeSourceType getType() {
222        return type;
223    }
224
225    /**
226     * Sets the value of the type property.
227     *
228     * @param value
229     *     allowed object is
230     *     {@link CTMailMergeSourceType }
231     *     
232     */
233    public void setType(CTMailMergeSourceType value) {
234        this.type = value;
235    }
236
237    /**
238     * Gets the value of the fHdr property.
239     *
240     * @return
241     *     possible object is
242     *     {@link BooleanDefaultTrue }
243     *     
244     */
245    public BooleanDefaultTrue getFHdr() {
246        return fHdr;
247    }
248
249    /**
250     * Sets the value of the fHdr property.
251     *
252     * @param value
253     *     allowed object is
254     *     {@link BooleanDefaultTrue }
255     *     
256     */
257    public void setFHdr(BooleanDefaultTrue value) {
258        this.fHdr = value;
259    }
260
261    /**
262     * Gets the value of the fieldMapData property.
263     *
264     * <p>
265     * This accessor method returns a reference to the live list,
266     * not a snapshot. Therefore any modification you make to the
267     * returned list will be present inside the JAXB object.
268     * This is why there is not a <CODE>set</CODE> method for the fieldMapData property.
269     *
270     * <p>
271     * For example, to add a new item, do as follows:
272     * <pre>
273     *    getFieldMapData().add(newItem);
274     * </pre>
275     *
276     *
277     * <p>
278     * Objects of the following type(s) are allowed in the list
279     * {@link CTOdsoFieldMapData }
280     *
281     *
282     */
283    public List<CTOdsoFieldMapData> getFieldMapData() {
284        if (fieldMapData == null) {
285            fieldMapData = new ArrayList<CTOdsoFieldMapData>();
286        }
287        return this.fieldMapData;
288    }
289
290    /**
291     * Gets the value of the recipientData property.
292     *
293     * <p>
294     * This accessor method returns a reference to the live list,
295     * not a snapshot. Therefore any modification you make to the
296     * returned list will be present inside the JAXB object.
297     * This is why there is not a <CODE>set</CODE> method for the recipientData property.
298     *
299     * <p>
300     * For example, to add a new item, do as follows:
301     * <pre>
302     *    getRecipientData().add(newItem);
303     * </pre>
304     *
305     *
306     * <p>
307     * Objects of the following type(s) are allowed in the list
308     * {@link CTRel }
309     *
310     *
311     */
312    public List<CTRel> getRecipientData() {
313        if (recipientData == null) {
314            recipientData = new ArrayList<CTRel>();
315        }
316        return this.recipientData;
317    }
318
319    /**
320     * Gets the parent object in the object tree representing the unmarshalled xml document.
321     *
322     * @return
323     *     The parent object.
324     */
325    public Object getParent() {
326        return this.parent;
327    }
328
329    public void setParent(Object parent) {
330        this.parent = parent;
331    }
332
333    /**
334     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
335     *
336     * @param parent
337     *     The parent object in the object tree.
338     * @param unmarshaller
339     *     The unmarshaller that generated the instance.
340     */
341    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
342        setParent(parent);
343    }
344
345
346    /**
347     * <p>Java class for anonymous complex type.
348     *
349     * <p>The following schema fragment specifies the expected content contained within this class.
350     *
351     * <pre>
352     * &lt;complexType>
353     *   &lt;complexContent>
354     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
355     *       &lt;attribute name="val" use="required">
356     *         &lt;simpleType>
357     *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}integer">
358     *           &lt;/restriction>
359     *         &lt;/simpleType>
360     *       &lt;/attribute>
361     *     &lt;/restriction>
362     *   &lt;/complexContent>
363     * &lt;/complexType>
364     * </pre>
365     *
366     *
367     */
368    @XmlAccessorType(XmlAccessType.FIELD)
369    @XmlType(name = "")
370    public static class ColDelim
371        implements Child
372    {
373
374        @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
375        protected BigInteger val;
376        @XmlTransient
377        private Object parent;
378
379        /**
380         * Gets the value of the val property.
381         *
382         * @return
383         *     possible object is
384         *     {@link BigInteger }
385         *     
386         */
387        public BigInteger getVal() {
388            return val;
389        }
390
391        /**
392         * Sets the value of the val property.
393         *
394         * @param value
395         *     allowed object is
396         *     {@link BigInteger }
397         *     
398         */
399        public void setVal(BigInteger value) {
400            this.val = value;
401        }
402
403        /**
404         * Gets the parent object in the object tree representing the unmarshalled xml document.
405         *
406         * @return
407         *     The parent object.
408         */
409        public Object getParent() {
410            return this.parent;
411        }
412
413        public void setParent(Object parent) {
414            this.parent = parent;
415        }
416
417        /**
418         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
419         *
420         * @param parent
421         *     The parent object in the object tree.
422         * @param unmarshaller
423         *     The unmarshaller that generated the instance.
424         */
425        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
426            setParent(parent);
427        }
428
429    }
430
431
432    /**
433     * <p>Java class for anonymous complex type.
434     *
435     * <p>The following schema fragment specifies the expected content contained within this class.
436     *
437     * <pre>
438     * &lt;complexType>
439     *   &lt;complexContent>
440     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
441     *       &lt;attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
442     *     &lt;/restriction>
443     *   &lt;/complexContent>
444     * &lt;/complexType>
445     * </pre>
446     *
447     *
448     */
449    @XmlAccessorType(XmlAccessType.FIELD)
450    @XmlType(name = "")
451    public static class Table
452        implements Child
453    {
454
455        @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
456        protected String val;
457        @XmlTransient
458        private Object parent;
459
460        /**
461         * Gets the value of the val property.
462         *
463         * @return
464         *     possible object is
465         *     {@link String }
466         *     
467         */
468        public String getVal() {
469            return val;
470        }
471
472        /**
473         * Sets the value of the val property.
474         *
475         * @param value
476         *     allowed object is
477         *     {@link String }
478         *     
479         */
480        public void setVal(String value) {
481            this.val = value;
482        }
483
484        /**
485         * Gets the parent object in the object tree representing the unmarshalled xml document.
486         *
487         * @return
488         *     The parent object.
489         */
490        public Object getParent() {
491            return this.parent;
492        }
493
494        public void setParent(Object parent) {
495            this.parent = parent;
496        }
497
498        /**
499         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
500         *
501         * @param parent
502         *     The parent object in the object tree.
503         * @param unmarshaller
504         *     The unmarshaller that generated the instance.
505         */
506        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
507            setParent(parent);
508        }
509
510    }
511
512
513    /**
514     * <p>Java class for anonymous complex type.
515     *
516     * <p>The following schema fragment specifies the expected content contained within this class.
517     *
518     * <pre>
519     * &lt;complexType>
520     *   &lt;complexContent>
521     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
522     *       &lt;attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
523     *     &lt;/restriction>
524     *   &lt;/complexContent>
525     * &lt;/complexType>
526     * </pre>
527     *
528     *
529     */
530    @XmlAccessorType(XmlAccessType.FIELD)
531    @XmlType(name = "")
532    public static class Udl
533        implements Child
534    {
535
536        @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
537        protected String val;
538        @XmlTransient
539        private Object parent;
540
541        /**
542         * Gets the value of the val property.
543         *
544         * @return
545         *     possible object is
546         *     {@link String }
547         *     
548         */
549        public String getVal() {
550            return val;
551        }
552
553        /**
554         * Sets the value of the val property.
555         *
556         * @param value
557         *     allowed object is
558         *     {@link String }
559         *     
560         */
561        public void setVal(String value) {
562            this.val = value;
563        }
564
565        /**
566         * Gets the parent object in the object tree representing the unmarshalled xml document.
567         *
568         * @return
569         *     The parent object.
570         */
571        public Object getParent() {
572            return this.parent;
573        }
574
575        public void setParent(Object parent) {
576            this.parent = parent;
577        }
578
579        /**
580         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
581         *
582         * @param parent
583         *     The parent object in the object tree.
584         * @param unmarshaller
585         *     The unmarshaller that generated the instance.
586         */
587        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
588            setParent(parent);
589        }
590
591    }
592
593}
Note: See TracBrowser for help on using the repository browser.