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

Revision 359, 12.6 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 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_FramePr 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_FramePr">
41 *   &lt;complexContent>
42 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43 *       &lt;attribute name="dropCap" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DropCap" />
44 *       &lt;attribute name="lines" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
45 *       &lt;attribute name="w" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_TwipsMeasure" />
46 *       &lt;attribute name="h" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_TwipsMeasure" />
47 *       &lt;attribute name="vSpace" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_TwipsMeasure" />
48 *       &lt;attribute name="hSpace" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_TwipsMeasure" />
49 *       &lt;attribute name="wrap" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_Wrap" />
50 *       &lt;attribute name="hAnchor" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_HAnchor" />
51 *       &lt;attribute name="vAnchor" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_VAnchor" />
52 *       &lt;attribute name="x" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_SignedTwipsMeasure" />
53 *       &lt;attribute name="xAlign" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_XAlign" />
54 *       &lt;attribute name="y" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_SignedTwipsMeasure" />
55 *       &lt;attribute name="yAlign" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_YAlign" />
56 *       &lt;attribute name="hRule" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_HeightRule" />
57 *       &lt;attribute name="anchorLock" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
58 *     &lt;/restriction>
59 *   &lt;/complexContent>
60 * &lt;/complexType>
61 * </pre>
62 *
63 *
64 */
65@XmlAccessorType(XmlAccessType.FIELD)
66@XmlType(name = "CT_FramePr")
67public class CTFramePr
68    implements Child
69{
70
71    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
72    protected STDropCap dropCap;
73    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
74    protected BigInteger lines;
75    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
76    protected BigInteger w;
77    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
78    protected BigInteger h;
79    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
80    protected BigInteger vSpace;
81    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
82    protected BigInteger hSpace;
83    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
84    protected STWrap wrap;
85    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
86    protected STHAnchor hAnchor;
87    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
88    protected STVAnchor vAnchor;
89    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
90    protected BigInteger x;
91    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
92    protected STXAlign xAlign;
93    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
94    protected BigInteger y;
95    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
96    protected STYAlign yAlign;
97    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
98    protected STHeightRule hRule;
99    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
100    protected Boolean anchorLock;
101    @XmlTransient
102    private Object parent;
103
104    /**
105     * Gets the value of the dropCap property.
106     *
107     * @return
108     *     possible object is
109     *     {@link STDropCap }
110     *     
111     */
112    public STDropCap getDropCap() {
113        return dropCap;
114    }
115
116    /**
117     * Sets the value of the dropCap property.
118     *
119     * @param value
120     *     allowed object is
121     *     {@link STDropCap }
122     *     
123     */
124    public void setDropCap(STDropCap value) {
125        this.dropCap = value;
126    }
127
128    /**
129     * Gets the value of the lines property.
130     *
131     * @return
132     *     possible object is
133     *     {@link BigInteger }
134     *     
135     */
136    public BigInteger getLines() {
137        return lines;
138    }
139
140    /**
141     * Sets the value of the lines property.
142     *
143     * @param value
144     *     allowed object is
145     *     {@link BigInteger }
146     *     
147     */
148    public void setLines(BigInteger value) {
149        this.lines = value;
150    }
151
152    /**
153     * Gets the value of the w property.
154     *
155     * @return
156     *     possible object is
157     *     {@link BigInteger }
158     *     
159     */
160    public BigInteger getW() {
161        return w;
162    }
163
164    /**
165     * Sets the value of the w property.
166     *
167     * @param value
168     *     allowed object is
169     *     {@link BigInteger }
170     *     
171     */
172    public void setW(BigInteger value) {
173        this.w = value;
174    }
175
176    /**
177     * Gets the value of the h property.
178     *
179     * @return
180     *     possible object is
181     *     {@link BigInteger }
182     *     
183     */
184    public BigInteger getH() {
185        return h;
186    }
187
188    /**
189     * Sets the value of the h property.
190     *
191     * @param value
192     *     allowed object is
193     *     {@link BigInteger }
194     *     
195     */
196    public void setH(BigInteger value) {
197        this.h = value;
198    }
199
200    /**
201     * Gets the value of the vSpace property.
202     *
203     * @return
204     *     possible object is
205     *     {@link BigInteger }
206     *     
207     */
208    public BigInteger getVSpace() {
209        return vSpace;
210    }
211
212    /**
213     * Sets the value of the vSpace property.
214     *
215     * @param value
216     *     allowed object is
217     *     {@link BigInteger }
218     *     
219     */
220    public void setVSpace(BigInteger value) {
221        this.vSpace = value;
222    }
223
224    /**
225     * Gets the value of the hSpace property.
226     *
227     * @return
228     *     possible object is
229     *     {@link BigInteger }
230     *     
231     */
232    public BigInteger getHSpace() {
233        return hSpace;
234    }
235
236    /**
237     * Sets the value of the hSpace property.
238     *
239     * @param value
240     *     allowed object is
241     *     {@link BigInteger }
242     *     
243     */
244    public void setHSpace(BigInteger value) {
245        this.hSpace = value;
246    }
247
248    /**
249     * Gets the value of the wrap property.
250     *
251     * @return
252     *     possible object is
253     *     {@link STWrap }
254     *     
255     */
256    public STWrap getWrap() {
257        return wrap;
258    }
259
260    /**
261     * Sets the value of the wrap property.
262     *
263     * @param value
264     *     allowed object is
265     *     {@link STWrap }
266     *     
267     */
268    public void setWrap(STWrap value) {
269        this.wrap = value;
270    }
271
272    /**
273     * Gets the value of the hAnchor property.
274     *
275     * @return
276     *     possible object is
277     *     {@link STHAnchor }
278     *     
279     */
280    public STHAnchor getHAnchor() {
281        return hAnchor;
282    }
283
284    /**
285     * Sets the value of the hAnchor property.
286     *
287     * @param value
288     *     allowed object is
289     *     {@link STHAnchor }
290     *     
291     */
292    public void setHAnchor(STHAnchor value) {
293        this.hAnchor = value;
294    }
295
296    /**
297     * Gets the value of the vAnchor property.
298     *
299     * @return
300     *     possible object is
301     *     {@link STVAnchor }
302     *     
303     */
304    public STVAnchor getVAnchor() {
305        return vAnchor;
306    }
307
308    /**
309     * Sets the value of the vAnchor property.
310     *
311     * @param value
312     *     allowed object is
313     *     {@link STVAnchor }
314     *     
315     */
316    public void setVAnchor(STVAnchor value) {
317        this.vAnchor = value;
318    }
319
320    /**
321     * Gets the value of the x property.
322     *
323     * @return
324     *     possible object is
325     *     {@link BigInteger }
326     *     
327     */
328    public BigInteger getX() {
329        return x;
330    }
331
332    /**
333     * Sets the value of the x property.
334     *
335     * @param value
336     *     allowed object is
337     *     {@link BigInteger }
338     *     
339     */
340    public void setX(BigInteger value) {
341        this.x = value;
342    }
343
344    /**
345     * Gets the value of the xAlign property.
346     *
347     * @return
348     *     possible object is
349     *     {@link STXAlign }
350     *     
351     */
352    public STXAlign getXAlign() {
353        return xAlign;
354    }
355
356    /**
357     * Sets the value of the xAlign property.
358     *
359     * @param value
360     *     allowed object is
361     *     {@link STXAlign }
362     *     
363     */
364    public void setXAlign(STXAlign value) {
365        this.xAlign = value;
366    }
367
368    /**
369     * Gets the value of the y property.
370     *
371     * @return
372     *     possible object is
373     *     {@link BigInteger }
374     *     
375     */
376    public BigInteger getY() {
377        return y;
378    }
379
380    /**
381     * Sets the value of the y property.
382     *
383     * @param value
384     *     allowed object is
385     *     {@link BigInteger }
386     *     
387     */
388    public void setY(BigInteger value) {
389        this.y = value;
390    }
391
392    /**
393     * Gets the value of the yAlign property.
394     *
395     * @return
396     *     possible object is
397     *     {@link STYAlign }
398     *     
399     */
400    public STYAlign getYAlign() {
401        return yAlign;
402    }
403
404    /**
405     * Sets the value of the yAlign property.
406     *
407     * @param value
408     *     allowed object is
409     *     {@link STYAlign }
410     *     
411     */
412    public void setYAlign(STYAlign value) {
413        this.yAlign = value;
414    }
415
416    /**
417     * Gets the value of the hRule property.
418     *
419     * @return
420     *     possible object is
421     *     {@link STHeightRule }
422     *     
423     */
424    public STHeightRule getHRule() {
425        return hRule;
426    }
427
428    /**
429     * Sets the value of the hRule property.
430     *
431     * @param value
432     *     allowed object is
433     *     {@link STHeightRule }
434     *     
435     */
436    public void setHRule(STHeightRule value) {
437        this.hRule = value;
438    }
439
440    /**
441     * Gets the value of the anchorLock property.
442     *
443     * @return
444     *     possible object is
445     *     {@link Boolean }
446     *     
447     */
448    public boolean isAnchorLock() {
449        if (anchorLock == null) {
450            return true;
451        } else {
452            return anchorLock;
453        }
454    }
455
456    /**
457     * Sets the value of the anchorLock property.
458     *
459     * @param value
460     *     allowed object is
461     *     {@link Boolean }
462     *     
463     */
464    public void setAnchorLock(Boolean value) {
465        this.anchorLock = value;
466    }
467
468    /**
469     * Gets the parent object in the object tree representing the unmarshalled xml document.
470     *
471     * @return
472     *     The parent object.
473     */
474    public Object getParent() {
475        return this.parent;
476    }
477
478    public void setParent(Object parent) {
479        this.parent = parent;
480    }
481
482    /**
483     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
484     *
485     * @param parent
486     *     The parent object in the object tree.
487     * @param unmarshaller
488     *     The unmarshaller that generated the instance.
489     */
490    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
491        setParent(parent);
492    }
493
494}
Note: See TracBrowser for help on using the repository browser.