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

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