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

Revision 461, 8.0 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 javax.xml.bind.Unmarshaller;
25import javax.xml.bind.annotation.XmlAccessType;
26import javax.xml.bind.annotation.XmlAccessorType;
27import javax.xml.bind.annotation.XmlTransient;
28import javax.xml.bind.annotation.XmlType;
29import org.jvnet.jaxb2_commons.ppp.Child;
30
31
32/**
33 * <p>Java class for CT_TblPrExBase complex type.
34 *
35 * <p>The following schema fragment specifies the expected content contained within this class.
36 *
37 * <pre>
38 * &lt;complexType name="CT_TblPrExBase">
39 *   &lt;complexContent>
40 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
41 *       &lt;sequence>
42 *         &lt;element name="tblW" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblWidth" minOccurs="0"/>
43 *         &lt;element name="jc" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Jc" minOccurs="0"/>
44 *         &lt;element name="tblCellSpacing" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblWidth" minOccurs="0"/>
45 *         &lt;element name="tblInd" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblWidth" minOccurs="0"/>
46 *         &lt;element name="tblBorders" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblBorders" minOccurs="0"/>
47 *         &lt;element name="shd" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Shd" minOccurs="0"/>
48 *         &lt;element name="tblLayout" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblLayoutType" minOccurs="0"/>
49 *         &lt;element name="tblCellMar" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblCellMar" minOccurs="0"/>
50 *         &lt;element name="tblLook" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_ShortHexNumber" minOccurs="0"/>
51 *       &lt;/sequence>
52 *     &lt;/restriction>
53 *   &lt;/complexContent>
54 * &lt;/complexType>
55 * </pre>
56 *
57 *
58 */
59@XmlAccessorType(XmlAccessType.FIELD)
60@XmlType(name = "CT_TblPrExBase", propOrder = {
61    "tblW",
62    "jc",
63    "tblCellSpacing",
64    "tblInd",
65    "tblBorders",
66    "shd",
67    "tblLayout",
68    "tblCellMar",
69    "tblLook"
70})
71public class CTTblPrExBase
72    implements Child
73{
74
75    protected TblWidth tblW;
76    protected Jc jc;
77    protected TblWidth tblCellSpacing;
78    protected TblWidth tblInd;
79    protected TblBorders tblBorders;
80    protected CTShd shd;
81    protected CTTblLayoutType tblLayout;
82    protected CTTblCellMar tblCellMar;
83    protected CTShortHexNumber tblLook;
84    @XmlTransient
85    private Object parent;
86
87    /**
88     * Gets the value of the tblW property.
89     *
90     * @return
91     *     possible object is
92     *     {@link TblWidth }
93     *     
94     */
95    public TblWidth getTblW() {
96        return tblW;
97    }
98
99    /**
100     * Sets the value of the tblW property.
101     *
102     * @param value
103     *     allowed object is
104     *     {@link TblWidth }
105     *     
106     */
107    public void setTblW(TblWidth value) {
108        this.tblW = value;
109    }
110
111    /**
112     * Gets the value of the jc property.
113     *
114     * @return
115     *     possible object is
116     *     {@link Jc }
117     *     
118     */
119    public Jc getJc() {
120        return jc;
121    }
122
123    /**
124     * Sets the value of the jc property.
125     *
126     * @param value
127     *     allowed object is
128     *     {@link Jc }
129     *     
130     */
131    public void setJc(Jc value) {
132        this.jc = value;
133    }
134
135    /**
136     * Gets the value of the tblCellSpacing property.
137     *
138     * @return
139     *     possible object is
140     *     {@link TblWidth }
141     *     
142     */
143    public TblWidth getTblCellSpacing() {
144        return tblCellSpacing;
145    }
146
147    /**
148     * Sets the value of the tblCellSpacing property.
149     *
150     * @param value
151     *     allowed object is
152     *     {@link TblWidth }
153     *     
154     */
155    public void setTblCellSpacing(TblWidth value) {
156        this.tblCellSpacing = value;
157    }
158
159    /**
160     * Gets the value of the tblInd property.
161     *
162     * @return
163     *     possible object is
164     *     {@link TblWidth }
165     *     
166     */
167    public TblWidth getTblInd() {
168        return tblInd;
169    }
170
171    /**
172     * Sets the value of the tblInd property.
173     *
174     * @param value
175     *     allowed object is
176     *     {@link TblWidth }
177     *     
178     */
179    public void setTblInd(TblWidth value) {
180        this.tblInd = value;
181    }
182
183    /**
184     * Gets the value of the tblBorders property.
185     *
186     * @return
187     *     possible object is
188     *     {@link TblBorders }
189     *     
190     */
191    public TblBorders getTblBorders() {
192        return tblBorders;
193    }
194
195    /**
196     * Sets the value of the tblBorders property.
197     *
198     * @param value
199     *     allowed object is
200     *     {@link TblBorders }
201     *     
202     */
203    public void setTblBorders(TblBorders value) {
204        this.tblBorders = value;
205    }
206
207    /**
208     * Gets the value of the shd property.
209     *
210     * @return
211     *     possible object is
212     *     {@link CTShd }
213     *     
214     */
215    public CTShd getShd() {
216        return shd;
217    }
218
219    /**
220     * Sets the value of the shd property.
221     *
222     * @param value
223     *     allowed object is
224     *     {@link CTShd }
225     *     
226     */
227    public void setShd(CTShd value) {
228        this.shd = value;
229    }
230
231    /**
232     * Gets the value of the tblLayout property.
233     *
234     * @return
235     *     possible object is
236     *     {@link CTTblLayoutType }
237     *     
238     */
239    public CTTblLayoutType getTblLayout() {
240        return tblLayout;
241    }
242
243    /**
244     * Sets the value of the tblLayout property.
245     *
246     * @param value
247     *     allowed object is
248     *     {@link CTTblLayoutType }
249     *     
250     */
251    public void setTblLayout(CTTblLayoutType value) {
252        this.tblLayout = value;
253    }
254
255    /**
256     * Gets the value of the tblCellMar property.
257     *
258     * @return
259     *     possible object is
260     *     {@link CTTblCellMar }
261     *     
262     */
263    public CTTblCellMar getTblCellMar() {
264        return tblCellMar;
265    }
266
267    /**
268     * Sets the value of the tblCellMar property.
269     *
270     * @param value
271     *     allowed object is
272     *     {@link CTTblCellMar }
273     *     
274     */
275    public void setTblCellMar(CTTblCellMar value) {
276        this.tblCellMar = value;
277    }
278
279    /**
280     * Gets the value of the tblLook property.
281     *
282     * @return
283     *     possible object is
284     *     {@link CTShortHexNumber }
285     *     
286     */
287    public CTShortHexNumber getTblLook() {
288        return tblLook;
289    }
290
291    /**
292     * Sets the value of the tblLook property.
293     *
294     * @param value
295     *     allowed object is
296     *     {@link CTShortHexNumber }
297     *     
298     */
299    public void setTblLook(CTShortHexNumber value) {
300        this.tblLook = value;
301    }
302
303    /**
304     * Gets the parent object in the object tree representing the unmarshalled xml document.
305     *
306     * @return
307     *     The parent object.
308     */
309    public Object getParent() {
310        return this.parent;
311    }
312
313    public void setParent(Object parent) {
314        this.parent = parent;
315    }
316
317    /**
318     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
319     *
320     * @param parent
321     *     The parent object in the object tree.
322     * @param unmarshaller
323     *     The unmarshaller that generated the instance.
324     */
325    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
326        setParent(parent);
327    }
328
329}
Note: See TracBrowser for help on using the repository browser.