source: trunk/docx4j/src/main/java/org/docx4j/math/CTMPr.java @ 888

Revision 888, 7.9 KB checked in by jharrop, 3 years ago (diff)

Generate classes from shared-math.xsd

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.math;
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_MPr 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_MPr">
39 *   &lt;complexContent>
40 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
41 *       &lt;sequence>
42 *         &lt;element name="baseJc" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_YAlign" minOccurs="0"/>
43 *         &lt;element name="plcHide" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_OnOff" minOccurs="0"/>
44 *         &lt;element name="rSpRule" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_SpacingRule" minOccurs="0"/>
45 *         &lt;element name="cGpRule" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_SpacingRule" minOccurs="0"/>
46 *         &lt;element name="rSp" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_UnSignedInteger" minOccurs="0"/>
47 *         &lt;element name="cSp" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_UnSignedInteger" minOccurs="0"/>
48 *         &lt;element name="cGp" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_UnSignedInteger" minOccurs="0"/>
49 *         &lt;element name="mcs" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_MCS" minOccurs="0"/>
50 *         &lt;element name="ctrlPr" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_CtrlPr" minOccurs="0"/>
51 *       &lt;/sequence>
52 *     &lt;/restriction>
53 *   &lt;/complexContent>
54 * &lt;/complexType>
55 * </pre>
56 *
57 *
58 */
59@XmlAccessorType(XmlAccessType.FIELD)
60@XmlType(name = "CT_MPr", propOrder = {
61    "baseJc",
62    "plcHide",
63    "rSpRule",
64    "cGpRule",
65    "rSp",
66    "cSp",
67    "cGp",
68    "mcs",
69    "ctrlPr"
70})
71public class CTMPr
72    implements Child
73{
74
75    protected CTYAlign baseJc;
76    protected CTOnOff plcHide;
77    protected CTSpacingRule rSpRule;
78    protected CTSpacingRule cGpRule;
79    protected CTUnSignedInteger rSp;
80    protected CTUnSignedInteger cSp;
81    protected CTUnSignedInteger cGp;
82    protected CTMCS mcs;
83    protected CTCtrlPr ctrlPr;
84    @XmlTransient
85    private Object parent;
86
87    /**
88     * Gets the value of the baseJc property.
89     *
90     * @return
91     *     possible object is
92     *     {@link CTYAlign }
93     *     
94     */
95    public CTYAlign getBaseJc() {
96        return baseJc;
97    }
98
99    /**
100     * Sets the value of the baseJc property.
101     *
102     * @param value
103     *     allowed object is
104     *     {@link CTYAlign }
105     *     
106     */
107    public void setBaseJc(CTYAlign value) {
108        this.baseJc = value;
109    }
110
111    /**
112     * Gets the value of the plcHide property.
113     *
114     * @return
115     *     possible object is
116     *     {@link CTOnOff }
117     *     
118     */
119    public CTOnOff getPlcHide() {
120        return plcHide;
121    }
122
123    /**
124     * Sets the value of the plcHide property.
125     *
126     * @param value
127     *     allowed object is
128     *     {@link CTOnOff }
129     *     
130     */
131    public void setPlcHide(CTOnOff value) {
132        this.plcHide = value;
133    }
134
135    /**
136     * Gets the value of the rSpRule property.
137     *
138     * @return
139     *     possible object is
140     *     {@link CTSpacingRule }
141     *     
142     */
143    public CTSpacingRule getRSpRule() {
144        return rSpRule;
145    }
146
147    /**
148     * Sets the value of the rSpRule property.
149     *
150     * @param value
151     *     allowed object is
152     *     {@link CTSpacingRule }
153     *     
154     */
155    public void setRSpRule(CTSpacingRule value) {
156        this.rSpRule = value;
157    }
158
159    /**
160     * Gets the value of the cGpRule property.
161     *
162     * @return
163     *     possible object is
164     *     {@link CTSpacingRule }
165     *     
166     */
167    public CTSpacingRule getCGpRule() {
168        return cGpRule;
169    }
170
171    /**
172     * Sets the value of the cGpRule property.
173     *
174     * @param value
175     *     allowed object is
176     *     {@link CTSpacingRule }
177     *     
178     */
179    public void setCGpRule(CTSpacingRule value) {
180        this.cGpRule = value;
181    }
182
183    /**
184     * Gets the value of the rSp property.
185     *
186     * @return
187     *     possible object is
188     *     {@link CTUnSignedInteger }
189     *     
190     */
191    public CTUnSignedInteger getRSp() {
192        return rSp;
193    }
194
195    /**
196     * Sets the value of the rSp property.
197     *
198     * @param value
199     *     allowed object is
200     *     {@link CTUnSignedInteger }
201     *     
202     */
203    public void setRSp(CTUnSignedInteger value) {
204        this.rSp = value;
205    }
206
207    /**
208     * Gets the value of the cSp property.
209     *
210     * @return
211     *     possible object is
212     *     {@link CTUnSignedInteger }
213     *     
214     */
215    public CTUnSignedInteger getCSp() {
216        return cSp;
217    }
218
219    /**
220     * Sets the value of the cSp property.
221     *
222     * @param value
223     *     allowed object is
224     *     {@link CTUnSignedInteger }
225     *     
226     */
227    public void setCSp(CTUnSignedInteger value) {
228        this.cSp = value;
229    }
230
231    /**
232     * Gets the value of the cGp property.
233     *
234     * @return
235     *     possible object is
236     *     {@link CTUnSignedInteger }
237     *     
238     */
239    public CTUnSignedInteger getCGp() {
240        return cGp;
241    }
242
243    /**
244     * Sets the value of the cGp property.
245     *
246     * @param value
247     *     allowed object is
248     *     {@link CTUnSignedInteger }
249     *     
250     */
251    public void setCGp(CTUnSignedInteger value) {
252        this.cGp = value;
253    }
254
255    /**
256     * Gets the value of the mcs property.
257     *
258     * @return
259     *     possible object is
260     *     {@link CTMCS }
261     *     
262     */
263    public CTMCS getMcs() {
264        return mcs;
265    }
266
267    /**
268     * Sets the value of the mcs property.
269     *
270     * @param value
271     *     allowed object is
272     *     {@link CTMCS }
273     *     
274     */
275    public void setMcs(CTMCS value) {
276        this.mcs = value;
277    }
278
279    /**
280     * Gets the value of the ctrlPr property.
281     *
282     * @return
283     *     possible object is
284     *     {@link CTCtrlPr }
285     *     
286     */
287    public CTCtrlPr getCtrlPr() {
288        return ctrlPr;
289    }
290
291    /**
292     * Sets the value of the ctrlPr property.
293     *
294     * @param value
295     *     allowed object is
296     *     {@link CTCtrlPr }
297     *     
298     */
299    public void setCtrlPr(CTCtrlPr value) {
300        this.ctrlPr = value;
301    }
302
303    /**
304     * Gets the parent object in the object tree representing the unmarshalled xml document.
305     *
306     * @return
307     *     The parent object.
308     */
309    public Object getParent() {
310        return this.parent;
311    }
312
313    public void setParent(Object parent) {
314        this.parent = parent;
315    }
316
317    /**
318     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
319     *
320     * @param parent
321     *     The parent object in the object tree.
322     * @param unmarshaller
323     *     The unmarshaller that generated the instance.
324     */
325    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
326        setParent(parent);
327    }
328
329}
Note: See TracBrowser for help on using the repository browser.