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

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