source: trunk/docx4j/src/main/java/org/docx4j/wml/TrPr.java @ 461

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

Made table related JAXB classes human friendly.

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 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_TrPr 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_TrPr">
39 *   &lt;complexContent>
40 *     &lt;extension base="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TrPrBase">
41 *       &lt;sequence>
42 *         &lt;element name="ins" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TrackChange" minOccurs="0"/>
43 *         &lt;element name="del" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TrackChange" minOccurs="0"/>
44 *         &lt;element name="trPrChange" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TrPrChange" 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_TrPr", propOrder = {
55    "ins",
56    "del",
57    "trPrChange"
58})
59public class TrPr
60    extends CTTrPrBase
61    implements Child
62{
63
64    protected CTTrackChange ins;
65    protected CTTrackChange del;
66    protected CTTrPrChange trPrChange;
67    @XmlTransient
68    private Object parent;
69
70    /**
71     * Gets the value of the ins property.
72     *
73     * @return
74     *     possible object is
75     *     {@link CTTrackChange }
76     *     
77     */
78    public CTTrackChange getIns() {
79        return ins;
80    }
81
82    /**
83     * Sets the value of the ins property.
84     *
85     * @param value
86     *     allowed object is
87     *     {@link CTTrackChange }
88     *     
89     */
90    public void setIns(CTTrackChange value) {
91        this.ins = value;
92    }
93
94    /**
95     * Gets the value of the del property.
96     *
97     * @return
98     *     possible object is
99     *     {@link CTTrackChange }
100     *     
101     */
102    public CTTrackChange getDel() {
103        return del;
104    }
105
106    /**
107     * Sets the value of the del property.
108     *
109     * @param value
110     *     allowed object is
111     *     {@link CTTrackChange }
112     *     
113     */
114    public void setDel(CTTrackChange value) {
115        this.del = value;
116    }
117
118    /**
119     * Gets the value of the trPrChange property.
120     *
121     * @return
122     *     possible object is
123     *     {@link CTTrPrChange }
124     *     
125     */
126    public CTTrPrChange getTrPrChange() {
127        return trPrChange;
128    }
129
130    /**
131     * Sets the value of the trPrChange property.
132     *
133     * @param value
134     *     allowed object is
135     *     {@link CTTrPrChange }
136     *     
137     */
138    public void setTrPrChange(CTTrPrChange value) {
139        this.trPrChange = value;
140    }
141
142    /**
143     * Gets the parent object in the object tree representing the unmarshalled xml document.
144     *
145     * @return
146     *     The parent object.
147     */
148    public Object getParent() {
149        return this.parent;
150    }
151
152    public void setParent(Object parent) {
153        this.parent = parent;
154    }
155
156    /**
157     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
158     *
159     * @param parent
160     *     The parent object in the object tree.
161     * @param unmarshaller
162     *     The unmarshaller that generated the instance.
163     */
164    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
165        setParent(parent);
166    }
167
168}
Note: See TracBrowser for help on using the repository browser.