source: trunk/docx4j/src/main/java/org/docx4j/wml/CTTblPrBase.java @ 461

Revision 461, 20.5 KB checked in by jharrop, 4 years ago (diff)

Made table related JAXB classes human friendly.

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 javax.xml.bind.Unmarshaller;
26import javax.xml.bind.annotation.XmlAccessType;
27import javax.xml.bind.annotation.XmlAccessorType;
28import javax.xml.bind.annotation.XmlAttribute;
29import javax.xml.bind.annotation.XmlTransient;
30import javax.xml.bind.annotation.XmlType;
31import org.jvnet.jaxb2_commons.ppp.Child;
32
33
34/**
35 * <p>Java class for CT_TblPrBase complex type.
36 *
37 * <p>The following schema fragment specifies the expected content contained within this class.
38 *
39 * <pre>
40 * &lt;complexType name="CT_TblPrBase">
41 *   &lt;complexContent>
42 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43 *       &lt;sequence>
44 *         &lt;element name="tblStyle" minOccurs="0">
45 *           &lt;complexType>
46 *             &lt;complexContent>
47 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
48 *                 &lt;attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
49 *               &lt;/restriction>
50 *             &lt;/complexContent>
51 *           &lt;/complexType>
52 *         &lt;/element>
53 *         &lt;element name="tblpPr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblPPr" minOccurs="0"/>
54 *         &lt;element name="tblOverlap" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblOverlap" minOccurs="0"/>
55 *         &lt;element name="bidiVisual" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
56 *         &lt;element name="tblStyleRowBandSize" minOccurs="0">
57 *           &lt;complexType>
58 *             &lt;complexContent>
59 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
60 *                 &lt;attribute name="val" use="required">
61 *                   &lt;simpleType>
62 *                     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}integer">
63 *                     &lt;/restriction>
64 *                   &lt;/simpleType>
65 *                 &lt;/attribute>
66 *               &lt;/restriction>
67 *             &lt;/complexContent>
68 *           &lt;/complexType>
69 *         &lt;/element>
70 *         &lt;element name="tblStyleColBandSize" minOccurs="0">
71 *           &lt;complexType>
72 *             &lt;complexContent>
73 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
74 *                 &lt;attribute name="val" use="required">
75 *                   &lt;simpleType>
76 *                     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}integer">
77 *                     &lt;/restriction>
78 *                   &lt;/simpleType>
79 *                 &lt;/attribute>
80 *               &lt;/restriction>
81 *             &lt;/complexContent>
82 *           &lt;/complexType>
83 *         &lt;/element>
84 *         &lt;element name="tblW" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblWidth" minOccurs="0"/>
85 *         &lt;element name="jc" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Jc" minOccurs="0"/>
86 *         &lt;element name="tblCellSpacing" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblWidth" minOccurs="0"/>
87 *         &lt;element name="tblInd" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblWidth" minOccurs="0"/>
88 *         &lt;element name="tblBorders" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblBorders" minOccurs="0"/>
89 *         &lt;element name="shd" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Shd" minOccurs="0"/>
90 *         &lt;element name="tblLayout" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblLayoutType" minOccurs="0"/>
91 *         &lt;element name="tblCellMar" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblCellMar" minOccurs="0"/>
92 *         &lt;element name="tblLook" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_ShortHexNumber" minOccurs="0"/>
93 *       &lt;/sequence>
94 *     &lt;/restriction>
95 *   &lt;/complexContent>
96 * &lt;/complexType>
97 * </pre>
98 *
99 *
100 */
101@XmlAccessorType(XmlAccessType.FIELD)
102@XmlType(name = "CT_TblPrBase", propOrder = {
103    "tblStyle",
104    "tblpPr",
105    "tblOverlap",
106    "bidiVisual",
107    "tblStyleRowBandSize",
108    "tblStyleColBandSize",
109    "tblW",
110    "jc",
111    "tblCellSpacing",
112    "tblInd",
113    "tblBorders",
114    "shd",
115    "tblLayout",
116    "tblCellMar",
117    "tblLook"
118})
119public class CTTblPrBase
120    implements Child
121{
122
123    protected CTTblPrBase.TblStyle tblStyle;
124    protected CTTblPPr tblpPr;
125    protected CTTblOverlap tblOverlap;
126    protected BooleanDefaultTrue bidiVisual;
127    protected CTTblPrBase.TblStyleRowBandSize tblStyleRowBandSize;
128    protected CTTblPrBase.TblStyleColBandSize tblStyleColBandSize;
129    protected TblWidth tblW;
130    protected Jc jc;
131    protected TblWidth tblCellSpacing;
132    protected TblWidth tblInd;
133    protected TblBorders tblBorders;
134    protected CTShd shd;
135    protected CTTblLayoutType tblLayout;
136    protected CTTblCellMar tblCellMar;
137    protected CTShortHexNumber tblLook;
138    @XmlTransient
139    private Object parent;
140
141    /**
142     * Gets the value of the tblStyle property.
143     *
144     * @return
145     *     possible object is
146     *     {@link CTTblPrBase.TblStyle }
147     *     
148     */
149    public CTTblPrBase.TblStyle getTblStyle() {
150        return tblStyle;
151    }
152
153    /**
154     * Sets the value of the tblStyle property.
155     *
156     * @param value
157     *     allowed object is
158     *     {@link CTTblPrBase.TblStyle }
159     *     
160     */
161    public void setTblStyle(CTTblPrBase.TblStyle value) {
162        this.tblStyle = value;
163    }
164
165    /**
166     * Gets the value of the tblpPr property.
167     *
168     * @return
169     *     possible object is
170     *     {@link CTTblPPr }
171     *     
172     */
173    public CTTblPPr getTblpPr() {
174        return tblpPr;
175    }
176
177    /**
178     * Sets the value of the tblpPr property.
179     *
180     * @param value
181     *     allowed object is
182     *     {@link CTTblPPr }
183     *     
184     */
185    public void setTblpPr(CTTblPPr value) {
186        this.tblpPr = value;
187    }
188
189    /**
190     * Gets the value of the tblOverlap property.
191     *
192     * @return
193     *     possible object is
194     *     {@link CTTblOverlap }
195     *     
196     */
197    public CTTblOverlap getTblOverlap() {
198        return tblOverlap;
199    }
200
201    /**
202     * Sets the value of the tblOverlap property.
203     *
204     * @param value
205     *     allowed object is
206     *     {@link CTTblOverlap }
207     *     
208     */
209    public void setTblOverlap(CTTblOverlap value) {
210        this.tblOverlap = value;
211    }
212
213    /**
214     * Gets the value of the bidiVisual property.
215     *
216     * @return
217     *     possible object is
218     *     {@link BooleanDefaultTrue }
219     *     
220     */
221    public BooleanDefaultTrue getBidiVisual() {
222        return bidiVisual;
223    }
224
225    /**
226     * Sets the value of the bidiVisual property.
227     *
228     * @param value
229     *     allowed object is
230     *     {@link BooleanDefaultTrue }
231     *     
232     */
233    public void setBidiVisual(BooleanDefaultTrue value) {
234        this.bidiVisual = value;
235    }
236
237    /**
238     * Gets the value of the tblStyleRowBandSize property.
239     *
240     * @return
241     *     possible object is
242     *     {@link CTTblPrBase.TblStyleRowBandSize }
243     *     
244     */
245    public CTTblPrBase.TblStyleRowBandSize getTblStyleRowBandSize() {
246        return tblStyleRowBandSize;
247    }
248
249    /**
250     * Sets the value of the tblStyleRowBandSize property.
251     *
252     * @param value
253     *     allowed object is
254     *     {@link CTTblPrBase.TblStyleRowBandSize }
255     *     
256     */
257    public void setTblStyleRowBandSize(CTTblPrBase.TblStyleRowBandSize value) {
258        this.tblStyleRowBandSize = value;
259    }
260
261    /**
262     * Gets the value of the tblStyleColBandSize property.
263     *
264     * @return
265     *     possible object is
266     *     {@link CTTblPrBase.TblStyleColBandSize }
267     *     
268     */
269    public CTTblPrBase.TblStyleColBandSize getTblStyleColBandSize() {
270        return tblStyleColBandSize;
271    }
272
273    /**
274     * Sets the value of the tblStyleColBandSize property.
275     *
276     * @param value
277     *     allowed object is
278     *     {@link CTTblPrBase.TblStyleColBandSize }
279     *     
280     */
281    public void setTblStyleColBandSize(CTTblPrBase.TblStyleColBandSize value) {
282        this.tblStyleColBandSize = value;
283    }
284
285    /**
286     * Gets the value of the tblW property.
287     *
288     * @return
289     *     possible object is
290     *     {@link TblWidth }
291     *     
292     */
293    public TblWidth getTblW() {
294        return tblW;
295    }
296
297    /**
298     * Sets the value of the tblW property.
299     *
300     * @param value
301     *     allowed object is
302     *     {@link TblWidth }
303     *     
304     */
305    public void setTblW(TblWidth value) {
306        this.tblW = value;
307    }
308
309    /**
310     * Gets the value of the jc property.
311     *
312     * @return
313     *     possible object is
314     *     {@link Jc }
315     *     
316     */
317    public Jc getJc() {
318        return jc;
319    }
320
321    /**
322     * Sets the value of the jc property.
323     *
324     * @param value
325     *     allowed object is
326     *     {@link Jc }
327     *     
328     */
329    public void setJc(Jc value) {
330        this.jc = value;
331    }
332
333    /**
334     * Gets the value of the tblCellSpacing property.
335     *
336     * @return
337     *     possible object is
338     *     {@link TblWidth }
339     *     
340     */
341    public TblWidth getTblCellSpacing() {
342        return tblCellSpacing;
343    }
344
345    /**
346     * Sets the value of the tblCellSpacing property.
347     *
348     * @param value
349     *     allowed object is
350     *     {@link TblWidth }
351     *     
352     */
353    public void setTblCellSpacing(TblWidth value) {
354        this.tblCellSpacing = value;
355    }
356
357    /**
358     * Gets the value of the tblInd property.
359     *
360     * @return
361     *     possible object is
362     *     {@link TblWidth }
363     *     
364     */
365    public TblWidth getTblInd() {
366        return tblInd;
367    }
368
369    /**
370     * Sets the value of the tblInd property.
371     *
372     * @param value
373     *     allowed object is
374     *     {@link TblWidth }
375     *     
376     */
377    public void setTblInd(TblWidth value) {
378        this.tblInd = value;
379    }
380
381    /**
382     * Gets the value of the tblBorders property.
383     *
384     * @return
385     *     possible object is
386     *     {@link TblBorders }
387     *     
388     */
389    public TblBorders getTblBorders() {
390        return tblBorders;
391    }
392
393    /**
394     * Sets the value of the tblBorders property.
395     *
396     * @param value
397     *     allowed object is
398     *     {@link TblBorders }
399     *     
400     */
401    public void setTblBorders(TblBorders value) {
402        this.tblBorders = value;
403    }
404
405    /**
406     * Gets the value of the shd property.
407     *
408     * @return
409     *     possible object is
410     *     {@link CTShd }
411     *     
412     */
413    public CTShd getShd() {
414        return shd;
415    }
416
417    /**
418     * Sets the value of the shd property.
419     *
420     * @param value
421     *     allowed object is
422     *     {@link CTShd }
423     *     
424     */
425    public void setShd(CTShd value) {
426        this.shd = value;
427    }
428
429    /**
430     * Gets the value of the tblLayout property.
431     *
432     * @return
433     *     possible object is
434     *     {@link CTTblLayoutType }
435     *     
436     */
437    public CTTblLayoutType getTblLayout() {
438        return tblLayout;
439    }
440
441    /**
442     * Sets the value of the tblLayout property.
443     *
444     * @param value
445     *     allowed object is
446     *     {@link CTTblLayoutType }
447     *     
448     */
449    public void setTblLayout(CTTblLayoutType value) {
450        this.tblLayout = value;
451    }
452
453    /**
454     * Gets the value of the tblCellMar property.
455     *
456     * @return
457     *     possible object is
458     *     {@link CTTblCellMar }
459     *     
460     */
461    public CTTblCellMar getTblCellMar() {
462        return tblCellMar;
463    }
464
465    /**
466     * Sets the value of the tblCellMar property.
467     *
468     * @param value
469     *     allowed object is
470     *     {@link CTTblCellMar }
471     *     
472     */
473    public void setTblCellMar(CTTblCellMar value) {
474        this.tblCellMar = value;
475    }
476
477    /**
478     * Gets the value of the tblLook property.
479     *
480     * @return
481     *     possible object is
482     *     {@link CTShortHexNumber }
483     *     
484     */
485    public CTShortHexNumber getTblLook() {
486        return tblLook;
487    }
488
489    /**
490     * Sets the value of the tblLook property.
491     *
492     * @param value
493     *     allowed object is
494     *     {@link CTShortHexNumber }
495     *     
496     */
497    public void setTblLook(CTShortHexNumber value) {
498        this.tblLook = value;
499    }
500
501    /**
502     * Gets the parent object in the object tree representing the unmarshalled xml document.
503     *
504     * @return
505     *     The parent object.
506     */
507    public Object getParent() {
508        return this.parent;
509    }
510
511    public void setParent(Object parent) {
512        this.parent = parent;
513    }
514
515    /**
516     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
517     *
518     * @param parent
519     *     The parent object in the object tree.
520     * @param unmarshaller
521     *     The unmarshaller that generated the instance.
522     */
523    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
524        setParent(parent);
525    }
526
527
528    /**
529     * <p>Java class for anonymous complex type.
530     *
531     * <p>The following schema fragment specifies the expected content contained within this class.
532     *
533     * <pre>
534     * &lt;complexType>
535     *   &lt;complexContent>
536     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
537     *       &lt;attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
538     *     &lt;/restriction>
539     *   &lt;/complexContent>
540     * &lt;/complexType>
541     * </pre>
542     *
543     *
544     */
545    @XmlAccessorType(XmlAccessType.FIELD)
546    @XmlType(name = "")
547    public static class TblStyle
548        implements Child
549    {
550
551        @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
552        protected String val;
553        @XmlTransient
554        private Object parent;
555
556        /**
557         * Gets the value of the val property.
558         *
559         * @return
560         *     possible object is
561         *     {@link String }
562         *     
563         */
564        public String getVal() {
565            return val;
566        }
567
568        /**
569         * Sets the value of the val property.
570         *
571         * @param value
572         *     allowed object is
573         *     {@link String }
574         *     
575         */
576        public void setVal(String value) {
577            this.val = value;
578        }
579
580        /**
581         * Gets the parent object in the object tree representing the unmarshalled xml document.
582         *
583         * @return
584         *     The parent object.
585         */
586        public Object getParent() {
587            return this.parent;
588        }
589
590        public void setParent(Object parent) {
591            this.parent = parent;
592        }
593
594        /**
595         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
596         *
597         * @param parent
598         *     The parent object in the object tree.
599         * @param unmarshaller
600         *     The unmarshaller that generated the instance.
601         */
602        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
603            setParent(parent);
604        }
605
606    }
607
608
609    /**
610     * <p>Java class for anonymous complex type.
611     *
612     * <p>The following schema fragment specifies the expected content contained within this class.
613     *
614     * <pre>
615     * &lt;complexType>
616     *   &lt;complexContent>
617     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
618     *       &lt;attribute name="val" use="required">
619     *         &lt;simpleType>
620     *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}integer">
621     *           &lt;/restriction>
622     *         &lt;/simpleType>
623     *       &lt;/attribute>
624     *     &lt;/restriction>
625     *   &lt;/complexContent>
626     * &lt;/complexType>
627     * </pre>
628     *
629     *
630     */
631    @XmlAccessorType(XmlAccessType.FIELD)
632    @XmlType(name = "")
633    public static class TblStyleColBandSize
634        implements Child
635    {
636
637        @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
638        protected BigInteger val;
639        @XmlTransient
640        private Object parent;
641
642        /**
643         * Gets the value of the val property.
644         *
645         * @return
646         *     possible object is
647         *     {@link BigInteger }
648         *     
649         */
650        public BigInteger getVal() {
651            return val;
652        }
653
654        /**
655         * Sets the value of the val property.
656         *
657         * @param value
658         *     allowed object is
659         *     {@link BigInteger }
660         *     
661         */
662        public void setVal(BigInteger value) {
663            this.val = value;
664        }
665
666        /**
667         * Gets the parent object in the object tree representing the unmarshalled xml document.
668         *
669         * @return
670         *     The parent object.
671         */
672        public Object getParent() {
673            return this.parent;
674        }
675
676        public void setParent(Object parent) {
677            this.parent = parent;
678        }
679
680        /**
681         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
682         *
683         * @param parent
684         *     The parent object in the object tree.
685         * @param unmarshaller
686         *     The unmarshaller that generated the instance.
687         */
688        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
689            setParent(parent);
690        }
691
692    }
693
694
695    /**
696     * <p>Java class for anonymous complex type.
697     *
698     * <p>The following schema fragment specifies the expected content contained within this class.
699     *
700     * <pre>
701     * &lt;complexType>
702     *   &lt;complexContent>
703     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
704     *       &lt;attribute name="val" use="required">
705     *         &lt;simpleType>
706     *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}integer">
707     *           &lt;/restriction>
708     *         &lt;/simpleType>
709     *       &lt;/attribute>
710     *     &lt;/restriction>
711     *   &lt;/complexContent>
712     * &lt;/complexType>
713     * </pre>
714     *
715     *
716     */
717    @XmlAccessorType(XmlAccessType.FIELD)
718    @XmlType(name = "")
719    public static class TblStyleRowBandSize
720        implements Child
721    {
722
723        @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
724        protected BigInteger val;
725        @XmlTransient
726        private Object parent;
727
728        /**
729         * Gets the value of the val property.
730         *
731         * @return
732         *     possible object is
733         *     {@link BigInteger }
734         *     
735         */
736        public BigInteger getVal() {
737            return val;
738        }
739
740        /**
741         * Sets the value of the val property.
742         *
743         * @param value
744         *     allowed object is
745         *     {@link BigInteger }
746         *     
747         */
748        public void setVal(BigInteger value) {
749            this.val = value;
750        }
751
752        /**
753         * Gets the parent object in the object tree representing the unmarshalled xml document.
754         *
755         * @return
756         *     The parent object.
757         */
758        public Object getParent() {
759            return this.parent;
760        }
761
762        public void setParent(Object parent) {
763            this.parent = parent;
764        }
765
766        /**
767         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
768         *
769         * @param parent
770         *     The parent object in the object tree.
771         * @param unmarshaller
772         *     The unmarshaller that generated the instance.
773         */
774        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
775            setParent(parent);
776        }
777
778    }
779
780}
Note: See TracBrowser for help on using the repository browser.