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

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