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

Revision 359, 5.8 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.XmlRootElement;
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 anonymous complex type.
36 *
37 * <p>The following schema fragment specifies the expected content contained within this class.
38 *
39 * <pre>
40 * &lt;complexType>
41 *   &lt;complexContent>
42 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43 *       &lt;attribute name="val" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}UnderlineEnumeration" />
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;/restriction>
49 *   &lt;/complexContent>
50 * &lt;/complexType>
51 * </pre>
52 *
53 *
54 */
55@XmlAccessorType(XmlAccessType.FIELD)
56@XmlType(name = "")
57@XmlRootElement(name = "u")
58public class U implements Child
59{
60
61    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
62    protected UnderlineEnumeration val;
63    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
64    protected String color;
65    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
66    protected STThemeColor themeColor;
67    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
68    protected String themeTint;
69    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
70    protected String themeShade;
71    @XmlTransient
72    private Object parent;
73
74    /**
75     * Gets the value of the val property.
76     *
77     * @return
78     *     possible object is
79     *     {@link UnderlineEnumeration }
80     *     
81     */
82    public UnderlineEnumeration getVal() {
83        return val;
84    }
85
86    /**
87     * Sets the value of the val property.
88     *
89     * @param value
90     *     allowed object is
91     *     {@link UnderlineEnumeration }
92     *     
93     */
94    public void setVal(UnderlineEnumeration value) {
95        this.val = value;
96    }
97
98    /**
99     * Gets the value of the color property.
100     *
101     * @return
102     *     possible object is
103     *     {@link String }
104     *     
105     */
106    public String getColor() {
107        return color;
108    }
109
110    /**
111     * Sets the value of the color property.
112     *
113     * @param value
114     *     allowed object is
115     *     {@link String }
116     *     
117     */
118    public void setColor(String value) {
119        this.color = value;
120    }
121
122    /**
123     * Gets the value of the themeColor property.
124     *
125     * @return
126     *     possible object is
127     *     {@link STThemeColor }
128     *     
129     */
130    public STThemeColor getThemeColor() {
131        return themeColor;
132    }
133
134    /**
135     * Sets the value of the themeColor property.
136     *
137     * @param value
138     *     allowed object is
139     *     {@link STThemeColor }
140     *     
141     */
142    public void setThemeColor(STThemeColor value) {
143        this.themeColor = value;
144    }
145
146    /**
147     * Gets the value of the themeTint property.
148     *
149     * @return
150     *     possible object is
151     *     {@link String }
152     *     
153     */
154    public String getThemeTint() {
155        return themeTint;
156    }
157
158    /**
159     * Sets the value of the themeTint property.
160     *
161     * @param value
162     *     allowed object is
163     *     {@link String }
164     *     
165     */
166    public void setThemeTint(String value) {
167        this.themeTint = value;
168    }
169
170    /**
171     * Gets the value of the themeShade property.
172     *
173     * @return
174     *     possible object is
175     *     {@link String }
176     *     
177     */
178    public String getThemeShade() {
179        return themeShade;
180    }
181
182    /**
183     * Sets the value of the themeShade property.
184     *
185     * @param value
186     *     allowed object is
187     *     {@link String }
188     *     
189     */
190    public void setThemeShade(String value) {
191        this.themeShade = value;
192    }
193
194    /**
195     * Gets the parent object in the object tree representing the unmarshalled xml document.
196     *
197     * @return
198     *     The parent object.
199     */
200    public Object getParent() {
201        return this.parent;
202    }
203
204    public void setParent(Object parent) {
205        this.parent = parent;
206    }
207
208    /**
209     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
210     *
211     * @param parent
212     *     The parent object in the object tree.
213     * @param unmarshaller
214     *     The unmarshaller that generated the instance.
215     */
216    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
217        setParent(parent);
218    }
219
220}
Note: See TracBrowser for help on using the repository browser.