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

Revision 359, 7.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 javax.xml.bind.annotation.XmlEnum;
25import javax.xml.bind.annotation.XmlEnumValue;
26import javax.xml.bind.annotation.XmlType;
27
28
29/**
30 * <p>Java class for ST_DocPartGallery.
31 *
32 * <p>The following schema fragment specifies the expected content contained within this class.
33 * <p>
34 * <pre>
35 * &lt;simpleType name="ST_DocPartGallery">
36 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
37 *     &lt;enumeration value="placeholder"/>
38 *     &lt;enumeration value="any"/>
39 *     &lt;enumeration value="default"/>
40 *     &lt;enumeration value="docParts"/>
41 *     &lt;enumeration value="coverPg"/>
42 *     &lt;enumeration value="eq"/>
43 *     &lt;enumeration value="ftrs"/>
44 *     &lt;enumeration value="hdrs"/>
45 *     &lt;enumeration value="pgNum"/>
46 *     &lt;enumeration value="tbls"/>
47 *     &lt;enumeration value="watermarks"/>
48 *     &lt;enumeration value="autoTxt"/>
49 *     &lt;enumeration value="txtBox"/>
50 *     &lt;enumeration value="pgNumT"/>
51 *     &lt;enumeration value="pgNumB"/>
52 *     &lt;enumeration value="pgNumMargins"/>
53 *     &lt;enumeration value="tblOfContents"/>
54 *     &lt;enumeration value="bib"/>
55 *     &lt;enumeration value="custQuickParts"/>
56 *     &lt;enumeration value="custCoverPg"/>
57 *     &lt;enumeration value="custEq"/>
58 *     &lt;enumeration value="custFtrs"/>
59 *     &lt;enumeration value="custHdrs"/>
60 *     &lt;enumeration value="custPgNum"/>
61 *     &lt;enumeration value="custTbls"/>
62 *     &lt;enumeration value="custWatermarks"/>
63 *     &lt;enumeration value="custAutoTxt"/>
64 *     &lt;enumeration value="custTxtBox"/>
65 *     &lt;enumeration value="custPgNumT"/>
66 *     &lt;enumeration value="custPgNumB"/>
67 *     &lt;enumeration value="custPgNumMargins"/>
68 *     &lt;enumeration value="custTblOfContents"/>
69 *     &lt;enumeration value="custBib"/>
70 *     &lt;enumeration value="custom1"/>
71 *     &lt;enumeration value="custom2"/>
72 *     &lt;enumeration value="custom3"/>
73 *     &lt;enumeration value="custom4"/>
74 *     &lt;enumeration value="custom5"/>
75 *   &lt;/restriction>
76 * &lt;/simpleType>
77 * </pre>
78 *
79 */
80@XmlType(name = "ST_DocPartGallery")
81@XmlEnum
82public enum STDocPartGallery {
83
84
85    /**
86     * Structured Document Tag Placeholder Text
87     *                                          Gallery
88     *
89     */
90    @XmlEnumValue("placeholder")
91    PLACEHOLDER("placeholder"),
92
93    /**
94     * All Galleries
95     *
96     */
97    @XmlEnumValue("any")
98    ANY("any"),
99
100    /**
101     * No Gallery
102     *                                          Classification
103     *
104     */
105    @XmlEnumValue("default")
106    DEFAULT("default"),
107
108    /**
109     * Document Parts Gallery
110     *
111     */
112    @XmlEnumValue("docParts")
113    DOC_PARTS("docParts"),
114
115    /**
116     * Cover Page Gallery
117     *
118     */
119    @XmlEnumValue("coverPg")
120    COVER_PG("coverPg"),
121
122    /**
123     * Equations Gallery
124     *
125     */
126    @XmlEnumValue("eq")
127    EQ("eq"),
128
129    /**
130     * Footers Gallery
131     *
132     */
133    @XmlEnumValue("ftrs")
134    FTRS("ftrs"),
135
136    /**
137     * Headers Gallery
138     *
139     */
140    @XmlEnumValue("hdrs")
141    HDRS("hdrs"),
142
143    /**
144     * Page Numbers Gallery
145     *
146     */
147    @XmlEnumValue("pgNum")
148    PG_NUM("pgNum"),
149
150    /**
151     * Table Gallery
152     *
153     */
154    @XmlEnumValue("tbls")
155    TBLS("tbls"),
156
157    /**
158     * Watermark Gallery
159     *
160     */
161    @XmlEnumValue("watermarks")
162    WATERMARKS("watermarks"),
163
164    /**
165     * AutoText Gallery
166     *
167     */
168    @XmlEnumValue("autoTxt")
169    AUTO_TXT("autoTxt"),
170
171    /**
172     * Text Box Gallery
173     *
174     */
175    @XmlEnumValue("txtBox")
176    TXT_BOX("txtBox"),
177
178    /**
179     * Page Numbers At Top
180     *                                          Gallery
181     *
182     */
183    @XmlEnumValue("pgNumT")
184    PG_NUM_T("pgNumT"),
185
186    /**
187     * Page Numbers At Bottom
188     *                                          Gallery
189     *
190     */
191    @XmlEnumValue("pgNumB")
192    PG_NUM_B("pgNumB"),
193
194    /**
195     * Page Numbers At Margins
196     *                                          Gallery
197     *
198     */
199    @XmlEnumValue("pgNumMargins")
200    PG_NUM_MARGINS("pgNumMargins"),
201
202    /**
203     * Table of Contents
204     *                                          Gallery
205     *
206     */
207    @XmlEnumValue("tblOfContents")
208    TBL_OF_CONTENTS("tblOfContents"),
209
210    /**
211     * Bibliography Gallery
212     *
213     */
214    @XmlEnumValue("bib")
215    BIB("bib"),
216
217    /**
218     * Custom Quick Parts
219     *                                          Gallery
220     *
221     */
222    @XmlEnumValue("custQuickParts")
223    CUST_QUICK_PARTS("custQuickParts"),
224
225    /**
226     * Custom Cover Page
227     *                                          Gallery
228     *
229     */
230    @XmlEnumValue("custCoverPg")
231    CUST_COVER_PG("custCoverPg"),
232
233    /**
234     * Custom Equation Gallery
235     *
236     */
237    @XmlEnumValue("custEq")
238    CUST_EQ("custEq"),
239
240    /**
241     * Custom Footer Gallery
242     *
243     */
244    @XmlEnumValue("custFtrs")
245    CUST_FTRS("custFtrs"),
246
247    /**
248     * Custom Header Gallery
249     *
250     */
251    @XmlEnumValue("custHdrs")
252    CUST_HDRS("custHdrs"),
253
254    /**
255     * Custom Page Number
256     *                                          Gallery
257     *
258     */
259    @XmlEnumValue("custPgNum")
260    CUST_PG_NUM("custPgNum"),
261
262    /**
263     * Custom Table Gallery
264     *
265     */
266    @XmlEnumValue("custTbls")
267    CUST_TBLS("custTbls"),
268
269    /**
270     * Custom Watermark
271     *                                          Gallery
272     *
273     */
274    @XmlEnumValue("custWatermarks")
275    CUST_WATERMARKS("custWatermarks"),
276
277    /**
278     * Custom AutoText Gallery
279     *
280     */
281    @XmlEnumValue("custAutoTxt")
282    CUST_AUTO_TXT("custAutoTxt"),
283
284    /**
285     * Custom Text Box Gallery
286     *
287     */
288    @XmlEnumValue("custTxtBox")
289    CUST_TXT_BOX("custTxtBox"),
290
291    /**
292     * Custom Page Number At Top
293     *                                          Gallery
294     *
295     */
296    @XmlEnumValue("custPgNumT")
297    CUST_PG_NUM_T("custPgNumT"),
298
299    /**
300     * Custom Page Number At Bottom
301     *                                          Gallery
302     *
303     */
304    @XmlEnumValue("custPgNumB")
305    CUST_PG_NUM_B("custPgNumB"),
306
307    /**
308     * Custom Page Number At Margins
309     *                                          Gallery
310     *
311     */
312    @XmlEnumValue("custPgNumMargins")
313    CUST_PG_NUM_MARGINS("custPgNumMargins"),
314
315    /**
316     * Custom Table of Contents
317     *                                          Gallery
318     *
319     */
320    @XmlEnumValue("custTblOfContents")
321    CUST_TBL_OF_CONTENTS("custTblOfContents"),
322
323    /**
324     * Custom Bibliography
325     *                                          Gallery
326     *
327     */
328    @XmlEnumValue("custBib")
329    CUST_BIB("custBib"),
330
331    /**
332     * Custom 1 Gallery
333     *
334     */
335    @XmlEnumValue("custom1")
336    CUSTOM_1("custom1"),
337
338    /**
339     * Custom 2 Gallery
340     *
341     */
342    @XmlEnumValue("custom2")
343    CUSTOM_2("custom2"),
344
345    /**
346     * Custom 3 Gallery
347     *
348     */
349    @XmlEnumValue("custom3")
350    CUSTOM_3("custom3"),
351
352    /**
353     * Custom 4 Gallery
354     *
355     */
356    @XmlEnumValue("custom4")
357    CUSTOM_4("custom4"),
358
359    /**
360     * Custom 5 Gallery
361     *
362     */
363    @XmlEnumValue("custom5")
364    CUSTOM_5("custom5");
365    private final String value;
366
367    STDocPartGallery(String v) {
368        value = v;
369    }
370
371    public String value() {
372        return value;
373    }
374
375    public static STDocPartGallery fromValue(String v) {
376        for (STDocPartGallery c: STDocPartGallery.values()) {
377            if (c.value.equals(v)) {
378                return c;
379            }
380        }
381        throw new IllegalArgumentException(v);
382    }
383
384}
Note: See TracBrowser for help on using the repository browser.