source: trunk/docx4j/src/main/java/org/docx4j/vml/CTTextPath.java @ 1461

Revision 1461, 7.0 KB checked in by jharrop, 14 months ago (diff)

VML generated classes, based on ECMA 376 1ed (rather than earlier draft).
Includes @XmlType? namespace annotations from revs 940 and 1129.

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.vml;
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_TextPath 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_TextPath">
40 *   &lt;complexContent>
41 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
42 *       &lt;attGroup ref="{urn:schemas-microsoft-com:vml}AG_Id"/>
43 *       &lt;attGroup ref="{urn:schemas-microsoft-com:vml}AG_Style"/>
44 *       &lt;attribute name="on" type="{urn:schemas-microsoft-com:vml}ST_TrueFalse" />
45 *       &lt;attribute name="fitshape" type="{urn:schemas-microsoft-com:vml}ST_TrueFalse" />
46 *       &lt;attribute name="fitpath" type="{urn:schemas-microsoft-com:vml}ST_TrueFalse" />
47 *       &lt;attribute name="trim" type="{urn:schemas-microsoft-com:vml}ST_TrueFalse" />
48 *       &lt;attribute name="xscale" type="{urn:schemas-microsoft-com:vml}ST_TrueFalse" />
49 *       &lt;attribute name="string" type="{http://www.w3.org/2001/XMLSchema}string" />
50 *     &lt;/restriction>
51 *   &lt;/complexContent>
52 * &lt;/complexType>
53 * </pre>
54 *
55 *
56 */
57@XmlAccessorType(XmlAccessType.FIELD)
58@XmlType(name = "CT_TextPath")
59public class CTTextPath implements Child
60{
61
62    @XmlAttribute(name = "on")
63    protected STTrueFalse on;
64    @XmlAttribute(name = "fitshape")
65    protected STTrueFalse fitshape;
66    @XmlAttribute(name = "fitpath")
67    protected STTrueFalse fitpath;
68    @XmlAttribute(name = "trim")
69    protected STTrueFalse trim;
70    @XmlAttribute(name = "xscale")
71    protected STTrueFalse xscale;
72    @XmlAttribute(name = "string")
73    protected String string;
74    @XmlAttribute(name = "id")
75    protected String vmlId;
76    @XmlAttribute(name = "style")
77    protected String style;
78    @XmlTransient
79    private Object parent;
80
81    /**
82     * Gets the value of the on property.
83     *
84     * @return
85     *     possible object is
86     *     {@link STTrueFalse }
87     *     
88     */
89    public STTrueFalse getOn() {
90        return on;
91    }
92
93    /**
94     * Sets the value of the on property.
95     *
96     * @param value
97     *     allowed object is
98     *     {@link STTrueFalse }
99     *     
100     */
101    public void setOn(STTrueFalse value) {
102        this.on = value;
103    }
104
105    /**
106     * Gets the value of the fitshape property.
107     *
108     * @return
109     *     possible object is
110     *     {@link STTrueFalse }
111     *     
112     */
113    public STTrueFalse getFitshape() {
114        return fitshape;
115    }
116
117    /**
118     * Sets the value of the fitshape property.
119     *
120     * @param value
121     *     allowed object is
122     *     {@link STTrueFalse }
123     *     
124     */
125    public void setFitshape(STTrueFalse value) {
126        this.fitshape = value;
127    }
128
129    /**
130     * Gets the value of the fitpath property.
131     *
132     * @return
133     *     possible object is
134     *     {@link STTrueFalse }
135     *     
136     */
137    public STTrueFalse getFitpath() {
138        return fitpath;
139    }
140
141    /**
142     * Sets the value of the fitpath property.
143     *
144     * @param value
145     *     allowed object is
146     *     {@link STTrueFalse }
147     *     
148     */
149    public void setFitpath(STTrueFalse value) {
150        this.fitpath = value;
151    }
152
153    /**
154     * Gets the value of the trim property.
155     *
156     * @return
157     *     possible object is
158     *     {@link STTrueFalse }
159     *     
160     */
161    public STTrueFalse getTrim() {
162        return trim;
163    }
164
165    /**
166     * Sets the value of the trim property.
167     *
168     * @param value
169     *     allowed object is
170     *     {@link STTrueFalse }
171     *     
172     */
173    public void setTrim(STTrueFalse value) {
174        this.trim = value;
175    }
176
177    /**
178     * Gets the value of the xscale property.
179     *
180     * @return
181     *     possible object is
182     *     {@link STTrueFalse }
183     *     
184     */
185    public STTrueFalse getXscale() {
186        return xscale;
187    }
188
189    /**
190     * Sets the value of the xscale property.
191     *
192     * @param value
193     *     allowed object is
194     *     {@link STTrueFalse }
195     *     
196     */
197    public void setXscale(STTrueFalse value) {
198        this.xscale = value;
199    }
200
201    /**
202     * Gets the value of the string property.
203     *
204     * @return
205     *     possible object is
206     *     {@link String }
207     *     
208     */
209    public String getString() {
210        return string;
211    }
212
213    /**
214     * Sets the value of the string property.
215     *
216     * @param value
217     *     allowed object is
218     *     {@link String }
219     *     
220     */
221    public void setString(String value) {
222        this.string = value;
223    }
224
225    /**
226     * Gets the value of the vmlId property.
227     *
228     * @return
229     *     possible object is
230     *     {@link String }
231     *     
232     */
233    public String getVmlId() {
234        return vmlId;
235    }
236
237    /**
238     * Sets the value of the vmlId property.
239     *
240     * @param value
241     *     allowed object is
242     *     {@link String }
243     *     
244     */
245    public void setVmlId(String value) {
246        this.vmlId = value;
247    }
248
249    /**
250     * Gets the value of the style property.
251     *
252     * @return
253     *     possible object is
254     *     {@link String }
255     *     
256     */
257    public String getStyle() {
258        return style;
259    }
260
261    /**
262     * Sets the value of the style property.
263     *
264     * @param value
265     *     allowed object is
266     *     {@link String }
267     *     
268     */
269    public void setStyle(String value) {
270        this.style = value;
271    }
272
273    /**
274     * Gets the parent object in the object tree representing the unmarshalled xml document.
275     *
276     * @return
277     *     The parent object.
278     */
279    public Object getParent() {
280        return this.parent;
281    }
282
283    public void setParent(Object parent) {
284        this.parent = parent;
285    }
286
287    /**
288     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
289     *
290     * @param parent
291     *     The parent object in the object tree.
292     * @param unmarshaller
293     *     The unmarshaller that generated the instance.
294     */
295    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
296        setParent(parent);
297    }
298
299}
Note: See TracBrowser for help on using the repository browser.