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

Revision 888, 4.7 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_Nary 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_Nary">
40 *   &lt;complexContent>
41 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42 *       &lt;sequence>
43 *         &lt;element name="naryPr" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_NaryPr" minOccurs="0"/>
44 *         &lt;element name="sub" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_OMathArg"/>
45 *         &lt;element name="sup" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_OMathArg"/>
46 *         &lt;element name="e" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_OMathArg"/>
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_Nary", propOrder = {
57    "naryPr",
58    "sub",
59    "sup",
60    "e"
61})
62public class CTNary
63    implements Child
64{
65
66    protected CTNaryPr naryPr;
67    @XmlElement(required = true)
68    protected CTOMathArg sub;
69    @XmlElement(required = true)
70    protected CTOMathArg sup;
71    @XmlElement(required = true)
72    protected CTOMathArg e;
73    @XmlTransient
74    private Object parent;
75
76    /**
77     * Gets the value of the naryPr property.
78     *
79     * @return
80     *     possible object is
81     *     {@link CTNaryPr }
82     *     
83     */
84    public CTNaryPr getNaryPr() {
85        return naryPr;
86    }
87
88    /**
89     * Sets the value of the naryPr property.
90     *
91     * @param value
92     *     allowed object is
93     *     {@link CTNaryPr }
94     *     
95     */
96    public void setNaryPr(CTNaryPr value) {
97        this.naryPr = value;
98    }
99
100    /**
101     * Gets the value of the sub property.
102     *
103     * @return
104     *     possible object is
105     *     {@link CTOMathArg }
106     *     
107     */
108    public CTOMathArg getSub() {
109        return sub;
110    }
111
112    /**
113     * Sets the value of the sub property.
114     *
115     * @param value
116     *     allowed object is
117     *     {@link CTOMathArg }
118     *     
119     */
120    public void setSub(CTOMathArg value) {
121        this.sub = value;
122    }
123
124    /**
125     * Gets the value of the sup property.
126     *
127     * @return
128     *     possible object is
129     *     {@link CTOMathArg }
130     *     
131     */
132    public CTOMathArg getSup() {
133        return sup;
134    }
135
136    /**
137     * Sets the value of the sup property.
138     *
139     * @param value
140     *     allowed object is
141     *     {@link CTOMathArg }
142     *     
143     */
144    public void setSup(CTOMathArg value) {
145        this.sup = value;
146    }
147
148    /**
149     * Gets the value of the e property.
150     *
151     * @return
152     *     possible object is
153     *     {@link CTOMathArg }
154     *     
155     */
156    public CTOMathArg getE() {
157        return e;
158    }
159
160    /**
161     * Sets the value of the e property.
162     *
163     * @param value
164     *     allowed object is
165     *     {@link CTOMathArg }
166     *     
167     */
168    public void setE(CTOMathArg value) {
169        this.e = value;
170    }
171
172    /**
173     * Gets the parent object in the object tree representing the unmarshalled xml document.
174     *
175     * @return
176     *     The parent object.
177     */
178    public Object getParent() {
179        return this.parent;
180    }
181
182    public void setParent(Object parent) {
183        this.parent = parent;
184    }
185
186    /**
187     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
188     *
189     * @param parent
190     *     The parent object in the object tree.
191     * @param unmarshaller
192     *     The unmarshaller that generated the instance.
193     */
194    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
195        setParent(parent);
196    }
197
198}
Note: See TracBrowser for help on using the repository browser.