source: trunk/docx4j/src/main/java/org/docx4j/math/CTRad.java @ 888

Revision 888, 4.1 KB checked in by jharrop, 3 years ago (diff)

Generate classes from shared-math.xsd

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.math;
23
24import javax.xml.bind.Unmarshaller;
25import javax.xml.bind.annotation.XmlAccessType;
26import javax.xml.bind.annotation.XmlAccessorType;
27import javax.xml.bind.annotation.XmlElement;
28import javax.xml.bind.annotation.XmlTransient;
29import javax.xml.bind.annotation.XmlType;
30import org.jvnet.jaxb2_commons.ppp.Child;
31
32
33/**
34 * <p>Java class for CT_Rad complex type.
35 *
36 * <p>The following schema fragment specifies the expected content contained within this class.
37 *
38 * <pre>
39 * &lt;complexType name="CT_Rad">
40 *   &lt;complexContent>
41 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42 *       &lt;sequence>
43 *         &lt;element name="radPr" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_RadPr" minOccurs="0"/>
44 *         &lt;element name="deg" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_OMathArg"/>
45 *         &lt;element name="e" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_OMathArg"/>
46 *       &lt;/sequence>
47 *     &lt;/restriction>
48 *   &lt;/complexContent>
49 * &lt;/complexType>
50 * </pre>
51 *
52 *
53 */
54@XmlAccessorType(XmlAccessType.FIELD)
55@XmlType(name = "CT_Rad", propOrder = {
56    "radPr",
57    "deg",
58    "e"
59})
60public class CTRad
61    implements Child
62{
63
64    protected CTRadPr radPr;
65    @XmlElement(required = true)
66    protected CTOMathArg deg;
67    @XmlElement(required = true)
68    protected CTOMathArg e;
69    @XmlTransient
70    private Object parent;
71
72    /**
73     * Gets the value of the radPr property.
74     *
75     * @return
76     *     possible object is
77     *     {@link CTRadPr }
78     *     
79     */
80    public CTRadPr getRadPr() {
81        return radPr;
82    }
83
84    /**
85     * Sets the value of the radPr property.
86     *
87     * @param value
88     *     allowed object is
89     *     {@link CTRadPr }
90     *     
91     */
92    public void setRadPr(CTRadPr value) {
93        this.radPr = value;
94    }
95
96    /**
97     * Gets the value of the deg property.
98     *
99     * @return
100     *     possible object is
101     *     {@link CTOMathArg }
102     *     
103     */
104    public CTOMathArg getDeg() {
105        return deg;
106    }
107
108    /**
109     * Sets the value of the deg property.
110     *
111     * @param value
112     *     allowed object is
113     *     {@link CTOMathArg }
114     *     
115     */
116    public void setDeg(CTOMathArg value) {
117        this.deg = value;
118    }
119
120    /**
121     * Gets the value of the e property.
122     *
123     * @return
124     *     possible object is
125     *     {@link CTOMathArg }
126     *     
127     */
128    public CTOMathArg getE() {
129        return e;
130    }
131
132    /**
133     * Sets the value of the e property.
134     *
135     * @param value
136     *     allowed object is
137     *     {@link CTOMathArg }
138     *     
139     */
140    public void setE(CTOMathArg value) {
141        this.e = value;
142    }
143
144    /**
145     * Gets the parent object in the object tree representing the unmarshalled xml document.
146     *
147     * @return
148     *     The parent object.
149     */
150    public Object getParent() {
151        return this.parent;
152    }
153
154    public void setParent(Object parent) {
155        this.parent = parent;
156    }
157
158    /**
159     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
160     *
161     * @param parent
162     *     The parent object in the object tree.
163     * @param unmarshaller
164     *     The unmarshaller that generated the instance.
165     */
166    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
167        setParent(parent);
168    }
169
170}
Note: See TracBrowser for help on using the repository browser.