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

Revision 925, 9.5 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.CTOMath;
35import org.docx4j.math.CTOMathPara;
36import org.jvnet.jaxb2_commons.ppp.Child;
37
38
39/**
40 * <p>Java class for CT_TxbxContent complex type.
41 *
42 * <p>The following schema fragment specifies the expected content contained within this class.
43 *
44 * <pre>
45 * &lt;complexType name="CT_TxbxContent">
46 *   &lt;complexContent>
47 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
48 *       &lt;group ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}EG_BlockLevelElts" maxOccurs="unbounded"/>
49 *     &lt;/restriction>
50 *   &lt;/complexContent>
51 * &lt;/complexType>
52 * </pre>
53 *
54 *
55 */
56@XmlAccessorType(XmlAccessType.FIELD)
57@XmlType(name = "CT_TxbxContent", propOrder = {
58    "egBlockLevelElts"
59})
60public class CTTxbxContent
61    implements Child
62{
63
64    @XmlElementRefs({
65        @XmlElementRef(name = "altChunk", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
66        @XmlElementRef(name = "customXmlInsRangeEnd", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
67        @XmlElementRef(name = "customXmlDelRangeEnd", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
68        @XmlElementRef(name = "permEnd", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
69        @XmlElementRef(name = "moveFromRangeStart", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
70        @XmlElementRef(name = "commentRangeStart", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = CommentRangeStart.class),
71        @XmlElementRef(name = "customXml", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
72        @XmlElementRef(name = "ins", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = RunIns.class),
73        @XmlElementRef(name = "permStart", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
74        @XmlElementRef(name = "customXmlMoveToRangeStart", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
75        @XmlElementRef(name = "p", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = P.class),
76        @XmlElementRef(name = "oMath", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
77        @XmlElementRef(name = "moveTo", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
78        @XmlElementRef(name = "moveToRangeEnd", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
79        @XmlElementRef(name = "customXmlMoveFromRangeEnd", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
80        @XmlElementRef(name = "bookmarkStart", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
81        @XmlElementRef(name = "sdt", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = SdtBlock.class),
82        @XmlElementRef(name = "commentRangeEnd", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = CommentRangeEnd.class),
83        @XmlElementRef(name = "moveFromRangeEnd", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
84        @XmlElementRef(name = "customXmlMoveToRangeEnd", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
85        @XmlElementRef(name = "proofErr", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = ProofErr.class),
86        @XmlElementRef(name = "del", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = RunDel.class),
87        @XmlElementRef(name = "oMathPara", namespace = "http://schemas.openxmlformats.org/officeDocument/2006/math", type = JAXBElement.class),
88        @XmlElementRef(name = "customXmlInsRangeStart", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
89        @XmlElementRef(name = "customXmlMoveFromRangeStart", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
90        @XmlElementRef(name = "customXmlDelRangeStart", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
91        @XmlElementRef(name = "tbl", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
92        @XmlElementRef(name = "moveFrom", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
93        @XmlElementRef(name = "bookmarkEnd", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class),
94        @XmlElementRef(name = "moveToRangeStart", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", type = JAXBElement.class)
95    })
96    protected List<Object> egBlockLevelElts;
97    @XmlTransient
98    private Object parent;
99
100    /**
101     * Gets the value of the egBlockLevelElts property.
102     *
103     * <p>
104     * This accessor method returns a reference to the live list,
105     * not a snapshot. Therefore any modification you make to the
106     * returned list will be present inside the JAXB object.
107     * This is why there is not a <CODE>set</CODE> method for the egBlockLevelElts property.
108     *
109     * <p>
110     * For example, to add a new item, do as follows:
111     * <pre>
112     *    getEGBlockLevelElts().add(newItem);
113     * </pre>
114     *
115     *
116     * <p>
117     * Objects of the following type(s) are allowed in the list
118     * {@link JAXBElement }{@code <}{@link CTAltChunk }{@code >}
119     * {@link JAXBElement }{@code <}{@link CTMarkup }{@code >}
120     * {@link JAXBElement }{@code <}{@link CTMarkup }{@code >}
121     * {@link JAXBElement }{@code <}{@link CTPerm }{@code >}
122     * {@link JAXBElement }{@code <}{@link CTMoveBookmark }{@code >}
123     * {@link CommentRangeStart }
124     * {@link JAXBElement }{@code <}{@link CTCustomXmlBlock }{@code >}
125     * {@link RunIns }
126     * {@link JAXBElement }{@code <}{@link RangePermissionStart }{@code >}
127     * {@link JAXBElement }{@code <}{@link CTTrackChange }{@code >}
128     * {@link P }
129     * {@link JAXBElement }{@code <}{@link CTOMath }{@code >}
130     * {@link JAXBElement }{@code <}{@link RunTrackChange }{@code >}
131     * {@link JAXBElement }{@code <}{@link CTMarkupRange }{@code >}
132     * {@link JAXBElement }{@code <}{@link CTMarkup }{@code >}
133     * {@link JAXBElement }{@code <}{@link CTBookmark }{@code >}
134     * {@link SdtBlock }
135     * {@link CommentRangeEnd }
136     * {@link JAXBElement }{@code <}{@link CTMarkupRange }{@code >}
137     * {@link JAXBElement }{@code <}{@link CTMarkup }{@code >}
138     * {@link ProofErr }
139     * {@link RunDel }
140     * {@link JAXBElement }{@code <}{@link CTOMathPara }{@code >}
141     * {@link JAXBElement }{@code <}{@link CTTrackChange }{@code >}
142     * {@link JAXBElement }{@code <}{@link CTTrackChange }{@code >}
143     * {@link JAXBElement }{@code <}{@link Tbl }{@code >}
144     * {@link JAXBElement }{@code <}{@link CTTrackChange }{@code >}
145     * {@link JAXBElement }{@code <}{@link RunTrackChange }{@code >}
146     * {@link JAXBElement }{@code <}{@link CTMarkupRange }{@code >}
147     * {@link JAXBElement }{@code <}{@link CTMoveBookmark }{@code >}
148     *
149     *
150     */
151    public List<Object> getEGBlockLevelElts() {
152        if (egBlockLevelElts == null) {
153            egBlockLevelElts = new ArrayList<Object>();
154        }
155        return this.egBlockLevelElts;
156    }
157
158    /**
159     * Gets the parent object in the object tree representing the unmarshalled xml document.
160     *
161     * @return
162     *     The parent object.
163     */
164    public Object getParent() {
165        return this.parent;
166    }
167
168    public void setParent(Object parent) {
169        this.parent = parent;
170    }
171
172    /**
173     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
174     *
175     * @param parent
176     *     The parent object in the object tree.
177     * @param unmarshaller
178     *     The unmarshaller that generated the instance.
179     */
180    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
181        setParent(parent);
182    }
183
184}
Note: See TracBrowser for help on using the repository browser.