source: trunk/docx4j/src/main/java/org/docx4j/wml/RunTrackChange.java @ 925

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