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

Revision 888, 2.8 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.XmlTransient;
28import javax.xml.bind.annotation.XmlType;
29import org.jvnet.jaxb2_commons.ppp.Child;
30
31
32/**
33 * <p>Java class for CT_SSubPr complex type.
34 *
35 * <p>The following schema fragment specifies the expected content contained within this class.
36 *
37 * <pre>
38 * &lt;complexType name="CT_SSubPr">
39 *   &lt;complexContent>
40 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
41 *       &lt;sequence>
42 *         &lt;element name="ctrlPr" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_CtrlPr" minOccurs="0"/>
43 *       &lt;/sequence>
44 *     &lt;/restriction>
45 *   &lt;/complexContent>
46 * &lt;/complexType>
47 * </pre>
48 *
49 *
50 */
51@XmlAccessorType(XmlAccessType.FIELD)
52@XmlType(name = "CT_SSubPr", propOrder = {
53    "ctrlPr"
54})
55public class CTSSubPr
56    implements Child
57{
58
59    protected CTCtrlPr ctrlPr;
60    @XmlTransient
61    private Object parent;
62
63    /**
64     * Gets the value of the ctrlPr property.
65     *
66     * @return
67     *     possible object is
68     *     {@link CTCtrlPr }
69     *     
70     */
71    public CTCtrlPr getCtrlPr() {
72        return ctrlPr;
73    }
74
75    /**
76     * Sets the value of the ctrlPr property.
77     *
78     * @param value
79     *     allowed object is
80     *     {@link CTCtrlPr }
81     *     
82     */
83    public void setCtrlPr(CTCtrlPr value) {
84        this.ctrlPr = value;
85    }
86
87    /**
88     * Gets the parent object in the object tree representing the unmarshalled xml document.
89     *
90     * @return
91     *     The parent object.
92     */
93    public Object getParent() {
94        return this.parent;
95    }
96
97    public void setParent(Object parent) {
98        this.parent = parent;
99    }
100
101    /**
102     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
103     *
104     * @param parent
105     *     The parent object in the object tree.
106     * @param unmarshaller
107     *     The unmarshaller that generated the instance.
108     */
109    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
110        setParent(parent);
111    }
112
113}
Note: See TracBrowser for help on using the repository browser.