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

Revision 888, 3.5 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_Box 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_Box">
40 *   &lt;complexContent>
41 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42 *       &lt;sequence>
43 *         &lt;element name="boxPr" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_BoxPr" minOccurs="0"/>
44 *         &lt;element name="e" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_OMathArg"/>
45 *       &lt;/sequence>
46 *     &lt;/restriction>
47 *   &lt;/complexContent>
48 * &lt;/complexType>
49 * </pre>
50 *
51 *
52 */
53@XmlAccessorType(XmlAccessType.FIELD)
54@XmlType(name = "CT_Box", propOrder = {
55    "boxPr",
56    "e"
57})
58public class CTBox
59    implements Child
60{
61
62    protected CTBoxPr boxPr;
63    @XmlElement(required = true)
64    protected CTOMathArg e;
65    @XmlTransient
66    private Object parent;
67
68    /**
69     * Gets the value of the boxPr property.
70     *
71     * @return
72     *     possible object is
73     *     {@link CTBoxPr }
74     *     
75     */
76    public CTBoxPr getBoxPr() {
77        return boxPr;
78    }
79
80    /**
81     * Sets the value of the boxPr property.
82     *
83     * @param value
84     *     allowed object is
85     *     {@link CTBoxPr }
86     *     
87     */
88    public void setBoxPr(CTBoxPr value) {
89        this.boxPr = value;
90    }
91
92    /**
93     * Gets the value of the e property.
94     *
95     * @return
96     *     possible object is
97     *     {@link CTOMathArg }
98     *     
99     */
100    public CTOMathArg getE() {
101        return e;
102    }
103
104    /**
105     * Sets the value of the e property.
106     *
107     * @param value
108     *     allowed object is
109     *     {@link CTOMathArg }
110     *     
111     */
112    public void setE(CTOMathArg value) {
113        this.e = value;
114    }
115
116    /**
117     * Gets the parent object in the object tree representing the unmarshalled xml document.
118     *
119     * @return
120     *     The parent object.
121     */
122    public Object getParent() {
123        return this.parent;
124    }
125
126    public void setParent(Object parent) {
127        this.parent = parent;
128    }
129
130    /**
131     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
132     *
133     * @param parent
134     *     The parent object in the object tree.
135     * @param unmarshaller
136     *     The unmarshaller that generated the instance.
137     */
138    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
139        setParent(parent);
140    }
141
142}
Note: See TracBrowser for help on using the repository browser.