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

Revision 359, 5.0 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.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_FFCheckBox 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_FFCheckBox">
40 *   &lt;complexContent>
41 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42 *       &lt;sequence>
43 *         &lt;choice>
44 *           &lt;element name="size" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_HpsMeasure"/>
45 *           &lt;element name="sizeAuto" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue"/>
46 *         &lt;/choice>
47 *         &lt;element name="default" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
48 *         &lt;element name="checked" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
49 *       &lt;/sequence>
50 *     &lt;/restriction>
51 *   &lt;/complexContent>
52 * &lt;/complexType>
53 * </pre>
54 *
55 *
56 */
57@XmlAccessorType(XmlAccessType.FIELD)
58@XmlType(name = "CT_FFCheckBox", propOrder = {
59    "size",
60    "sizeAuto",
61    "_default",
62    "checked"
63})
64public class CTFFCheckBox implements Child
65{
66
67    protected HpsMeasure size;
68    protected BooleanDefaultTrue sizeAuto;
69    @XmlElement(name = "default")
70    protected BooleanDefaultTrue _default;
71    protected BooleanDefaultTrue checked;
72    @XmlTransient
73    private Object parent;
74
75    /**
76     * Gets the value of the size property.
77     *
78     * @return
79     *     possible object is
80     *     {@link HpsMeasure }
81     *     
82     */
83    public HpsMeasure getSize() {
84        return size;
85    }
86
87    /**
88     * Sets the value of the size property.
89     *
90     * @param value
91     *     allowed object is
92     *     {@link HpsMeasure }
93     *     
94     */
95    public void setSize(HpsMeasure value) {
96        this.size = value;
97    }
98
99    /**
100     * Gets the value of the sizeAuto property.
101     *
102     * @return
103     *     possible object is
104     *     {@link BooleanDefaultTrue }
105     *     
106     */
107    public BooleanDefaultTrue getSizeAuto() {
108        return sizeAuto;
109    }
110
111    /**
112     * Sets the value of the sizeAuto property.
113     *
114     * @param value
115     *     allowed object is
116     *     {@link BooleanDefaultTrue }
117     *     
118     */
119    public void setSizeAuto(BooleanDefaultTrue value) {
120        this.sizeAuto = value;
121    }
122
123    /**
124     * Gets the value of the default property.
125     *
126     * @return
127     *     possible object is
128     *     {@link BooleanDefaultTrue }
129     *     
130     */
131    public BooleanDefaultTrue getDefault() {
132        return _default;
133    }
134
135    /**
136     * Sets the value of the default property.
137     *
138     * @param value
139     *     allowed object is
140     *     {@link BooleanDefaultTrue }
141     *     
142     */
143    public void setDefault(BooleanDefaultTrue value) {
144        this._default = value;
145    }
146
147    /**
148     * Gets the value of the checked property.
149     *
150     * @return
151     *     possible object is
152     *     {@link BooleanDefaultTrue }
153     *     
154     */
155    public BooleanDefaultTrue getChecked() {
156        return checked;
157    }
158
159    /**
160     * Sets the value of the checked property.
161     *
162     * @param value
163     *     allowed object is
164     *     {@link BooleanDefaultTrue }
165     *     
166     */
167    public void setChecked(BooleanDefaultTrue value) {
168        this.checked = value;
169    }
170
171    /**
172     * Gets the parent object in the object tree representing the unmarshalled xml document.
173     *
174     * @return
175     *     The parent object.
176     */
177    public Object getParent() {
178        return this.parent;
179    }
180
181    public void setParent(Object parent) {
182        this.parent = parent;
183    }
184
185    /**
186     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
187     *
188     * @param parent
189     *     The parent object in the object tree.
190     * @param unmarshaller
191     *     The unmarshaller that generated the instance.
192     */
193    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
194        setParent(parent);
195    }
196
197}
Note: See TracBrowser for help on using the repository browser.