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

Revision 461, 5.9 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_TblBorders 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_TblBorders">
39 *   &lt;complexContent>
40 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
41 *       &lt;sequence>
42 *         &lt;element name="top" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Border" minOccurs="0"/>
43 *         &lt;element name="left" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Border" minOccurs="0"/>
44 *         &lt;element name="bottom" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Border" minOccurs="0"/>
45 *         &lt;element name="right" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Border" minOccurs="0"/>
46 *         &lt;element name="insideH" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Border" minOccurs="0"/>
47 *         &lt;element name="insideV" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Border" minOccurs="0"/>
48 *       &lt;/sequence>
49 *     &lt;/restriction>
50 *   &lt;/complexContent>
51 * &lt;/complexType>
52 * </pre>
53 *
54 *
55 */
56@XmlAccessorType(XmlAccessType.FIELD)
57@XmlType(name = "CT_TblBorders", propOrder = {
58    "top",
59    "left",
60    "bottom",
61    "right",
62    "insideH",
63    "insideV"
64})
65public class TblBorders
66    implements Child
67{
68
69    protected CTBorder top;
70    protected CTBorder left;
71    protected CTBorder bottom;
72    protected CTBorder right;
73    protected CTBorder insideH;
74    protected CTBorder insideV;
75    @XmlTransient
76    private Object parent;
77
78    /**
79     * Gets the value of the top property.
80     *
81     * @return
82     *     possible object is
83     *     {@link CTBorder }
84     *     
85     */
86    public CTBorder getTop() {
87        return top;
88    }
89
90    /**
91     * Sets the value of the top property.
92     *
93     * @param value
94     *     allowed object is
95     *     {@link CTBorder }
96     *     
97     */
98    public void setTop(CTBorder value) {
99        this.top = value;
100    }
101
102    /**
103     * Gets the value of the left property.
104     *
105     * @return
106     *     possible object is
107     *     {@link CTBorder }
108     *     
109     */
110    public CTBorder getLeft() {
111        return left;
112    }
113
114    /**
115     * Sets the value of the left property.
116     *
117     * @param value
118     *     allowed object is
119     *     {@link CTBorder }
120     *     
121     */
122    public void setLeft(CTBorder value) {
123        this.left = value;
124    }
125
126    /**
127     * Gets the value of the bottom property.
128     *
129     * @return
130     *     possible object is
131     *     {@link CTBorder }
132     *     
133     */
134    public CTBorder getBottom() {
135        return bottom;
136    }
137
138    /**
139     * Sets the value of the bottom property.
140     *
141     * @param value
142     *     allowed object is
143     *     {@link CTBorder }
144     *     
145     */
146    public void setBottom(CTBorder value) {
147        this.bottom = value;
148    }
149
150    /**
151     * Gets the value of the right property.
152     *
153     * @return
154     *     possible object is
155     *     {@link CTBorder }
156     *     
157     */
158    public CTBorder getRight() {
159        return right;
160    }
161
162    /**
163     * Sets the value of the right property.
164     *
165     * @param value
166     *     allowed object is
167     *     {@link CTBorder }
168     *     
169     */
170    public void setRight(CTBorder value) {
171        this.right = value;
172    }
173
174    /**
175     * Gets the value of the insideH property.
176     *
177     * @return
178     *     possible object is
179     *     {@link CTBorder }
180     *     
181     */
182    public CTBorder getInsideH() {
183        return insideH;
184    }
185
186    /**
187     * Sets the value of the insideH property.
188     *
189     * @param value
190     *     allowed object is
191     *     {@link CTBorder }
192     *     
193     */
194    public void setInsideH(CTBorder value) {
195        this.insideH = value;
196    }
197
198    /**
199     * Gets the value of the insideV property.
200     *
201     * @return
202     *     possible object is
203     *     {@link CTBorder }
204     *     
205     */
206    public CTBorder getInsideV() {
207        return insideV;
208    }
209
210    /**
211     * Sets the value of the insideV property.
212     *
213     * @param value
214     *     allowed object is
215     *     {@link CTBorder }
216     *     
217     */
218    public void setInsideV(CTBorder value) {
219        this.insideV = value;
220    }
221
222    /**
223     * Gets the parent object in the object tree representing the unmarshalled xml document.
224     *
225     * @return
226     *     The parent object.
227     */
228    public Object getParent() {
229        return this.parent;
230    }
231
232    public void setParent(Object parent) {
233        this.parent = parent;
234    }
235
236    /**
237     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
238     *
239     * @param parent
240     *     The parent object in the object tree.
241     * @param unmarshaller
242     *     The unmarshaller that generated the instance.
243     */
244    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
245        setParent(parent);
246    }
247
248}
Note: See TracBrowser for help on using the repository browser.