source: trunk/docx4j/src/main/java/org/docx4j/wml/CTTrPrBase.java @ 925

Revision 925, 16.0 KB checked in by jharrop, 3 years ago (diff)

Regenerated classes from wml.xsd, having added EG_MathContent back in to EG_RunLevelElements

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.JAXBElement;
28import javax.xml.bind.Unmarshaller;
29import javax.xml.bind.annotation.XmlAccessType;
30import javax.xml.bind.annotation.XmlAccessorType;
31import javax.xml.bind.annotation.XmlAttribute;
32import javax.xml.bind.annotation.XmlElementRef;
33import javax.xml.bind.annotation.XmlElementRefs;
34import javax.xml.bind.annotation.XmlTransient;
35import javax.xml.bind.annotation.XmlType;
36import org.jvnet.jaxb2_commons.ppp.Child;
37
38
39/**
40 * <p>Java class for CT_TrPrBase complex type.
41 *
42 * <p>The following schema fragment specifies the expected content contained within this class.
43 *
44 * <pre>
45 * &lt;complexType name="CT_TrPrBase">
46 *   &lt;complexContent>
47 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
48 *       &lt;choice maxOccurs="unbounded">
49 *         &lt;element name="cnfStyle" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Cnf" minOccurs="0"/>
50 *         &lt;element name="divId" minOccurs="0">
51 *           &lt;complexType>
52 *             &lt;complexContent>
53 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
54 *                 &lt;attribute name="val" use="required">
55 *                   &lt;simpleType>
56 *                     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}integer">
57 *                     &lt;/restriction>
58 *                   &lt;/simpleType>
59 *                 &lt;/attribute>
60 *               &lt;/restriction>
61 *             &lt;/complexContent>
62 *           &lt;/complexType>
63 *         &lt;/element>
64 *         &lt;element name="gridBefore" minOccurs="0">
65 *           &lt;complexType>
66 *             &lt;complexContent>
67 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
68 *                 &lt;attribute name="val" use="required">
69 *                   &lt;simpleType>
70 *                     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}integer">
71 *                     &lt;/restriction>
72 *                   &lt;/simpleType>
73 *                 &lt;/attribute>
74 *               &lt;/restriction>
75 *             &lt;/complexContent>
76 *           &lt;/complexType>
77 *         &lt;/element>
78 *         &lt;element name="gridAfter" minOccurs="0">
79 *           &lt;complexType>
80 *             &lt;complexContent>
81 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
82 *                 &lt;attribute name="val" use="required">
83 *                   &lt;simpleType>
84 *                     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}integer">
85 *                     &lt;/restriction>
86 *                   &lt;/simpleType>
87 *                 &lt;/attribute>
88 *               &lt;/restriction>
89 *             &lt;/complexContent>
90 *           &lt;/complexType>
91 *         &lt;/element>
92 *         &lt;element name="wBefore" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblWidth" minOccurs="0"/>
93 *         &lt;element name="wAfter" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblWidth" minOccurs="0"/>
94 *         &lt;element name="cantSplit" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
95 *         &lt;element name="trHeight" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Height" minOccurs="0"/>
96 *         &lt;element name="tblHeader" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
97 *         &lt;element name="tblCellSpacing" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblWidth" minOccurs="0"/>
98 *         &lt;element name="jc" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Jc" minOccurs="0"/>
99 *         &lt;element name="hidden" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
100 *       &lt;/choice>
101 *     &lt;/restriction>
102 *   &lt;/complexContent>
103 * &lt;/complexType>
104 * </pre>
105 *
106 *
107 */
108@XmlAccessorType(XmlAccessType.FIELD)
109@XmlType(name = "CT_TrPrBase", propOrder = {
110    "cnfStyleOrDivIdOrGridBefore"
111})
112public class CTTrPrBase
113    implements Child
114{
115
116    @XmlElementRefs({
117        @XmlElementRef(name = "gridAfter", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
118        @XmlElementRef(name = "cantSplit", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
119        @XmlElementRef(name = "wBefore", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
120        @XmlElementRef(name = "jc", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
121        @XmlElementRef(name = "cnfStyle", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
122        @XmlElementRef(name = "divId", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
123        @XmlElementRef(name = "gridBefore", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
124        @XmlElementRef(name = "hidden", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
125        @XmlElementRef(name = "trHeight", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
126        @XmlElementRef(name = "wAfter", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
127        @XmlElementRef(name = "tblHeader", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
128        @XmlElementRef(name = "tblCellSpacing", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class)
129    })
130    protected List<JAXBElement<?>> cnfStyleOrDivIdOrGridBefore;
131    @XmlTransient
132    private Object parent;
133
134    /**
135     * Gets the value of the cnfStyleOrDivIdOrGridBefore property.
136     *
137     * <p>
138     * This accessor method returns a reference to the live list,
139     * not a snapshot. Therefore any modification you make to the
140     * returned list will be present inside the JAXB object.
141     * This is why there is not a <CODE>set</CODE> method for the cnfStyleOrDivIdOrGridBefore property.
142     *
143     * <p>
144     * For example, to add a new item, do as follows:
145     * <pre>
146     *    getCnfStyleOrDivIdOrGridBefore().add(newItem);
147     * </pre>
148     *
149     *
150     * <p>
151     * Objects of the following type(s) are allowed in the list
152     * {@link JAXBElement }{@code <}{@link CTTrPrBase.GridAfter }{@code >}
153     * {@link JAXBElement }{@code <}{@link BooleanDefaultTrue }{@code >}
154     * {@link JAXBElement }{@code <}{@link TblWidth }{@code >}
155     * {@link JAXBElement }{@code <}{@link Jc }{@code >}
156     * {@link JAXBElement }{@code <}{@link CTCnf }{@code >}
157     * {@link JAXBElement }{@code <}{@link CTTrPrBase.DivId }{@code >}
158     * {@link JAXBElement }{@code <}{@link CTTrPrBase.GridBefore }{@code >}
159     * {@link JAXBElement }{@code <}{@link CTHeight }{@code >}
160     * {@link JAXBElement }{@code <}{@link BooleanDefaultTrue }{@code >}
161     * {@link JAXBElement }{@code <}{@link TblWidth }{@code >}
162     * {@link JAXBElement }{@code <}{@link TblWidth }{@code >}
163     * {@link JAXBElement }{@code <}{@link BooleanDefaultTrue }{@code >}
164     *
165     *
166     */
167    public List<JAXBElement<?>> getCnfStyleOrDivIdOrGridBefore() {
168        if (cnfStyleOrDivIdOrGridBefore == null) {
169            cnfStyleOrDivIdOrGridBefore = new ArrayList<JAXBElement<?>>();
170        }
171        return this.cnfStyleOrDivIdOrGridBefore;
172    }
173
174    /**
175     * Gets the parent object in the object tree representing the unmarshalled xml document.
176     *
177     * @return
178     *     The parent object.
179     */
180    public Object getParent() {
181        return this.parent;
182    }
183
184    public void setParent(Object parent) {
185        this.parent = parent;
186    }
187
188    /**
189     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
190     *
191     * @param parent
192     *     The parent object in the object tree.
193     * @param unmarshaller
194     *     The unmarshaller that generated the instance.
195     */
196    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
197        setParent(parent);
198    }
199
200
201    /**
202     * <p>Java class for anonymous complex type.
203     *
204     * <p>The following schema fragment specifies the expected content contained within this class.
205     *
206     * <pre>
207     * &lt;complexType>
208     *   &lt;complexContent>
209     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
210     *       &lt;attribute name="val" use="required">
211     *         &lt;simpleType>
212     *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}integer">
213     *           &lt;/restriction>
214     *         &lt;/simpleType>
215     *       &lt;/attribute>
216     *     &lt;/restriction>
217     *   &lt;/complexContent>
218     * &lt;/complexType>
219     * </pre>
220     *
221     *
222     */
223    @XmlAccessorType(XmlAccessType.FIELD)
224    @XmlType(name = "")
225    public static class DivId implements Child
226    {
227
228        @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
229        protected BigInteger val;
230        @XmlTransient
231        private Object parent;
232
233        /**
234         * Gets the value of the val property.
235         *
236         * @return
237         *     possible object is
238         *     {@link BigInteger }
239         *     
240         */
241        public BigInteger getVal() {
242            return val;
243        }
244
245        /**
246         * Sets the value of the val property.
247         *
248         * @param value
249         *     allowed object is
250         *     {@link BigInteger }
251         *     
252         */
253        public void setVal(BigInteger value) {
254            this.val = value;
255        }
256
257        /**
258         * Gets the parent object in the object tree representing the unmarshalled xml document.
259         *
260         * @return
261         *     The parent object.
262         */
263        public Object getParent() {
264            return this.parent;
265        }
266
267        public void setParent(Object parent) {
268            this.parent = parent;
269        }
270
271        /**
272         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
273         *
274         * @param parent
275         *     The parent object in the object tree.
276         * @param unmarshaller
277         *     The unmarshaller that generated the instance.
278         */
279        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
280            setParent(parent);
281        }
282
283    }
284
285
286    /**
287     * <p>Java class for anonymous complex type.
288     *
289     * <p>The following schema fragment specifies the expected content contained within this class.
290     *
291     * <pre>
292     * &lt;complexType>
293     *   &lt;complexContent>
294     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
295     *       &lt;attribute name="val" use="required">
296     *         &lt;simpleType>
297     *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}integer">
298     *           &lt;/restriction>
299     *         &lt;/simpleType>
300     *       &lt;/attribute>
301     *     &lt;/restriction>
302     *   &lt;/complexContent>
303     * &lt;/complexType>
304     * </pre>
305     *
306     *
307     */
308    @XmlAccessorType(XmlAccessType.FIELD)
309    @XmlType(name = "")
310    public static class GridAfter implements Child
311    {
312
313        @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
314        protected BigInteger val;
315        @XmlTransient
316        private Object parent;
317
318        /**
319         * Gets the value of the val property.
320         *
321         * @return
322         *     possible object is
323         *     {@link BigInteger }
324         *     
325         */
326        public BigInteger getVal() {
327            return val;
328        }
329
330        /**
331         * Sets the value of the val property.
332         *
333         * @param value
334         *     allowed object is
335         *     {@link BigInteger }
336         *     
337         */
338        public void setVal(BigInteger value) {
339            this.val = value;
340        }
341
342        /**
343         * Gets the parent object in the object tree representing the unmarshalled xml document.
344         *
345         * @return
346         *     The parent object.
347         */
348        public Object getParent() {
349            return this.parent;
350        }
351
352        public void setParent(Object parent) {
353            this.parent = parent;
354        }
355
356        /**
357         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
358         *
359         * @param parent
360         *     The parent object in the object tree.
361         * @param unmarshaller
362         *     The unmarshaller that generated the instance.
363         */
364        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
365            setParent(parent);
366        }
367
368    }
369
370
371    /**
372     * <p>Java class for anonymous complex type.
373     *
374     * <p>The following schema fragment specifies the expected content contained within this class.
375     *
376     * <pre>
377     * &lt;complexType>
378     *   &lt;complexContent>
379     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
380     *       &lt;attribute name="val" use="required">
381     *         &lt;simpleType>
382     *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}integer">
383     *           &lt;/restriction>
384     *         &lt;/simpleType>
385     *       &lt;/attribute>
386     *     &lt;/restriction>
387     *   &lt;/complexContent>
388     * &lt;/complexType>
389     * </pre>
390     *
391     *
392     */
393    @XmlAccessorType(XmlAccessType.FIELD)
394    @XmlType(name = "")
395    public static class GridBefore implements Child
396    {
397
398        @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
399        protected BigInteger val;
400        @XmlTransient
401        private Object parent;
402
403        /**
404         * Gets the value of the val property.
405         *
406         * @return
407         *     possible object is
408         *     {@link BigInteger }
409         *     
410         */
411        public BigInteger getVal() {
412            return val;
413        }
414
415        /**
416         * Sets the value of the val property.
417         *
418         * @param value
419         *     allowed object is
420         *     {@link BigInteger }
421         *     
422         */
423        public void setVal(BigInteger value) {
424            this.val = value;
425        }
426
427        /**
428         * Gets the parent object in the object tree representing the unmarshalled xml document.
429         *
430         * @return
431         *     The parent object.
432         */
433        public Object getParent() {
434            return this.parent;
435        }
436
437        public void setParent(Object parent) {
438            this.parent = parent;
439        }
440
441        /**
442         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
443         *
444         * @param parent
445         *     The parent object in the object tree.
446         * @param unmarshaller
447         *     The unmarshaller that generated the instance.
448         */
449        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
450            setParent(parent);
451        }
452
453    }
454
455}
Note: See TracBrowser for help on using the repository browser.