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

Revision 461, 4.7 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_TblCellMar 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_TblCellMar">
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_TblWidth" minOccurs="0"/>
43 *         &lt;element name="left" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblWidth" minOccurs="0"/>
44 *         &lt;element name="bottom" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblWidth" minOccurs="0"/>
45 *         &lt;element name="right" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblWidth" minOccurs="0"/>
46 *       &lt;/sequence>
47 *     &lt;/restriction>
48 *   &lt;/complexContent>
49 * &lt;/complexType>
50 * </pre>
51 *
52 *
53 */
54@XmlAccessorType(XmlAccessType.FIELD)
55@XmlType(name = "CT_TblCellMar", propOrder = {
56    "top",
57    "left",
58    "bottom",
59    "right"
60})
61public class CTTblCellMar
62    implements Child
63{
64
65    protected TblWidth top;
66    protected TblWidth left;
67    protected TblWidth bottom;
68    protected TblWidth right;
69    @XmlTransient
70    private Object parent;
71
72    /**
73     * Gets the value of the top property.
74     *
75     * @return
76     *     possible object is
77     *     {@link TblWidth }
78     *     
79     */
80    public TblWidth getTop() {
81        return top;
82    }
83
84    /**
85     * Sets the value of the top property.
86     *
87     * @param value
88     *     allowed object is
89     *     {@link TblWidth }
90     *     
91     */
92    public void setTop(TblWidth value) {
93        this.top = value;
94    }
95
96    /**
97     * Gets the value of the left property.
98     *
99     * @return
100     *     possible object is
101     *     {@link TblWidth }
102     *     
103     */
104    public TblWidth getLeft() {
105        return left;
106    }
107
108    /**
109     * Sets the value of the left property.
110     *
111     * @param value
112     *     allowed object is
113     *     {@link TblWidth }
114     *     
115     */
116    public void setLeft(TblWidth value) {
117        this.left = value;
118    }
119
120    /**
121     * Gets the value of the bottom property.
122     *
123     * @return
124     *     possible object is
125     *     {@link TblWidth }
126     *     
127     */
128    public TblWidth getBottom() {
129        return bottom;
130    }
131
132    /**
133     * Sets the value of the bottom property.
134     *
135     * @param value
136     *     allowed object is
137     *     {@link TblWidth }
138     *     
139     */
140    public void setBottom(TblWidth value) {
141        this.bottom = value;
142    }
143
144    /**
145     * Gets the value of the right property.
146     *
147     * @return
148     *     possible object is
149     *     {@link TblWidth }
150     *     
151     */
152    public TblWidth getRight() {
153        return right;
154    }
155
156    /**
157     * Sets the value of the right property.
158     *
159     * @param value
160     *     allowed object is
161     *     {@link TblWidth }
162     *     
163     */
164    public void setRight(TblWidth value) {
165        this.right = value;
166    }
167
168    /**
169     * Gets the parent object in the object tree representing the unmarshalled xml document.
170     *
171     * @return
172     *     The parent object.
173     */
174    public Object getParent() {
175        return this.parent;
176    }
177
178    public void setParent(Object parent) {
179        this.parent = parent;
180    }
181
182    /**
183     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
184     *
185     * @param parent
186     *     The parent object in the object tree.
187     * @param unmarshaller
188     *     The unmarshaller that generated the instance.
189     */
190    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
191        setParent(parent);
192    }
193
194}
Note: See TracBrowser for help on using the repository browser.