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

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