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

Revision 359, 2.9 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_Theme.
31 *
32 * <p>The following schema fragment specifies the expected content contained within this class.
33 * <p>
34 * <pre>
35 * &lt;simpleType name="ST_Theme">
36 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
37 *     &lt;enumeration value="majorEastAsia"/>
38 *     &lt;enumeration value="majorBidi"/>
39 *     &lt;enumeration value="majorAscii"/>
40 *     &lt;enumeration value="majorHAnsi"/>
41 *     &lt;enumeration value="minorEastAsia"/>
42 *     &lt;enumeration value="minorBidi"/>
43 *     &lt;enumeration value="minorAscii"/>
44 *     &lt;enumeration value="minorHAnsi"/>
45 *   &lt;/restriction>
46 * &lt;/simpleType>
47 * </pre>
48 *
49 */
50@XmlType(name = "ST_Theme")
51@XmlEnum
52public enum STTheme {
53
54
55    /**
56     * Major East Asian Theme
57     *                                          Font
58     *
59     */
60    @XmlEnumValue("majorEastAsia")
61    MAJOR_EAST_ASIA("majorEastAsia"),
62
63    /**
64     * Major Complex Script Theme
65     *                                          Font
66     *
67     */
68    @XmlEnumValue("majorBidi")
69    MAJOR_BIDI("majorBidi"),
70
71    /**
72     * Major ASCII Theme Font
73     *
74     */
75    @XmlEnumValue("majorAscii")
76    MAJOR_ASCII("majorAscii"),
77
78    /**
79     * Major High ANSI Theme
80     *                                          Font
81     *
82     */
83    @XmlEnumValue("majorHAnsi")
84    MAJOR_H_ANSI("majorHAnsi"),
85
86    /**
87     * Minor East Asian Theme
88     *                                          Font
89     *
90     */
91    @XmlEnumValue("minorEastAsia")
92    MINOR_EAST_ASIA("minorEastAsia"),
93
94    /**
95     * Minor Complex Script Theme
96     *                                          Font
97     *
98     */
99    @XmlEnumValue("minorBidi")
100    MINOR_BIDI("minorBidi"),
101
102    /**
103     * Minor ASCII Theme Font
104     *
105     */
106    @XmlEnumValue("minorAscii")
107    MINOR_ASCII("minorAscii"),
108
109    /**
110     * Minor High ANSI Theme
111     *                                          Font
112     *
113     */
114    @XmlEnumValue("minorHAnsi")
115    MINOR_H_ANSI("minorHAnsi");
116    private final String value;
117
118    STTheme(String v) {
119        value = v;
120    }
121
122    public String value() {
123        return value;
124    }
125
126    public static STTheme fromValue(String v) {
127        for (STTheme c: STTheme.values()) {
128            if (c.value.equals(v)) {
129                return c;
130            }
131        }
132        throw new IllegalArgumentException(v);
133    }
134
135}
Note: See TracBrowser for help on using the repository browser.