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

Revision 359, 8.6 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_Shd 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_Shd">
40 *   &lt;complexContent>
41 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42 *       &lt;attribute name="val" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_Shd" />
43 *       &lt;attribute name="color" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_HexColor" />
44 *       &lt;attribute name="themeColor" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_ThemeColor" />
45 *       &lt;attribute name="themeTint" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_UcharHexNumber" />
46 *       &lt;attribute name="themeShade" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_UcharHexNumber" />
47 *       &lt;attribute name="fill" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_HexColor" />
48 *       &lt;attribute name="themeFill" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_ThemeColor" />
49 *       &lt;attribute name="themeFillTint" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_UcharHexNumber" />
50 *       &lt;attribute name="themeFillShade" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_UcharHexNumber" />
51 *     &lt;/restriction>
52 *   &lt;/complexContent>
53 * &lt;/complexType>
54 * </pre>
55 *
56 *
57 */
58@XmlAccessorType(XmlAccessType.FIELD)
59@XmlType(name = "CT_Shd")
60public class CTShd
61    implements Child
62{
63
64    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
65    protected STShd val;
66    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
67    protected String color;
68    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
69    protected STThemeColor themeColor;
70    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
71    protected String themeTint;
72    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
73    protected String themeShade;
74    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
75    protected String fill;
76    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
77    protected STThemeColor themeFill;
78    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
79    protected String themeFillTint;
80    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
81    protected String themeFillShade;
82    @XmlTransient
83    private Object parent;
84
85    /**
86     * Gets the value of the val property.
87     *
88     * @return
89     *     possible object is
90     *     {@link STShd }
91     *     
92     */
93    public STShd getVal() {
94        return val;
95    }
96
97    /**
98     * Sets the value of the val property.
99     *
100     * @param value
101     *     allowed object is
102     *     {@link STShd }
103     *     
104     */
105    public void setVal(STShd value) {
106        this.val = value;
107    }
108
109    /**
110     * Gets the value of the color property.
111     *
112     * @return
113     *     possible object is
114     *     {@link String }
115     *     
116     */
117    public String getColor() {
118        return color;
119    }
120
121    /**
122     * Sets the value of the color property.
123     *
124     * @param value
125     *     allowed object is
126     *     {@link String }
127     *     
128     */
129    public void setColor(String value) {
130        this.color = value;
131    }
132
133    /**
134     * Gets the value of the themeColor property.
135     *
136     * @return
137     *     possible object is
138     *     {@link STThemeColor }
139     *     
140     */
141    public STThemeColor getThemeColor() {
142        return themeColor;
143    }
144
145    /**
146     * Sets the value of the themeColor property.
147     *
148     * @param value
149     *     allowed object is
150     *     {@link STThemeColor }
151     *     
152     */
153    public void setThemeColor(STThemeColor value) {
154        this.themeColor = value;
155    }
156
157    /**
158     * Gets the value of the themeTint property.
159     *
160     * @return
161     *     possible object is
162     *     {@link String }
163     *     
164     */
165    public String getThemeTint() {
166        return themeTint;
167    }
168
169    /**
170     * Sets the value of the themeTint property.
171     *
172     * @param value
173     *     allowed object is
174     *     {@link String }
175     *     
176     */
177    public void setThemeTint(String value) {
178        this.themeTint = value;
179    }
180
181    /**
182     * Gets the value of the themeShade property.
183     *
184     * @return
185     *     possible object is
186     *     {@link String }
187     *     
188     */
189    public String getThemeShade() {
190        return themeShade;
191    }
192
193    /**
194     * Sets the value of the themeShade property.
195     *
196     * @param value
197     *     allowed object is
198     *     {@link String }
199     *     
200     */
201    public void setThemeShade(String value) {
202        this.themeShade = value;
203    }
204
205    /**
206     * Gets the value of the fill property.
207     *
208     * @return
209     *     possible object is
210     *     {@link String }
211     *     
212     */
213    public String getFill() {
214        return fill;
215    }
216
217    /**
218     * Sets the value of the fill property.
219     *
220     * @param value
221     *     allowed object is
222     *     {@link String }
223     *     
224     */
225    public void setFill(String value) {
226        this.fill = value;
227    }
228
229    /**
230     * Gets the value of the themeFill property.
231     *
232     * @return
233     *     possible object is
234     *     {@link STThemeColor }
235     *     
236     */
237    public STThemeColor getThemeFill() {
238        return themeFill;
239    }
240
241    /**
242     * Sets the value of the themeFill property.
243     *
244     * @param value
245     *     allowed object is
246     *     {@link STThemeColor }
247     *     
248     */
249    public void setThemeFill(STThemeColor value) {
250        this.themeFill = value;
251    }
252
253    /**
254     * Gets the value of the themeFillTint property.
255     *
256     * @return
257     *     possible object is
258     *     {@link String }
259     *     
260     */
261    public String getThemeFillTint() {
262        return themeFillTint;
263    }
264
265    /**
266     * Sets the value of the themeFillTint property.
267     *
268     * @param value
269     *     allowed object is
270     *     {@link String }
271     *     
272     */
273    public void setThemeFillTint(String value) {
274        this.themeFillTint = value;
275    }
276
277    /**
278     * Gets the value of the themeFillShade property.
279     *
280     * @return
281     *     possible object is
282     *     {@link String }
283     *     
284     */
285    public String getThemeFillShade() {
286        return themeFillShade;
287    }
288
289    /**
290     * Sets the value of the themeFillShade property.
291     *
292     * @param value
293     *     allowed object is
294     *     {@link String }
295     *     
296     */
297    public void setThemeFillShade(String value) {
298        this.themeFillShade = value;
299    }
300
301    /**
302     * Gets the parent object in the object tree representing the unmarshalled xml document.
303     *
304     * @return
305     *     The parent object.
306     */
307    public Object getParent() {
308        return this.parent;
309    }
310
311    public void setParent(Object parent) {
312        this.parent = parent;
313    }
314
315    /**
316     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
317     *
318     * @param parent
319     *     The parent object in the object tree.
320     * @param unmarshaller
321     *     The unmarshaller that generated the instance.
322     */
323    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
324        setParent(parent);
325    }
326
327}
Note: See TracBrowser for help on using the repository browser.