source: trunk/docx4j/src/main/java/org/docx4j/wml/CTTrackChangesView.java @ 359

Revision 359, 6.1 KB checked in by jharrop, 4 years ago (diff)

Change CT_FldChar to FldChar?;
Style is freestanding, rather than an inner class of Styles.
(Other changes largely whitespace in license header)

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.XmlAttribute;
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_TrackChangesView 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_TrackChangesView">
40 *   &lt;complexContent>
41 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42 *       &lt;attribute name="markup" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
43 *       &lt;attribute name="comments" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
44 *       &lt;attribute name="insDel" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
45 *       &lt;attribute name="formatting" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
46 *       &lt;attribute name="inkAnnotations" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
47 *     &lt;/restriction>
48 *   &lt;/complexContent>
49 * &lt;/complexType>
50 * </pre>
51 *
52 *
53 */
54@XmlAccessorType(XmlAccessType.FIELD)
55@XmlType(name = "CT_TrackChangesView")
56public class CTTrackChangesView
57    implements Child
58{
59
60    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
61    protected Boolean markup;
62    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
63    protected Boolean comments;
64    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
65    protected Boolean insDel;
66    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
67    protected Boolean formatting;
68    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
69    protected Boolean inkAnnotations;
70    @XmlTransient
71    private Object parent;
72
73    /**
74     * Gets the value of the markup property.
75     *
76     * @return
77     *     possible object is
78     *     {@link Boolean }
79     *     
80     */
81    public boolean isMarkup() {
82        if (markup == null) {
83            return true;
84        } else {
85            return markup;
86        }
87    }
88
89    /**
90     * Sets the value of the markup property.
91     *
92     * @param value
93     *     allowed object is
94     *     {@link Boolean }
95     *     
96     */
97    public void setMarkup(Boolean value) {
98        this.markup = value;
99    }
100
101    /**
102     * Gets the value of the comments property.
103     *
104     * @return
105     *     possible object is
106     *     {@link Boolean }
107     *     
108     */
109    public boolean isComments() {
110        if (comments == null) {
111            return true;
112        } else {
113            return comments;
114        }
115    }
116
117    /**
118     * Sets the value of the comments property.
119     *
120     * @param value
121     *     allowed object is
122     *     {@link Boolean }
123     *     
124     */
125    public void setComments(Boolean value) {
126        this.comments = value;
127    }
128
129    /**
130     * Gets the value of the insDel property.
131     *
132     * @return
133     *     possible object is
134     *     {@link Boolean }
135     *     
136     */
137    public boolean isInsDel() {
138        if (insDel == null) {
139            return true;
140        } else {
141            return insDel;
142        }
143    }
144
145    /**
146     * Sets the value of the insDel property.
147     *
148     * @param value
149     *     allowed object is
150     *     {@link Boolean }
151     *     
152     */
153    public void setInsDel(Boolean value) {
154        this.insDel = value;
155    }
156
157    /**
158     * Gets the value of the formatting property.
159     *
160     * @return
161     *     possible object is
162     *     {@link Boolean }
163     *     
164     */
165    public boolean isFormatting() {
166        if (formatting == null) {
167            return true;
168        } else {
169            return formatting;
170        }
171    }
172
173    /**
174     * Sets the value of the formatting property.
175     *
176     * @param value
177     *     allowed object is
178     *     {@link Boolean }
179     *     
180     */
181    public void setFormatting(Boolean value) {
182        this.formatting = value;
183    }
184
185    /**
186     * Gets the value of the inkAnnotations property.
187     *
188     * @return
189     *     possible object is
190     *     {@link Boolean }
191     *     
192     */
193    public boolean isInkAnnotations() {
194        if (inkAnnotations == null) {
195            return true;
196        } else {
197            return inkAnnotations;
198        }
199    }
200
201    /**
202     * Sets the value of the inkAnnotations property.
203     *
204     * @param value
205     *     allowed object is
206     *     {@link Boolean }
207     *     
208     */
209    public void setInkAnnotations(Boolean value) {
210        this.inkAnnotations = value;
211    }
212
213    /**
214     * Gets the parent object in the object tree representing the unmarshalled xml document.
215     *
216     * @return
217     *     The parent object.
218     */
219    public Object getParent() {
220        return this.parent;
221    }
222
223    public void setParent(Object parent) {
224        this.parent = parent;
225    }
226
227    /**
228     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
229     *
230     * @param parent
231     *     The parent object in the object tree.
232     * @param unmarshaller
233     *     The unmarshaller that generated the instance.
234     */
235    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
236        setParent(parent);
237    }
238
239}
Note: See TracBrowser for help on using the repository browser.