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

Revision 888, 4.1 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.XmlElement;
28import javax.xml.bind.annotation.XmlTransient;
29import javax.xml.bind.annotation.XmlType;
30import org.jvnet.jaxb2_commons.ppp.Child;
31
32
33/**
34 * <p>Java class for CT_F complex type.
35 *
36 * <p>The following schema fragment specifies the expected content contained within this class.
37 *
38 * <pre>
39 * &lt;complexType name="CT_F">
40 *   &lt;complexContent>
41 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42 *       &lt;sequence>
43 *         &lt;element name="fPr" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_FPr" minOccurs="0"/>
44 *         &lt;element name="num" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_OMathArg"/>
45 *         &lt;element name="den" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_OMathArg"/>
46 *       &lt;/sequence>
47 *     &lt;/restriction>
48 *   &lt;/complexContent>
49 * &lt;/complexType>
50 * </pre>
51 *
52 *
53 */
54@XmlAccessorType(XmlAccessType.FIELD)
55@XmlType(name = "CT_F", propOrder = {
56    "fPr",
57    "num",
58    "den"
59})
60public class CTF
61    implements Child
62{
63
64    protected CTFPr fPr;
65    @XmlElement(required = true)
66    protected CTOMathArg num;
67    @XmlElement(required = true)
68    protected CTOMathArg den;
69    @XmlTransient
70    private Object parent;
71
72    /**
73     * Gets the value of the fPr property.
74     *
75     * @return
76     *     possible object is
77     *     {@link CTFPr }
78     *     
79     */
80    public CTFPr getFPr() {
81        return fPr;
82    }
83
84    /**
85     * Sets the value of the fPr property.
86     *
87     * @param value
88     *     allowed object is
89     *     {@link CTFPr }
90     *     
91     */
92    public void setFPr(CTFPr value) {
93        this.fPr = value;
94    }
95
96    /**
97     * Gets the value of the num property.
98     *
99     * @return
100     *     possible object is
101     *     {@link CTOMathArg }
102     *     
103     */
104    public CTOMathArg getNum() {
105        return num;
106    }
107
108    /**
109     * Sets the value of the num property.
110     *
111     * @param value
112     *     allowed object is
113     *     {@link CTOMathArg }
114     *     
115     */
116    public void setNum(CTOMathArg value) {
117        this.num = value;
118    }
119
120    /**
121     * Gets the value of the den property.
122     *
123     * @return
124     *     possible object is
125     *     {@link CTOMathArg }
126     *     
127     */
128    public CTOMathArg getDen() {
129        return den;
130    }
131
132    /**
133     * Sets the value of the den property.
134     *
135     * @param value
136     *     allowed object is
137     *     {@link CTOMathArg }
138     *     
139     */
140    public void setDen(CTOMathArg value) {
141        this.den = value;
142    }
143
144    /**
145     * Gets the parent object in the object tree representing the unmarshalled xml document.
146     *
147     * @return
148     *     The parent object.
149     */
150    public Object getParent() {
151        return this.parent;
152    }
153
154    public void setParent(Object parent) {
155        this.parent = parent;
156    }
157
158    /**
159     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
160     *
161     * @param parent
162     *     The parent object in the object tree.
163     * @param unmarshaller
164     *     The unmarshaller that generated the instance.
165     */
166    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
167        setParent(parent);
168    }
169
170}
Note: See TracBrowser for help on using the repository browser.