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

Revision 359, 6.5 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 java.math.BigInteger;
25import javax.xml.bind.Unmarshaller;
26import javax.xml.bind.annotation.XmlAccessType;
27import javax.xml.bind.annotation.XmlAccessorType;
28import javax.xml.bind.annotation.XmlAttribute;
29import javax.xml.bind.annotation.XmlTransient;
30import javax.xml.bind.annotation.XmlType;
31import org.jvnet.jaxb2_commons.ppp.Child;
32
33
34/**
35 * <p>Java class for CT_WritingStyle complex type.
36 *
37 * <p>The following schema fragment specifies the expected content contained within this class.
38 *
39 * <pre>
40 * &lt;complexType name="CT_WritingStyle">
41 *   &lt;complexContent>
42 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43 *       &lt;attribute name="lang" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_Lang" />
44 *       &lt;attribute name="vendorID" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
45 *       &lt;attribute name="dllVersion" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
46 *       &lt;attribute name="nlCheck" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
47 *       &lt;attribute name="checkStyle" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
48 *       &lt;attribute name="appName" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" />
49 *     &lt;/restriction>
50 *   &lt;/complexContent>
51 * &lt;/complexType>
52 * </pre>
53 *
54 *
55 */
56@XmlAccessorType(XmlAccessType.FIELD)
57@XmlType(name = "CT_WritingStyle")
58public class CTWritingStyle
59    implements Child
60{
61
62    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
63    protected String lang;
64    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
65    protected BigInteger vendorID;
66    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
67    protected BigInteger dllVersion;
68    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
69    protected Boolean nlCheck;
70    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
71    protected boolean checkStyle;
72    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
73    protected String appName;
74    @XmlTransient
75    private Object parent;
76
77    /**
78     * Gets the value of the lang property.
79     *
80     * @return
81     *     possible object is
82     *     {@link String }
83     *     
84     */
85    public String getLang() {
86        return lang;
87    }
88
89    /**
90     * Sets the value of the lang property.
91     *
92     * @param value
93     *     allowed object is
94     *     {@link String }
95     *     
96     */
97    public void setLang(String value) {
98        this.lang = value;
99    }
100
101    /**
102     * Gets the value of the vendorID property.
103     *
104     * @return
105     *     possible object is
106     *     {@link BigInteger }
107     *     
108     */
109    public BigInteger getVendorID() {
110        return vendorID;
111    }
112
113    /**
114     * Sets the value of the vendorID property.
115     *
116     * @param value
117     *     allowed object is
118     *     {@link BigInteger }
119     *     
120     */
121    public void setVendorID(BigInteger value) {
122        this.vendorID = value;
123    }
124
125    /**
126     * Gets the value of the dllVersion property.
127     *
128     * @return
129     *     possible object is
130     *     {@link BigInteger }
131     *     
132     */
133    public BigInteger getDllVersion() {
134        return dllVersion;
135    }
136
137    /**
138     * Sets the value of the dllVersion property.
139     *
140     * @param value
141     *     allowed object is
142     *     {@link BigInteger }
143     *     
144     */
145    public void setDllVersion(BigInteger value) {
146        this.dllVersion = value;
147    }
148
149    /**
150     * Gets the value of the nlCheck property.
151     *
152     * @return
153     *     possible object is
154     *     {@link Boolean }
155     *     
156     */
157    public boolean isNlCheck() {
158        if (nlCheck == null) {
159            return true;
160        } else {
161            return nlCheck;
162        }
163    }
164
165    /**
166     * Sets the value of the nlCheck property.
167     *
168     * @param value
169     *     allowed object is
170     *     {@link Boolean }
171     *     
172     */
173    public void setNlCheck(Boolean value) {
174        this.nlCheck = value;
175    }
176
177    /**
178     * Gets the value of the checkStyle property.
179     *
180     */
181    public boolean isCheckStyle() {
182        return checkStyle;
183    }
184
185    /**
186     * Sets the value of the checkStyle property.
187     *
188     */
189    public void setCheckStyle(boolean value) {
190        this.checkStyle = value;
191    }
192
193    /**
194     * Gets the value of the appName property.
195     *
196     * @return
197     *     possible object is
198     *     {@link String }
199     *     
200     */
201    public String getAppName() {
202        return appName;
203    }
204
205    /**
206     * Sets the value of the appName property.
207     *
208     * @param value
209     *     allowed object is
210     *     {@link String }
211     *     
212     */
213    public void setAppName(String value) {
214        this.appName = value;
215    }
216
217    /**
218     * Gets the parent object in the object tree representing the unmarshalled xml document.
219     *
220     * @return
221     *     The parent object.
222     */
223    public Object getParent() {
224        return this.parent;
225    }
226
227    public void setParent(Object parent) {
228        this.parent = parent;
229    }
230
231    /**
232     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
233     *
234     * @param parent
235     *     The parent object in the object tree.
236     * @param unmarshaller
237     *     The unmarshaller that generated the instance.
238     */
239    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
240        setParent(parent);
241    }
242
243}
Note: See TracBrowser for help on using the repository browser.