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

Revision 359, 8.2 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 javax.xml.datatype.XMLGregorianCalendar;
31import org.jvnet.jaxb2_commons.ppp.Child;
32
33
34/**
35 * <p>Java class for CT_SdtDate 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_SdtDate">
41 *   &lt;complexContent>
42 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
43 *       &lt;sequence>
44 *         &lt;element name="dateFormat" minOccurs="0">
45 *           &lt;complexType>
46 *             &lt;complexContent>
47 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
48 *                 &lt;attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
49 *               &lt;/restriction>
50 *             &lt;/complexContent>
51 *           &lt;/complexType>
52 *         &lt;/element>
53 *         &lt;element name="lid" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Lang" minOccurs="0"/>
54 *         &lt;element name="storeMappedDataAs" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_SdtDateMappingType" minOccurs="0"/>
55 *         &lt;element name="calendar" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_CalendarType" minOccurs="0"/>
56 *       &lt;/sequence>
57 *       &lt;attribute name="fullDate" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DateTime" />
58 *     &lt;/restriction>
59 *   &lt;/complexContent>
60 * &lt;/complexType>
61 * </pre>
62 *
63 *
64 */
65@XmlAccessorType(XmlAccessType.FIELD)
66@XmlType(name = "CT_SdtDate", propOrder = {
67    "dateFormat",
68    "lid",
69    "storeMappedDataAs",
70    "calendar"
71})
72public class CTSdtDate
73    implements Child
74{
75
76    protected CTSdtDate.DateFormat dateFormat;
77    protected CTLang lid;
78    protected CTSdtDateMappingType storeMappedDataAs;
79    protected CTCalendarType calendar;
80    @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
81    protected XMLGregorianCalendar fullDate;
82    @XmlTransient
83    private Object parent;
84
85    /**
86     * Gets the value of the dateFormat property.
87     *
88     * @return
89     *     possible object is
90     *     {@link CTSdtDate.DateFormat }
91     *     
92     */
93    public CTSdtDate.DateFormat getDateFormat() {
94        return dateFormat;
95    }
96
97    /**
98     * Sets the value of the dateFormat property.
99     *
100     * @param value
101     *     allowed object is
102     *     {@link CTSdtDate.DateFormat }
103     *     
104     */
105    public void setDateFormat(CTSdtDate.DateFormat value) {
106        this.dateFormat = value;
107    }
108
109    /**
110     * Gets the value of the lid property.
111     *
112     * @return
113     *     possible object is
114     *     {@link CTLang }
115     *     
116     */
117    public CTLang getLid() {
118        return lid;
119    }
120
121    /**
122     * Sets the value of the lid property.
123     *
124     * @param value
125     *     allowed object is
126     *     {@link CTLang }
127     *     
128     */
129    public void setLid(CTLang value) {
130        this.lid = value;
131    }
132
133    /**
134     * Gets the value of the storeMappedDataAs property.
135     *
136     * @return
137     *     possible object is
138     *     {@link CTSdtDateMappingType }
139     *     
140     */
141    public CTSdtDateMappingType getStoreMappedDataAs() {
142        return storeMappedDataAs;
143    }
144
145    /**
146     * Sets the value of the storeMappedDataAs property.
147     *
148     * @param value
149     *     allowed object is
150     *     {@link CTSdtDateMappingType }
151     *     
152     */
153    public void setStoreMappedDataAs(CTSdtDateMappingType value) {
154        this.storeMappedDataAs = value;
155    }
156
157    /**
158     * Gets the value of the calendar property.
159     *
160     * @return
161     *     possible object is
162     *     {@link CTCalendarType }
163     *     
164     */
165    public CTCalendarType getCalendar() {
166        return calendar;
167    }
168
169    /**
170     * Sets the value of the calendar property.
171     *
172     * @param value
173     *     allowed object is
174     *     {@link CTCalendarType }
175     *     
176     */
177    public void setCalendar(CTCalendarType value) {
178        this.calendar = value;
179    }
180
181    /**
182     * Gets the value of the fullDate property.
183     *
184     * @return
185     *     possible object is
186     *     {@link XMLGregorianCalendar }
187     *     
188     */
189    public XMLGregorianCalendar getFullDate() {
190        return fullDate;
191    }
192
193    /**
194     * Sets the value of the fullDate property.
195     *
196     * @param value
197     *     allowed object is
198     *     {@link XMLGregorianCalendar }
199     *     
200     */
201    public void setFullDate(XMLGregorianCalendar value) {
202        this.fullDate = value;
203    }
204
205    /**
206     * Gets the parent object in the object tree representing the unmarshalled xml document.
207     *
208     * @return
209     *     The parent object.
210     */
211    public Object getParent() {
212        return this.parent;
213    }
214
215    public void setParent(Object parent) {
216        this.parent = parent;
217    }
218
219    /**
220     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
221     *
222     * @param parent
223     *     The parent object in the object tree.
224     * @param unmarshaller
225     *     The unmarshaller that generated the instance.
226     */
227    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
228        setParent(parent);
229    }
230
231
232    /**
233     * <p>Java class for anonymous complex type.
234     *
235     * <p>The following schema fragment specifies the expected content contained within this class.
236     *
237     * <pre>
238     * &lt;complexType>
239     *   &lt;complexContent>
240     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
241     *       &lt;attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
242     *     &lt;/restriction>
243     *   &lt;/complexContent>
244     * &lt;/complexType>
245     * </pre>
246     *
247     *
248     */
249    @XmlAccessorType(XmlAccessType.FIELD)
250    @XmlType(name = "")
251    public static class DateFormat
252        implements Child
253    {
254
255        @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
256        protected String val;
257        @XmlTransient
258        private Object parent;
259
260        /**
261         * Gets the value of the val property.
262         *
263         * @return
264         *     possible object is
265         *     {@link String }
266         *     
267         */
268        public String getVal() {
269            return val;
270        }
271
272        /**
273         * Sets the value of the val property.
274         *
275         * @param value
276         *     allowed object is
277         *     {@link String }
278         *     
279         */
280        public void setVal(String value) {
281            this.val = value;
282        }
283
284        /**
285         * Gets the parent object in the object tree representing the unmarshalled xml document.
286         *
287         * @return
288         *     The parent object.
289         */
290        public Object getParent() {
291            return this.parent;
292        }
293
294        public void setParent(Object parent) {
295            this.parent = parent;
296        }
297
298        /**
299         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
300         *
301         * @param parent
302         *     The parent object in the object tree.
303         * @param unmarshaller
304         *     The unmarshaller that generated the instance.
305         */
306        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
307            setParent(parent);
308        }
309
310    }
311
312}
Note: See TracBrowser for help on using the repository browser.