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