source: trunk/docx4j/src/main/java/org/docx4j/wml/CTDiv.java @ 359

Revision 359, 9.0 KB checked in by jharrop, 4 years ago (diff)

Change CT_FldChar to FldChar?;
Style is freestanding, rather than an inner class of Styles.
(Other changes largely whitespace in license header)

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.Unmarshaller;
28import javax.xml.bind.annotation.XmlAccessType;
29import javax.xml.bind.annotation.XmlAccessorType;
30import javax.xml.bind.annotation.XmlAttribute;
31import javax.xml.bind.annotation.XmlElement;
32import javax.xml.bind.annotation.XmlTransient;
33import javax.xml.bind.annotation.XmlType;
34import org.jvnet.jaxb2_commons.ppp.Child;
35
36
37/**
38 * <p>Java class for CT_Div complex type.
39 *
40 * <p>The following schema fragment specifies the expected content contained within this class.
41 *
42 * <pre>
43 * &lt;complexType name="CT_Div">
44 *   &lt;complexContent>
45 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
46 *       &lt;sequence>
47 *         &lt;element name="blockQuote" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
48 *         &lt;element name="bodyDiv" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
49 *         &lt;element name="marLeft" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_SignedTwipsMeasure"/>
50 *         &lt;element name="marRight" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_SignedTwipsMeasure"/>
51 *         &lt;element name="marTop" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_SignedTwipsMeasure"/>
52 *         &lt;element name="marBottom" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_SignedTwipsMeasure"/>
53 *         &lt;element name="divBdr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_DivBdr" minOccurs="0"/>
54 *         &lt;element name="divsChild" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Divs" maxOccurs="unbounded" minOccurs="0"/>
55 *       &lt;/sequence>
56 *       &lt;attribute name="id" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
57 *     &lt;/restriction>
58 *   &lt;/complexContent>
59 * &lt;/complexType>
60 * </pre>
61 *
62 *
63 */
64@XmlAccessorType(XmlAccessType.FIELD)
65@XmlType(name = "CT_Div", propOrder = {
66    "blockQuote",
67    "bodyDiv",
68    "marLeft",
69    "marRight",
70    "marTop",
71    "marBottom",
72    "divBdr",
73    "divsChild"
74})
75public class CTDiv
76    implements Child
77{
78
79    protected BooleanDefaultTrue blockQuote;
80    protected BooleanDefaultTrue bodyDiv;
81    @XmlElement(required = true)
82    protected CTSignedTwipsMeasure marLeft;
83    @XmlElement(required = true)
84    protected CTSignedTwipsMeasure marRight;
85    @XmlElement(required = true)
86    protected CTSignedTwipsMeasure marTop;
87    @XmlElement(required = true)
88    protected CTSignedTwipsMeasure marBottom;
89    protected CTDivBdr divBdr;
90    protected List<CTDivs> divsChild;
91    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
92    protected BigInteger id;
93    @XmlTransient
94    private Object parent;
95
96    /**
97     * Gets the value of the blockQuote property.
98     *
99     * @return
100     *     possible object is
101     *     {@link BooleanDefaultTrue }
102     *     
103     */
104    public BooleanDefaultTrue getBlockQuote() {
105        return blockQuote;
106    }
107
108    /**
109     * Sets the value of the blockQuote property.
110     *
111     * @param value
112     *     allowed object is
113     *     {@link BooleanDefaultTrue }
114     *     
115     */
116    public void setBlockQuote(BooleanDefaultTrue value) {
117        this.blockQuote = value;
118    }
119
120    /**
121     * Gets the value of the bodyDiv property.
122     *
123     * @return
124     *     possible object is
125     *     {@link BooleanDefaultTrue }
126     *     
127     */
128    public BooleanDefaultTrue getBodyDiv() {
129        return bodyDiv;
130    }
131
132    /**
133     * Sets the value of the bodyDiv property.
134     *
135     * @param value
136     *     allowed object is
137     *     {@link BooleanDefaultTrue }
138     *     
139     */
140    public void setBodyDiv(BooleanDefaultTrue value) {
141        this.bodyDiv = value;
142    }
143
144    /**
145     * Gets the value of the marLeft property.
146     *
147     * @return
148     *     possible object is
149     *     {@link CTSignedTwipsMeasure }
150     *     
151     */
152    public CTSignedTwipsMeasure getMarLeft() {
153        return marLeft;
154    }
155
156    /**
157     * Sets the value of the marLeft property.
158     *
159     * @param value
160     *     allowed object is
161     *     {@link CTSignedTwipsMeasure }
162     *     
163     */
164    public void setMarLeft(CTSignedTwipsMeasure value) {
165        this.marLeft = value;
166    }
167
168    /**
169     * Gets the value of the marRight property.
170     *
171     * @return
172     *     possible object is
173     *     {@link CTSignedTwipsMeasure }
174     *     
175     */
176    public CTSignedTwipsMeasure getMarRight() {
177        return marRight;
178    }
179
180    /**
181     * Sets the value of the marRight property.
182     *
183     * @param value
184     *     allowed object is
185     *     {@link CTSignedTwipsMeasure }
186     *     
187     */
188    public void setMarRight(CTSignedTwipsMeasure value) {
189        this.marRight = value;
190    }
191
192    /**
193     * Gets the value of the marTop property.
194     *
195     * @return
196     *     possible object is
197     *     {@link CTSignedTwipsMeasure }
198     *     
199     */
200    public CTSignedTwipsMeasure getMarTop() {
201        return marTop;
202    }
203
204    /**
205     * Sets the value of the marTop property.
206     *
207     * @param value
208     *     allowed object is
209     *     {@link CTSignedTwipsMeasure }
210     *     
211     */
212    public void setMarTop(CTSignedTwipsMeasure value) {
213        this.marTop = value;
214    }
215
216    /**
217     * Gets the value of the marBottom property.
218     *
219     * @return
220     *     possible object is
221     *     {@link CTSignedTwipsMeasure }
222     *     
223     */
224    public CTSignedTwipsMeasure getMarBottom() {
225        return marBottom;
226    }
227
228    /**
229     * Sets the value of the marBottom property.
230     *
231     * @param value
232     *     allowed object is
233     *     {@link CTSignedTwipsMeasure }
234     *     
235     */
236    public void setMarBottom(CTSignedTwipsMeasure value) {
237        this.marBottom = value;
238    }
239
240    /**
241     * Gets the value of the divBdr property.
242     *
243     * @return
244     *     possible object is
245     *     {@link CTDivBdr }
246     *     
247     */
248    public CTDivBdr getDivBdr() {
249        return divBdr;
250    }
251
252    /**
253     * Sets the value of the divBdr property.
254     *
255     * @param value
256     *     allowed object is
257     *     {@link CTDivBdr }
258     *     
259     */
260    public void setDivBdr(CTDivBdr value) {
261        this.divBdr = value;
262    }
263
264    /**
265     * Gets the value of the divsChild property.
266     *
267     * <p>
268     * This accessor method returns a reference to the live list,
269     * not a snapshot. Therefore any modification you make to the
270     * returned list will be present inside the JAXB object.
271     * This is why there is not a <CODE>set</CODE> method for the divsChild property.
272     *
273     * <p>
274     * For example, to add a new item, do as follows:
275     * <pre>
276     *    getDivsChild().add(newItem);
277     * </pre>
278     *
279     *
280     * <p>
281     * Objects of the following type(s) are allowed in the list
282     * {@link CTDivs }
283     *
284     *
285     */
286    public List<CTDivs> getDivsChild() {
287        if (divsChild == null) {
288            divsChild = new ArrayList<CTDivs>();
289        }
290        return this.divsChild;
291    }
292
293    /**
294     * Gets the value of the id property.
295     *
296     * @return
297     *     possible object is
298     *     {@link BigInteger }
299     *     
300     */
301    public BigInteger getId() {
302        return id;
303    }
304
305    /**
306     * Sets the value of the id property.
307     *
308     * @param value
309     *     allowed object is
310     *     {@link BigInteger }
311     *     
312     */
313    public void setId(BigInteger value) {
314        this.id = value;
315    }
316
317    /**
318     * Gets the parent object in the object tree representing the unmarshalled xml document.
319     *
320     * @return
321     *     The parent object.
322     */
323    public Object getParent() {
324        return this.parent;
325    }
326
327    public void setParent(Object parent) {
328        this.parent = parent;
329    }
330
331    /**
332     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
333     *
334     * @param parent
335     *     The parent object in the object tree.
336     * @param unmarshaller
337     *     The unmarshaller that generated the instance.
338     */
339    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
340        setParent(parent);
341    }
342
343}
Note: See TracBrowser for help on using the repository browser.