source: trunk/docx4j/src/main/java/org/docx4j/wml/NumberFormat.java @ 568

Revision 568, 12.5 KB checked in by jharrop, 4 years ago (diff)

Regenerated JAXB classes, primarily to improve header/footer handling.
Also changed CT_Hyperlink to P.Hyperlink (though maybe its better not as an inner class)

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 NumberFormat.
31 *
32 * <p>The following schema fragment specifies the expected content contained within this class.
33 * <p>
34 * <pre>
35 * &lt;simpleType name="NumberFormat">
36 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
37 *     &lt;enumeration value="decimal"/>
38 *     &lt;enumeration value="upperRoman"/>
39 *     &lt;enumeration value="lowerRoman"/>
40 *     &lt;enumeration value="upperLetter"/>
41 *     &lt;enumeration value="lowerLetter"/>
42 *     &lt;enumeration value="ordinal"/>
43 *     &lt;enumeration value="cardinalText"/>
44 *     &lt;enumeration value="ordinalText"/>
45 *     &lt;enumeration value="hex"/>
46 *     &lt;enumeration value="chicago"/>
47 *     &lt;enumeration value="ideographDigital"/>
48 *     &lt;enumeration value="japaneseCounting"/>
49 *     &lt;enumeration value="aiueo"/>
50 *     &lt;enumeration value="iroha"/>
51 *     &lt;enumeration value="decimalFullWidth"/>
52 *     &lt;enumeration value="decimalHalfWidth"/>
53 *     &lt;enumeration value="japaneseLegal"/>
54 *     &lt;enumeration value="japaneseDigitalTenThousand"/>
55 *     &lt;enumeration value="decimalEnclosedCircle"/>
56 *     &lt;enumeration value="decimalFullWidth2"/>
57 *     &lt;enumeration value="aiueoFullWidth"/>
58 *     &lt;enumeration value="irohaFullWidth"/>
59 *     &lt;enumeration value="decimalZero"/>
60 *     &lt;enumeration value="bullet"/>
61 *     &lt;enumeration value="ganada"/>
62 *     &lt;enumeration value="chosung"/>
63 *     &lt;enumeration value="decimalEnclosedFullstop"/>
64 *     &lt;enumeration value="decimalEnclosedParen"/>
65 *     &lt;enumeration value="decimalEnclosedCircleChinese"/>
66 *     &lt;enumeration value="ideographEnclosedCircle"/>
67 *     &lt;enumeration value="ideographTraditional"/>
68 *     &lt;enumeration value="ideographZodiac"/>
69 *     &lt;enumeration value="ideographZodiacTraditional"/>
70 *     &lt;enumeration value="taiwaneseCounting"/>
71 *     &lt;enumeration value="ideographLegalTraditional"/>
72 *     &lt;enumeration value="taiwaneseCountingThousand"/>
73 *     &lt;enumeration value="taiwaneseDigital"/>
74 *     &lt;enumeration value="chineseCounting"/>
75 *     &lt;enumeration value="chineseLegalSimplified"/>
76 *     &lt;enumeration value="chineseCountingThousand"/>
77 *     &lt;enumeration value="koreanDigital"/>
78 *     &lt;enumeration value="koreanCounting"/>
79 *     &lt;enumeration value="koreanLegal"/>
80 *     &lt;enumeration value="koreanDigital2"/>
81 *     &lt;enumeration value="vietnameseCounting"/>
82 *     &lt;enumeration value="russianLower"/>
83 *     &lt;enumeration value="russianUpper"/>
84 *     &lt;enumeration value="none"/>
85 *     &lt;enumeration value="numberInDash"/>
86 *     &lt;enumeration value="hebrew1"/>
87 *     &lt;enumeration value="hebrew2"/>
88 *     &lt;enumeration value="arabicAlpha"/>
89 *     &lt;enumeration value="arabicAbjad"/>
90 *     &lt;enumeration value="hindiVowels"/>
91 *     &lt;enumeration value="hindiConsonants"/>
92 *     &lt;enumeration value="hindiNumbers"/>
93 *     &lt;enumeration value="hindiCounting"/>
94 *     &lt;enumeration value="thaiLetters"/>
95 *     &lt;enumeration value="thaiNumbers"/>
96 *     &lt;enumeration value="thaiCounting"/>
97 *   &lt;/restriction>
98 * &lt;/simpleType>
99 * </pre>
100 *
101 */
102@XmlType(name = "NumberFormat")
103@XmlEnum
104public enum NumberFormat {
105
106
107    /**
108     * Decimal Numbers
109     *
110     */
111    @XmlEnumValue("decimal")
112    DECIMAL("decimal"),
113
114    /**
115     * Uppercase Roman
116     *                                          Numerals
117     *
118     */
119    @XmlEnumValue("upperRoman")
120    UPPER_ROMAN("upperRoman"),
121
122    /**
123     * Lowercase Roman
124     *                                          Numerals
125     *
126     */
127    @XmlEnumValue("lowerRoman")
128    LOWER_ROMAN("lowerRoman"),
129
130    /**
131     * Uppercase Latin
132     *                                          Alphabet
133     *
134     */
135    @XmlEnumValue("upperLetter")
136    UPPER_LETTER("upperLetter"),
137
138    /**
139     * Lowercase Latin
140     *                                          Alphabet
141     *
142     */
143    @XmlEnumValue("lowerLetter")
144    LOWER_LETTER("lowerLetter"),
145
146    /**
147     * Ordinal
148     *
149     */
150    @XmlEnumValue("ordinal")
151    ORDINAL("ordinal"),
152
153    /**
154     * Cardinal Text
155     *
156     */
157    @XmlEnumValue("cardinalText")
158    CARDINAL_TEXT("cardinalText"),
159
160    /**
161     * Ordinal Text
162     *
163     */
164    @XmlEnumValue("ordinalText")
165    ORDINAL_TEXT("ordinalText"),
166
167    /**
168     * Hexadecimal Numbering
169     *
170     */
171    @XmlEnumValue("hex")
172    HEX("hex"),
173
174    /**
175     * Chicago Manual of Style
176     *
177     */
178    @XmlEnumValue("chicago")
179    CHICAGO("chicago"),
180
181    /**
182     * Ideographs
183     *
184     */
185    @XmlEnumValue("ideographDigital")
186    IDEOGRAPH_DIGITAL("ideographDigital"),
187
188    /**
189     * Japanese Counting
190     *                                          System
191     *
192     */
193    @XmlEnumValue("japaneseCounting")
194    JAPANESE_COUNTING("japaneseCounting"),
195
196    /**
197     * AIUEO Order Hiragana
198     *
199     */
200    @XmlEnumValue("aiueo")
201    AIUEO("aiueo"),
202
203    /**
204     * Iroha Ordered Katakana
205     *
206     */
207    @XmlEnumValue("iroha")
208    IROHA("iroha"),
209
210    /**
211     * Double Byte Arabic
212     *                                          Numerals
213     *
214     */
215    @XmlEnumValue("decimalFullWidth")
216    DECIMAL_FULL_WIDTH("decimalFullWidth"),
217
218    /**
219     * Single Byte Arabic
220     *                                          Numerals
221     *
222     */
223    @XmlEnumValue("decimalHalfWidth")
224    DECIMAL_HALF_WIDTH("decimalHalfWidth"),
225
226    /**
227     * Japanese Legal
228     *                                          Numbering
229     *
230     */
231    @XmlEnumValue("japaneseLegal")
232    JAPANESE_LEGAL("japaneseLegal"),
233
234    /**
235     * Japanese Digital Ten Thousand Counting
236     *                                          System
237     *
238     */
239    @XmlEnumValue("japaneseDigitalTenThousand")
240    JAPANESE_DIGITAL_TEN_THOUSAND("japaneseDigitalTenThousand"),
241
242    /**
243     * Decimal Numbers Enclosed in a
244     *                                          Circle
245     *
246     */
247    @XmlEnumValue("decimalEnclosedCircle")
248    DECIMAL_ENCLOSED_CIRCLE("decimalEnclosedCircle"),
249
250    /**
251     * Double Byte Arabic Numerals
252     *                                          Alternate
253     *
254     */
255    @XmlEnumValue("decimalFullWidth2")
256    DECIMAL_FULL_WIDTH_2("decimalFullWidth2"),
257
258    /**
259     * Full-Width AIUEO Order
260     *                                          Hiragana
261     *
262     */
263    @XmlEnumValue("aiueoFullWidth")
264    AIUEO_FULL_WIDTH("aiueoFullWidth"),
265
266    /**
267     * Full-Width Iroha Ordered
268     *                                          Katakana
269     *
270     */
271    @XmlEnumValue("irohaFullWidth")
272    IROHA_FULL_WIDTH("irohaFullWidth"),
273
274    /**
275     * Initial Zero Arabic
276     *                                          Numerals
277     *
278     */
279    @XmlEnumValue("decimalZero")
280    DECIMAL_ZERO("decimalZero"),
281
282    /**
283     * Bullet
284     *
285     */
286    @XmlEnumValue("bullet")
287    BULLET("bullet"),
288
289    /**
290     * Korean Ganada Numbering
291     *
292     */
293    @XmlEnumValue("ganada")
294    GANADA("ganada"),
295
296    /**
297     * Korean Chosung
298     *                                          Numbering
299     *
300     */
301    @XmlEnumValue("chosung")
302    CHOSUNG("chosung"),
303
304    /**
305     * Decimal Numbers Followed by a
306     *                                          Period
307     *
308     */
309    @XmlEnumValue("decimalEnclosedFullstop")
310    DECIMAL_ENCLOSED_FULLSTOP("decimalEnclosedFullstop"),
311
312    /**
313     * Decimal Numbers Enclosed in
314     *                                          Parenthesis
315     *
316     */
317    @XmlEnumValue("decimalEnclosedParen")
318    DECIMAL_ENCLOSED_PAREN("decimalEnclosedParen"),
319
320    /**
321     * Decimal Numbers Enclosed in a
322     *                                          Circle
323     *
324     */
325    @XmlEnumValue("decimalEnclosedCircleChinese")
326    DECIMAL_ENCLOSED_CIRCLE_CHINESE("decimalEnclosedCircleChinese"),
327
328    /**
329     * Ideographs Enclosed in a
330     *                                          Circle
331     *
332     */
333    @XmlEnumValue("ideographEnclosedCircle")
334    IDEOGRAPH_ENCLOSED_CIRCLE("ideographEnclosedCircle"),
335
336    /**
337     * Traditional Ideograph
338     *                                          Format
339     *
340     */
341    @XmlEnumValue("ideographTraditional")
342    IDEOGRAPH_TRADITIONAL("ideographTraditional"),
343
344    /**
345     * Zodiac Ideograph Format
346     *
347     */
348    @XmlEnumValue("ideographZodiac")
349    IDEOGRAPH_ZODIAC("ideographZodiac"),
350
351    /**
352     * Traditional Zodiac Ideograph
353     *                                          Format
354     *
355     */
356    @XmlEnumValue("ideographZodiacTraditional")
357    IDEOGRAPH_ZODIAC_TRADITIONAL("ideographZodiacTraditional"),
358
359    /**
360     * Taiwanese Counting
361     *                                          System
362     *
363     */
364    @XmlEnumValue("taiwaneseCounting")
365    TAIWANESE_COUNTING("taiwaneseCounting"),
366
367    /**
368     * Traditional Legal Ideograph
369     *                                          Format
370     *
371     */
372    @XmlEnumValue("ideographLegalTraditional")
373    IDEOGRAPH_LEGAL_TRADITIONAL("ideographLegalTraditional"),
374
375    /**
376     * Taiwanese Counting Thousand
377     *                                          System
378     *
379     */
380    @XmlEnumValue("taiwaneseCountingThousand")
381    TAIWANESE_COUNTING_THOUSAND("taiwaneseCountingThousand"),
382
383    /**
384     * Taiwanese Digital Counting
385     *                                          System
386     *
387     */
388    @XmlEnumValue("taiwaneseDigital")
389    TAIWANESE_DIGITAL("taiwaneseDigital"),
390
391    /**
392     * Chinese Counting System
393     *
394     */
395    @XmlEnumValue("chineseCounting")
396    CHINESE_COUNTING("chineseCounting"),
397
398    /**
399     * Chinese Legal Simplified
400     *                                          Format
401     *
402     */
403    @XmlEnumValue("chineseLegalSimplified")
404    CHINESE_LEGAL_SIMPLIFIED("chineseLegalSimplified"),
405
406    /**
407     * Chinese Counting Thousand
408     *                                          System
409     *
410     */
411    @XmlEnumValue("chineseCountingThousand")
412    CHINESE_COUNTING_THOUSAND("chineseCountingThousand"),
413
414    /**
415     * Korean Digital Counting
416     *                                          System
417     *
418     */
419    @XmlEnumValue("koreanDigital")
420    KOREAN_DIGITAL("koreanDigital"),
421
422    /**
423     * Korean Counting System
424     *
425     */
426    @XmlEnumValue("koreanCounting")
427    KOREAN_COUNTING("koreanCounting"),
428
429    /**
430     * Korean Legal Numbering
431     *
432     */
433    @XmlEnumValue("koreanLegal")
434    KOREAN_LEGAL("koreanLegal"),
435
436    /**
437     * Korean Digital Counting System
438     *                                          Alternate
439     *
440     */
441    @XmlEnumValue("koreanDigital2")
442    KOREAN_DIGITAL_2("koreanDigital2"),
443
444    /**
445     * Vietnamese Numerals
446     *
447     */
448    @XmlEnumValue("vietnameseCounting")
449    VIETNAMESE_COUNTING("vietnameseCounting"),
450
451    /**
452     * Lowercase Russian
453     *                                          Alphabet
454     *
455     */
456    @XmlEnumValue("russianLower")
457    RUSSIAN_LOWER("russianLower"),
458
459    /**
460     * Uppercase Russian
461     *                                          Alphabet
462     *
463     */
464    @XmlEnumValue("russianUpper")
465    RUSSIAN_UPPER("russianUpper"),
466
467    /**
468     * No Numbering
469     *
470     */
471    @XmlEnumValue("none")
472    NONE("none"),
473
474    /**
475     * Number With Dashes
476     *
477     */
478    @XmlEnumValue("numberInDash")
479    NUMBER_IN_DASH("numberInDash"),
480
481    /**
482     * Hebrew Numerals
483     *
484     */
485    @XmlEnumValue("hebrew1")
486    HEBREW_1("hebrew1"),
487
488    /**
489     * Hebrew Alphabet
490     *
491     */
492    @XmlEnumValue("hebrew2")
493    HEBREW_2("hebrew2"),
494
495    /**
496     * Arabic Alphabet
497     *
498     */
499    @XmlEnumValue("arabicAlpha")
500    ARABIC_ALPHA("arabicAlpha"),
501
502    /**
503     * Arabic Abjad Numerals
504     *
505     */
506    @XmlEnumValue("arabicAbjad")
507    ARABIC_ABJAD("arabicAbjad"),
508
509    /**
510     * Hindi Vowels
511     *
512     */
513    @XmlEnumValue("hindiVowels")
514    HINDI_VOWELS("hindiVowels"),
515
516    /**
517     * Hindi Consonants
518     *
519     */
520    @XmlEnumValue("hindiConsonants")
521    HINDI_CONSONANTS("hindiConsonants"),
522
523    /**
524     * Hindi Numbers
525     *
526     */
527    @XmlEnumValue("hindiNumbers")
528    HINDI_NUMBERS("hindiNumbers"),
529
530    /**
531     * Hindi Counting System
532     *
533     */
534    @XmlEnumValue("hindiCounting")
535    HINDI_COUNTING("hindiCounting"),
536
537    /**
538     * Thai Letters
539     *
540     */
541    @XmlEnumValue("thaiLetters")
542    THAI_LETTERS("thaiLetters"),
543
544    /**
545     * Thai Numerals
546     *
547     */
548    @XmlEnumValue("thaiNumbers")
549    THAI_NUMBERS("thaiNumbers"),
550
551    /**
552     * Thai Counting System
553     *
554     */
555    @XmlEnumValue("thaiCounting")
556    THAI_COUNTING("thaiCounting");
557    private final String value;
558
559    NumberFormat(String v) {
560        value = v;
561    }
562
563    public String value() {
564        return value;
565    }
566
567    public static NumberFormat fromValue(String v) {
568        for (NumberFormat c: NumberFormat.values()) {
569            if (c.value.equals(v)) {
570                return c;
571            }
572        }
573        throw new IllegalArgumentException(v);
574    }
575
576}
Note: See TracBrowser for help on using the repository browser.