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

Revision 888, 12.6 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_MathPr 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_MathPr">
39 *   &lt;complexContent>
40 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
41 *       &lt;sequence>
42 *         &lt;element name="mathFont" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_String" minOccurs="0"/>
43 *         &lt;element name="brkBin" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_BreakBin" minOccurs="0"/>
44 *         &lt;element name="brkBinSub" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_BreakBinSub" minOccurs="0"/>
45 *         &lt;element name="smallFrac" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_OnOff" minOccurs="0"/>
46 *         &lt;element name="dispDef" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_OnOff" minOccurs="0"/>
47 *         &lt;element name="lMargin" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_TwipsMeasure" minOccurs="0"/>
48 *         &lt;element name="rMargin" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_TwipsMeasure" minOccurs="0"/>
49 *         &lt;element name="defJc" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_OMathJc" minOccurs="0"/>
50 *         &lt;element name="preSp" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_TwipsMeasure" minOccurs="0"/>
51 *         &lt;element name="postSp" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_TwipsMeasure" minOccurs="0"/>
52 *         &lt;element name="interSp" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_TwipsMeasure" minOccurs="0"/>
53 *         &lt;element name="intraSp" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_TwipsMeasure" minOccurs="0"/>
54 *         &lt;choice minOccurs="0">
55 *           &lt;element name="wrapIndent" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_TwipsMeasure"/>
56 *           &lt;element name="wrapRight" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_OnOff"/>
57 *         &lt;/choice>
58 *         &lt;element name="intLim" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_LimLoc" minOccurs="0"/>
59 *         &lt;element name="naryLim" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_LimLoc" minOccurs="0"/>
60 *       &lt;/sequence>
61 *     &lt;/restriction>
62 *   &lt;/complexContent>
63 * &lt;/complexType>
64 * </pre>
65 *
66 *
67 */
68@XmlAccessorType(XmlAccessType.FIELD)
69@XmlType(name = "CT_MathPr", propOrder = {
70    "mathFont",
71    "brkBin",
72    "brkBinSub",
73    "smallFrac",
74    "dispDef",
75    "lMargin",
76    "rMargin",
77    "defJc",
78    "preSp",
79    "postSp",
80    "interSp",
81    "intraSp",
82    "wrapIndent",
83    "wrapRight",
84    "intLim",
85    "naryLim"
86})
87public class CTMathPr
88    implements Child
89{
90
91    protected CTString mathFont;
92    protected CTBreakBin brkBin;
93    protected CTBreakBinSub brkBinSub;
94    protected CTOnOff smallFrac;
95    protected CTOnOff dispDef;
96    protected CTTwipsMeasure lMargin;
97    protected CTTwipsMeasure rMargin;
98    protected CTOMathJc defJc;
99    protected CTTwipsMeasure preSp;
100    protected CTTwipsMeasure postSp;
101    protected CTTwipsMeasure interSp;
102    protected CTTwipsMeasure intraSp;
103    protected CTTwipsMeasure wrapIndent;
104    protected CTOnOff wrapRight;
105    protected CTLimLoc intLim;
106    protected CTLimLoc naryLim;
107    @XmlTransient
108    private Object parent;
109
110    /**
111     * Gets the value of the mathFont property.
112     *
113     * @return
114     *     possible object is
115     *     {@link CTString }
116     *     
117     */
118    public CTString getMathFont() {
119        return mathFont;
120    }
121
122    /**
123     * Sets the value of the mathFont property.
124     *
125     * @param value
126     *     allowed object is
127     *     {@link CTString }
128     *     
129     */
130    public void setMathFont(CTString value) {
131        this.mathFont = value;
132    }
133
134    /**
135     * Gets the value of the brkBin property.
136     *
137     * @return
138     *     possible object is
139     *     {@link CTBreakBin }
140     *     
141     */
142    public CTBreakBin getBrkBin() {
143        return brkBin;
144    }
145
146    /**
147     * Sets the value of the brkBin property.
148     *
149     * @param value
150     *     allowed object is
151     *     {@link CTBreakBin }
152     *     
153     */
154    public void setBrkBin(CTBreakBin value) {
155        this.brkBin = value;
156    }
157
158    /**
159     * Gets the value of the brkBinSub property.
160     *
161     * @return
162     *     possible object is
163     *     {@link CTBreakBinSub }
164     *     
165     */
166    public CTBreakBinSub getBrkBinSub() {
167        return brkBinSub;
168    }
169
170    /**
171     * Sets the value of the brkBinSub property.
172     *
173     * @param value
174     *     allowed object is
175     *     {@link CTBreakBinSub }
176     *     
177     */
178    public void setBrkBinSub(CTBreakBinSub value) {
179        this.brkBinSub = value;
180    }
181
182    /**
183     * Gets the value of the smallFrac property.
184     *
185     * @return
186     *     possible object is
187     *     {@link CTOnOff }
188     *     
189     */
190    public CTOnOff getSmallFrac() {
191        return smallFrac;
192    }
193
194    /**
195     * Sets the value of the smallFrac property.
196     *
197     * @param value
198     *     allowed object is
199     *     {@link CTOnOff }
200     *     
201     */
202    public void setSmallFrac(CTOnOff value) {
203        this.smallFrac = value;
204    }
205
206    /**
207     * Gets the value of the dispDef property.
208     *
209     * @return
210     *     possible object is
211     *     {@link CTOnOff }
212     *     
213     */
214    public CTOnOff getDispDef() {
215        return dispDef;
216    }
217
218    /**
219     * Sets the value of the dispDef property.
220     *
221     * @param value
222     *     allowed object is
223     *     {@link CTOnOff }
224     *     
225     */
226    public void setDispDef(CTOnOff value) {
227        this.dispDef = value;
228    }
229
230    /**
231     * Gets the value of the lMargin property.
232     *
233     * @return
234     *     possible object is
235     *     {@link CTTwipsMeasure }
236     *     
237     */
238    public CTTwipsMeasure getLMargin() {
239        return lMargin;
240    }
241
242    /**
243     * Sets the value of the lMargin property.
244     *
245     * @param value
246     *     allowed object is
247     *     {@link CTTwipsMeasure }
248     *     
249     */
250    public void setLMargin(CTTwipsMeasure value) {
251        this.lMargin = value;
252    }
253
254    /**
255     * Gets the value of the rMargin property.
256     *
257     * @return
258     *     possible object is
259     *     {@link CTTwipsMeasure }
260     *     
261     */
262    public CTTwipsMeasure getRMargin() {
263        return rMargin;
264    }
265
266    /**
267     * Sets the value of the rMargin property.
268     *
269     * @param value
270     *     allowed object is
271     *     {@link CTTwipsMeasure }
272     *     
273     */
274    public void setRMargin(CTTwipsMeasure value) {
275        this.rMargin = value;
276    }
277
278    /**
279     * Gets the value of the defJc property.
280     *
281     * @return
282     *     possible object is
283     *     {@link CTOMathJc }
284     *     
285     */
286    public CTOMathJc getDefJc() {
287        return defJc;
288    }
289
290    /**
291     * Sets the value of the defJc property.
292     *
293     * @param value
294     *     allowed object is
295     *     {@link CTOMathJc }
296     *     
297     */
298    public void setDefJc(CTOMathJc value) {
299        this.defJc = value;
300    }
301
302    /**
303     * Gets the value of the preSp property.
304     *
305     * @return
306     *     possible object is
307     *     {@link CTTwipsMeasure }
308     *     
309     */
310    public CTTwipsMeasure getPreSp() {
311        return preSp;
312    }
313
314    /**
315     * Sets the value of the preSp property.
316     *
317     * @param value
318     *     allowed object is
319     *     {@link CTTwipsMeasure }
320     *     
321     */
322    public void setPreSp(CTTwipsMeasure value) {
323        this.preSp = value;
324    }
325
326    /**
327     * Gets the value of the postSp property.
328     *
329     * @return
330     *     possible object is
331     *     {@link CTTwipsMeasure }
332     *     
333     */
334    public CTTwipsMeasure getPostSp() {
335        return postSp;
336    }
337
338    /**
339     * Sets the value of the postSp property.
340     *
341     * @param value
342     *     allowed object is
343     *     {@link CTTwipsMeasure }
344     *     
345     */
346    public void setPostSp(CTTwipsMeasure value) {
347        this.postSp = value;
348    }
349
350    /**
351     * Gets the value of the interSp property.
352     *
353     * @return
354     *     possible object is
355     *     {@link CTTwipsMeasure }
356     *     
357     */
358    public CTTwipsMeasure getInterSp() {
359        return interSp;
360    }
361
362    /**
363     * Sets the value of the interSp property.
364     *
365     * @param value
366     *     allowed object is
367     *     {@link CTTwipsMeasure }
368     *     
369     */
370    public void setInterSp(CTTwipsMeasure value) {
371        this.interSp = value;
372    }
373
374    /**
375     * Gets the value of the intraSp property.
376     *
377     * @return
378     *     possible object is
379     *     {@link CTTwipsMeasure }
380     *     
381     */
382    public CTTwipsMeasure getIntraSp() {
383        return intraSp;
384    }
385
386    /**
387     * Sets the value of the intraSp property.
388     *
389     * @param value
390     *     allowed object is
391     *     {@link CTTwipsMeasure }
392     *     
393     */
394    public void setIntraSp(CTTwipsMeasure value) {
395        this.intraSp = value;
396    }
397
398    /**
399     * Gets the value of the wrapIndent property.
400     *
401     * @return
402     *     possible object is
403     *     {@link CTTwipsMeasure }
404     *     
405     */
406    public CTTwipsMeasure getWrapIndent() {
407        return wrapIndent;
408    }
409
410    /**
411     * Sets the value of the wrapIndent property.
412     *
413     * @param value
414     *     allowed object is
415     *     {@link CTTwipsMeasure }
416     *     
417     */
418    public void setWrapIndent(CTTwipsMeasure value) {
419        this.wrapIndent = value;
420    }
421
422    /**
423     * Gets the value of the wrapRight property.
424     *
425     * @return
426     *     possible object is
427     *     {@link CTOnOff }
428     *     
429     */
430    public CTOnOff getWrapRight() {
431        return wrapRight;
432    }
433
434    /**
435     * Sets the value of the wrapRight property.
436     *
437     * @param value
438     *     allowed object is
439     *     {@link CTOnOff }
440     *     
441     */
442    public void setWrapRight(CTOnOff value) {
443        this.wrapRight = value;
444    }
445
446    /**
447     * Gets the value of the intLim property.
448     *
449     * @return
450     *     possible object is
451     *     {@link CTLimLoc }
452     *     
453     */
454    public CTLimLoc getIntLim() {
455        return intLim;
456    }
457
458    /**
459     * Sets the value of the intLim property.
460     *
461     * @param value
462     *     allowed object is
463     *     {@link CTLimLoc }
464     *     
465     */
466    public void setIntLim(CTLimLoc value) {
467        this.intLim = value;
468    }
469
470    /**
471     * Gets the value of the naryLim property.
472     *
473     * @return
474     *     possible object is
475     *     {@link CTLimLoc }
476     *     
477     */
478    public CTLimLoc getNaryLim() {
479        return naryLim;
480    }
481
482    /**
483     * Sets the value of the naryLim property.
484     *
485     * @param value
486     *     allowed object is
487     *     {@link CTLimLoc }
488     *     
489     */
490    public void setNaryLim(CTLimLoc value) {
491        this.naryLim = value;
492    }
493
494    /**
495     * Gets the parent object in the object tree representing the unmarshalled xml document.
496     *
497     * @return
498     *     The parent object.
499     */
500    public Object getParent() {
501        return this.parent;
502    }
503
504    public void setParent(Object parent) {
505        this.parent = parent;
506    }
507
508    /**
509     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
510     *
511     * @param parent
512     *     The parent object in the object tree.
513     * @param unmarshaller
514     *     The unmarshaller that generated the instance.
515     */
516    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
517        setParent(parent);
518    }
519
520}
Note: See TracBrowser for help on using the repository browser.