source: trunk/docx4j/src/main/java/org/docx4j/math/CTOMath.java @ 925

Revision 925, 12.9 KB checked in by jharrop, 3 years ago (diff)

Regenerated classes from wml.xsd, having added EG_MathContent back in to EG_RunLevelElements

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 java.util.ArrayList;
25import java.util.List;
26import javax.xml.bind.JAXBElement;
27import javax.xml.bind.Unmarshaller;
28import javax.xml.bind.annotation.XmlAccessType;
29import javax.xml.bind.annotation.XmlAccessorType;
30import javax.xml.bind.annotation.XmlElementRef;
31import javax.xml.bind.annotation.XmlElementRefs;
32import javax.xml.bind.annotation.XmlTransient;
33import javax.xml.bind.annotation.XmlType;
34import org.docx4j.wml.CTBookmark;
35import org.docx4j.wml.CTMarkup;
36import org.docx4j.wml.CTMarkupRange;
37import org.docx4j.wml.CTMoveBookmark;
38import org.docx4j.wml.CTPerm;
39import org.docx4j.wml.CTTrackChange;
40import org.docx4j.wml.CommentRangeEnd;
41import org.docx4j.wml.CommentRangeStart;
42import org.docx4j.wml.ProofErr;
43import org.docx4j.wml.RangePermissionStart;
44import org.docx4j.wml.RunDel;
45import org.docx4j.wml.RunIns;
46import org.docx4j.wml.RunTrackChange;
47import org.jvnet.jaxb2_commons.ppp.Child;
48
49
50/**
51 * <p>Java class for CT_OMath complex type.
52 *
53 * <p>The following schema fragment specifies the expected content contained within this class.
54 *
55 * <pre>
56 * &lt;complexType name="CT_OMath">
57 *   &lt;complexContent>
58 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
59 *       &lt;sequence>
60 *         &lt;group ref="{http://schemas.openxmlformats.org/officeDocument/2006/math}EG_OMathElements" maxOccurs="unbounded" minOccurs="0"/>
61 *       &lt;/sequence>
62 *     &lt;/restriction>
63 *   &lt;/complexContent>
64 * &lt;/complexType>
65 * </pre>
66 *
67 *
68 */
69@XmlAccessorType(XmlAccessType.FIELD)
70@XmlType(name = "CT_OMath", propOrder = {
71    "egoMathElements"
72})
73public class CTOMath
74    implements Child
75{
76
77    @XmlElementRefs({
78        @XmlElementRef(name = "phant", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
79        @XmlElementRef(name = "customXmlMoveToRangeStart", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
80        @XmlElementRef(name = "m", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
81        @XmlElementRef(name = "commentRangeStart", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = CommentRangeStart.class),
82        @XmlElementRef(name = "moveTo", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
83        @XmlElementRef(name = "limUpp", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
84        @XmlElementRef(name = "eqArr", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
85        @XmlElementRef(name = "customXmlDelRangeStart", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
86        @XmlElementRef(name = "customXmlMoveFromRangeStart", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
87        @XmlElementRef(name = "sSub", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
88        @XmlElementRef(name = "ins", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = RunIns.class),
89        @XmlElementRef(name = "customXmlInsRangeEnd", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
90        @XmlElementRef(name = "customXmlMoveFromRangeEnd", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
91        @XmlElementRef(name = "oMath", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
92        @XmlElementRef(name = "sSup", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
93        @XmlElementRef(name = "nary", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
94        @XmlElementRef(name = "moveToRangeEnd", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
95        @XmlElementRef(name = "borderBox", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
96        @XmlElementRef(name = "commentRangeEnd", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = CommentRangeEnd.class),
97        @XmlElementRef(name = "r", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
98        @XmlElementRef(name = "sSubSup", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
99        @XmlElementRef(name = "moveFrom", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
100        @XmlElementRef(name = "acc", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
101        @XmlElementRef(name = "customXmlDelRangeEnd", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
102        @XmlElementRef(name = "customXmlInsRangeStart", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
103        @XmlElementRef(name = "limLow", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
104        @XmlElementRef(name = "proofErr", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = ProofErr.class),
105        @XmlElementRef(name = "d", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
106        @XmlElementRef(name = "del", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = RunDel.class),
107        @XmlElementRef(name = "moveFromRangeEnd", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
108        @XmlElementRef(name = "moveToRangeStart", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
109        @XmlElementRef(name = "bookmarkEnd", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
110        @XmlElementRef(name = "bar", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
111        @XmlElementRef(name = "oMathPara", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
112        @XmlElementRef(name = "box", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
113        @XmlElementRef(name = "permEnd", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
114        @XmlElementRef(name = "f", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
115        @XmlElementRef(name = "groupChr", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
116        @XmlElementRef(name = "func", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
117        @XmlElementRef(name = "rad", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
118        @XmlElementRef(name = "customXmlMoveToRangeEnd", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
119        @XmlElementRef(name = "permStart", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
120        @XmlElementRef(name = "sPre", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
121        @XmlElementRef(name = "bookmarkStart", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
122        @XmlElementRef(name = "moveFromRangeStart", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class)
123    })
124    protected List<Object> egoMathElements;
125    @XmlTransient
126    private Object parent;
127
128    /**
129     * Gets the value of the egoMathElements property.
130     *
131     * <p>
132     * This accessor method returns a reference to the live list,
133     * not a snapshot. Therefore any modification you make to the
134     * returned list will be present inside the JAXB object.
135     * This is why there is not a <CODE>set</CODE> method for the egoMathElements property.
136     *
137     * <p>
138     * For example, to add a new item, do as follows:
139     * <pre>
140     *    getEGOMathElements().add(newItem);
141     * </pre>
142     *
143     *
144     * <p>
145     * Objects of the following type(s) are allowed in the list
146     * {@link JAXBElement }{@code <}{@link CTTrackChange }{@code >}
147     * {@link JAXBElement }{@code <}{@link CTPhant }{@code >}
148     * {@link JAXBElement }{@code <}{@link CTM }{@code >}
149     * {@link JAXBElement }{@code <}{@link RunTrackChange }{@code >}
150     * {@link CommentRangeStart }
151     * {@link JAXBElement }{@code <}{@link CTEqArr }{@code >}
152     * {@link JAXBElement }{@code <}{@link CTLimUpp }{@code >}
153     * {@link JAXBElement }{@code <}{@link CTTrackChange }{@code >}
154     * {@link JAXBElement }{@code <}{@link CTTrackChange }{@code >}
155     * {@link JAXBElement }{@code <}{@link CTSSub }{@code >}
156     * {@link JAXBElement }{@code <}{@link CTMarkup }{@code >}
157     * {@link RunIns }
158     * {@link JAXBElement }{@code <}{@link CTMarkup }{@code >}
159     * {@link JAXBElement }{@code <}{@link CTSSup }{@code >}
160     * {@link JAXBElement }{@code <}{@link CTOMath }{@code >}
161     * {@link JAXBElement }{@code <}{@link CTNary }{@code >}
162     * {@link JAXBElement }{@code <}{@link CTMarkupRange }{@code >}
163     * {@link JAXBElement }{@code <}{@link CTBorderBox }{@code >}
164     * {@link CommentRangeEnd }
165     * {@link JAXBElement }{@code <}{@link CTR }{@code >}
166     * {@link JAXBElement }{@code <}{@link CTSSubSup }{@code >}
167     * {@link JAXBElement }{@code <}{@link RunTrackChange }{@code >}
168     * {@link JAXBElement }{@code <}{@link CTLimLow }{@code >}
169     * {@link JAXBElement }{@code <}{@link CTTrackChange }{@code >}
170     * {@link JAXBElement }{@code <}{@link CTMarkup }{@code >}
171     * {@link JAXBElement }{@code <}{@link CTAcc }{@code >}
172     * {@link JAXBElement }{@code <}{@link CTD }{@code >}
173     * {@link ProofErr }
174     * {@link RunDel }
175     * {@link JAXBElement }{@code <}{@link CTMarkupRange }{@code >}
176     * {@link JAXBElement }{@code <}{@link CTMoveBookmark }{@code >}
177     * {@link JAXBElement }{@code <}{@link CTMarkupRange }{@code >}
178     * {@link JAXBElement }{@code <}{@link CTOMathPara }{@code >}
179     * {@link JAXBElement }{@code <}{@link CTBar }{@code >}
180     * {@link JAXBElement }{@code <}{@link CTBox }{@code >}
181     * {@link JAXBElement }{@code <}{@link CTPerm }{@code >}
182     * {@link JAXBElement }{@code <}{@link CTGroupChr }{@code >}
183     * {@link JAXBElement }{@code <}{@link CTF }{@code >}
184     * {@link JAXBElement }{@code <}{@link CTFunc }{@code >}
185     * {@link JAXBElement }{@code <}{@link RangePermissionStart }{@code >}
186     * {@link JAXBElement }{@code <}{@link CTMarkup }{@code >}
187     * {@link JAXBElement }{@code <}{@link CTRad }{@code >}
188     * {@link JAXBElement }{@code <}{@link CTSPre }{@code >}
189     * {@link JAXBElement }{@code <}{@link CTBookmark }{@code >}
190     * {@link JAXBElement }{@code <}{@link CTMoveBookmark }{@code >}
191     *
192     *
193     */
194    public List<Object> getEGOMathElements() {
195        if (egoMathElements == null) {
196            egoMathElements = new ArrayList<Object>();
197        }
198        return this.egoMathElements;
199    }
200
201    /**
202     * Gets the parent object in the object tree representing the unmarshalled xml document.
203     *
204     * @return
205     *     The parent object.
206     */
207    public Object getParent() {
208        return this.parent;
209    }
210
211    public void setParent(Object parent) {
212        this.parent = parent;
213    }
214
215    /**
216     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
217     *
218     * @param parent
219     *     The parent object in the object tree.
220     * @param unmarshaller
221     *     The unmarshaller that generated the instance.
222     */
223    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
224        setParent(parent);
225    }
226
227}
Note: See TracBrowser for help on using the repository browser.