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

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