source: trunk/docx4j/src/main/java/org/docx4j/wml/CTCaption.java @ 568

Revision 568, 7.3 KB checked in by jharrop, 4 years ago (diff)

Regenerated JAXB classes, primarily to improve header/footer handling.
Also changed CT_Hyperlink to P.Hyperlink (though maybe its better not as an inner class)

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_Caption 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_Caption">
41 *   &lt;complexContent>
42 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43 *       &lt;attribute name="name" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" />
44 *       &lt;attribute name="pos" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_CaptionPos" />
45 *       &lt;attribute name="chapNum" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
46 *       &lt;attribute name="heading" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
47 *       &lt;attribute name="noLabel" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
48 *       &lt;attribute name="numFmt" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}NumberFormat" />
49 *       &lt;attribute name="sep" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_ChapterSep" />
50 *     &lt;/restriction>
51 *   &lt;/complexContent>
52 * &lt;/complexType>
53 * </pre>
54 *
55 *
56 */
57@XmlAccessorType(XmlAccessType.FIELD)
58@XmlType(name = "CT_Caption")
59public class CTCaption
60    implements Child
61{
62
63    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
64    protected String name;
65    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
66    protected STCaptionPos pos;
67    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
68    protected Boolean chapNum;
69    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
70    protected BigInteger heading;
71    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
72    protected Boolean noLabel;
73    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
74    protected NumberFormat numFmt;
75    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
76    protected STChapterSep sep;
77    @XmlTransient
78    private Object parent;
79
80    /**
81     * Gets the value of the name property.
82     *
83     * @return
84     *     possible object is
85     *     {@link String }
86     *     
87     */
88    public String getName() {
89        return name;
90    }
91
92    /**
93     * Sets the value of the name property.
94     *
95     * @param value
96     *     allowed object is
97     *     {@link String }
98     *     
99     */
100    public void setName(String value) {
101        this.name = value;
102    }
103
104    /**
105     * Gets the value of the pos property.
106     *
107     * @return
108     *     possible object is
109     *     {@link STCaptionPos }
110     *     
111     */
112    public STCaptionPos getPos() {
113        return pos;
114    }
115
116    /**
117     * Sets the value of the pos property.
118     *
119     * @param value
120     *     allowed object is
121     *     {@link STCaptionPos }
122     *     
123     */
124    public void setPos(STCaptionPos value) {
125        this.pos = value;
126    }
127
128    /**
129     * Gets the value of the chapNum property.
130     *
131     * @return
132     *     possible object is
133     *     {@link Boolean }
134     *     
135     */
136    public boolean isChapNum() {
137        if (chapNum == null) {
138            return true;
139        } else {
140            return chapNum;
141        }
142    }
143
144    /**
145     * Sets the value of the chapNum property.
146     *
147     * @param value
148     *     allowed object is
149     *     {@link Boolean }
150     *     
151     */
152    public void setChapNum(Boolean value) {
153        this.chapNum = value;
154    }
155
156    /**
157     * Gets the value of the heading property.
158     *
159     * @return
160     *     possible object is
161     *     {@link BigInteger }
162     *     
163     */
164    public BigInteger getHeading() {
165        return heading;
166    }
167
168    /**
169     * Sets the value of the heading property.
170     *
171     * @param value
172     *     allowed object is
173     *     {@link BigInteger }
174     *     
175     */
176    public void setHeading(BigInteger value) {
177        this.heading = value;
178    }
179
180    /**
181     * Gets the value of the noLabel property.
182     *
183     * @return
184     *     possible object is
185     *     {@link Boolean }
186     *     
187     */
188    public boolean isNoLabel() {
189        if (noLabel == null) {
190            return true;
191        } else {
192            return noLabel;
193        }
194    }
195
196    /**
197     * Sets the value of the noLabel property.
198     *
199     * @param value
200     *     allowed object is
201     *     {@link Boolean }
202     *     
203     */
204    public void setNoLabel(Boolean value) {
205        this.noLabel = value;
206    }
207
208    /**
209     * Gets the value of the numFmt property.
210     *
211     * @return
212     *     possible object is
213     *     {@link NumberFormat }
214     *     
215     */
216    public NumberFormat getNumFmt() {
217        return numFmt;
218    }
219
220    /**
221     * Sets the value of the numFmt property.
222     *
223     * @param value
224     *     allowed object is
225     *     {@link NumberFormat }
226     *     
227     */
228    public void setNumFmt(NumberFormat value) {
229        this.numFmt = value;
230    }
231
232    /**
233     * Gets the value of the sep property.
234     *
235     * @return
236     *     possible object is
237     *     {@link STChapterSep }
238     *     
239     */
240    public STChapterSep getSep() {
241        return sep;
242    }
243
244    /**
245     * Sets the value of the sep property.
246     *
247     * @param value
248     *     allowed object is
249     *     {@link STChapterSep }
250     *     
251     */
252    public void setSep(STChapterSep value) {
253        this.sep = value;
254    }
255
256    /**
257     * Gets the parent object in the object tree representing the unmarshalled xml document.
258     *
259     * @return
260     *     The parent object.
261     */
262    public Object getParent() {
263        return this.parent;
264    }
265
266    public void setParent(Object parent) {
267        this.parent = parent;
268    }
269
270    /**
271     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
272     *
273     * @param parent
274     *     The parent object in the object tree.
275     * @param unmarshaller
276     *     The unmarshaller that generated the instance.
277     */
278    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
279        setParent(parent);
280    }
281
282}
Note: See TracBrowser for help on using the repository browser.