source: trunk/docx4j/src/main/java/org/docx4j/wml/CTBackground.java @ 940

Revision 940, 5.2 KB checked in by jharrop, 3 years ago (diff)

Fix all 11 instances of "Two classes have the same XML type name .. Use .. @XmlType?.namespace to assign different names to them."

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_Background 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_Background">
40 *   &lt;complexContent>
41 *     &lt;extension base="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_PictureBase">
42 *       &lt;attribute name="color" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_HexColor" />
43 *       &lt;attribute name="themeColor" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_ThemeColor" />
44 *       &lt;attribute name="themeTint" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_UcharHexNumber" />
45 *       &lt;attribute name="themeShade" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_UcharHexNumber" />
46 *     &lt;/extension>
47 *   &lt;/complexContent>
48 * &lt;/complexType>
49 * </pre>
50 *
51 *
52 */
53@XmlAccessorType(XmlAccessType.FIELD)
54@XmlType(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", name = "CT_Background")
55public class CTBackground
56    extends CTPictureBase
57    implements Child
58{
59
60    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
61    protected String color;
62    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
63    protected STThemeColor themeColor;
64    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
65    protected String themeTint;
66    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
67    protected String themeShade;
68    @XmlTransient
69    private Object parent;
70
71    /**
72     * Gets the value of the color property.
73     *
74     * @return
75     *     possible object is
76     *     {@link String }
77     *     
78     */
79    public String getColor() {
80        return color;
81    }
82
83    /**
84     * Sets the value of the color property.
85     *
86     * @param value
87     *     allowed object is
88     *     {@link String }
89     *     
90     */
91    public void setColor(String value) {
92        this.color = value;
93    }
94
95    /**
96     * Gets the value of the themeColor property.
97     *
98     * @return
99     *     possible object is
100     *     {@link STThemeColor }
101     *     
102     */
103    public STThemeColor getThemeColor() {
104        return themeColor;
105    }
106
107    /**
108     * Sets the value of the themeColor property.
109     *
110     * @param value
111     *     allowed object is
112     *     {@link STThemeColor }
113     *     
114     */
115    public void setThemeColor(STThemeColor value) {
116        this.themeColor = value;
117    }
118
119    /**
120     * Gets the value of the themeTint property.
121     *
122     * @return
123     *     possible object is
124     *     {@link String }
125     *     
126     */
127    public String getThemeTint() {
128        return themeTint;
129    }
130
131    /**
132     * Sets the value of the themeTint property.
133     *
134     * @param value
135     *     allowed object is
136     *     {@link String }
137     *     
138     */
139    public void setThemeTint(String value) {
140        this.themeTint = value;
141    }
142
143    /**
144     * Gets the value of the themeShade property.
145     *
146     * @return
147     *     possible object is
148     *     {@link String }
149     *     
150     */
151    public String getThemeShade() {
152        return themeShade;
153    }
154
155    /**
156     * Sets the value of the themeShade property.
157     *
158     * @param value
159     *     allowed object is
160     *     {@link String }
161     *     
162     */
163    public void setThemeShade(String value) {
164        this.themeShade = value;
165    }
166
167    /**
168     * Gets the parent object in the object tree representing the unmarshalled xml document.
169     *
170     * @return
171     *     The parent object.
172     */
173    public Object getParent() {
174        return this.parent;
175    }
176
177    public void setParent(Object parent) {
178        this.parent = parent;
179    }
180
181    /**
182     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
183     *
184     * @param parent
185     *     The parent object in the object tree.
186     * @param unmarshaller
187     *     The unmarshaller that generated the instance.
188     */
189    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
190        setParent(parent);
191    }
192
193}
Note: See TracBrowser for help on using the repository browser.