source: trunk/docx4j/src/main/java/org/docx4j/wml/PPr.java @ 344

Revision 344, 4.2 KB checked in by jharrop, 4 years ago (diff)

@XmlRootElement?

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
21package org.docx4j.wml;
22
23import javax.xml.bind.Unmarshaller;
24import javax.xml.bind.annotation.XmlAccessType;
25import javax.xml.bind.annotation.XmlAccessorType;
26import javax.xml.bind.annotation.XmlRootElement;
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_PPr 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_PPr">
39 *   &lt;complexContent>
40 *     &lt;extension base="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_PPrBase">
41 *       &lt;sequence>
42 *         &lt;element name="rPr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_ParaRPr" minOccurs="0"/>
43 *         &lt;element name="sectPr" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_SectPr" minOccurs="0"/>
44 *         &lt;element name="pPrChange" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_PPrChange" minOccurs="0"/>
45 *       &lt;/sequence>
46 *     &lt;/extension>
47 *   &lt;/complexContent>
48 * &lt;/complexType>
49 * </pre>
50 *
51 *
52 */
53@XmlAccessorType(XmlAccessType.FIELD)
54@XmlType(name = "CT_PPr", propOrder = {
55    "rPr",
56    "sectPr",
57    "pPrChange"
58})
59@XmlRootElement(name = "pPr")
60public class PPr
61    extends PPrBase
62    implements Child
63{
64
65    protected ParaRPr rPr;
66    protected SectPr sectPr;
67    protected CTPPrChange pPrChange;
68    @XmlTransient
69    private Object parent;
70
71    /**
72     * Gets the value of the rPr property.
73     *
74     * @return
75     *     possible object is
76     *     {@link ParaRPr }
77     *     
78     */
79    public ParaRPr getRPr() {
80        return rPr;
81    }
82
83    /**
84     * Sets the value of the rPr property.
85     *
86     * @param value
87     *     allowed object is
88     *     {@link ParaRPr }
89     *     
90     */
91    public void setRPr(ParaRPr value) {
92        this.rPr = value;
93    }
94
95    /**
96     * Gets the value of the sectPr property.
97     *
98     * @return
99     *     possible object is
100     *     {@link SectPr }
101     *     
102     */
103    public SectPr getSectPr() {
104        return sectPr;
105    }
106
107    /**
108     * Sets the value of the sectPr property.
109     *
110     * @param value
111     *     allowed object is
112     *     {@link SectPr }
113     *     
114     */
115    public void setSectPr(SectPr value) {
116        this.sectPr = value;
117    }
118
119    /**
120     * Gets the value of the pPrChange property.
121     *
122     * @return
123     *     possible object is
124     *     {@link CTPPrChange }
125     *     
126     */
127    public CTPPrChange getPPrChange() {
128        return pPrChange;
129    }
130
131    /**
132     * Sets the value of the pPrChange property.
133     *
134     * @param value
135     *     allowed object is
136     *     {@link CTPPrChange }
137     *     
138     */
139    public void setPPrChange(CTPPrChange value) {
140        this.pPrChange = value;
141    }
142
143    /**
144     * Gets the parent object in the object tree representing the unmarshalled xml document.
145     *
146     * @return
147     *     The parent object.
148     */
149    public Object getParent() {
150        return this.parent;
151    }
152
153    public void setParent(Object parent) {
154        this.parent = parent;
155    }
156
157    /**
158     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
159     *
160     * @param parent
161     *     The parent object in the object tree.
162     * @param unmarshaller
163     *     The unmarshaller that generated the instance.
164     */
165    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
166        setParent(parent);
167    }
168
169}
Note: See TracBrowser for help on using the repository browser.