source: trunk/docx4j/src/main/java/org/docx4j/dml/STSchemeColorVal.java @ 1041

Revision 1041, 3.8 KB checked in by jharrop, 2 years ago (diff)

More complete DML, generated from TC45 1.0 final, using dmlROOT.xsd

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.dml;
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_SchemeColorVal.
31 *
32 * <p>The following schema fragment specifies the expected content contained within this class.
33 * <p>
34 * <pre>
35 * &lt;simpleType name="ST_SchemeColorVal">
36 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}token">
37 *     &lt;enumeration value="bg1"/>
38 *     &lt;enumeration value="tx1"/>
39 *     &lt;enumeration value="bg2"/>
40 *     &lt;enumeration value="tx2"/>
41 *     &lt;enumeration value="accent1"/>
42 *     &lt;enumeration value="accent2"/>
43 *     &lt;enumeration value="accent3"/>
44 *     &lt;enumeration value="accent4"/>
45 *     &lt;enumeration value="accent5"/>
46 *     &lt;enumeration value="accent6"/>
47 *     &lt;enumeration value="hlink"/>
48 *     &lt;enumeration value="folHlink"/>
49 *     &lt;enumeration value="phClr"/>
50 *     &lt;enumeration value="dk1"/>
51 *     &lt;enumeration value="lt1"/>
52 *     &lt;enumeration value="dk2"/>
53 *     &lt;enumeration value="lt2"/>
54 *   &lt;/restriction>
55 * &lt;/simpleType>
56 * </pre>
57 *
58 */
59@XmlType(name = "ST_SchemeColorVal")
60@XmlEnum
61public enum STSchemeColorVal {
62
63
64    /**
65     * Background Color 1
66     *
67     */
68    @XmlEnumValue("bg1")
69    BG_1("bg1"),
70
71    /**
72     * Text Color 1
73     *
74     */
75    @XmlEnumValue("tx1")
76    TX_1("tx1"),
77
78    /**
79     * Background Color 2
80     *
81     */
82    @XmlEnumValue("bg2")
83    BG_2("bg2"),
84
85    /**
86     * Text Color 2
87     *
88     */
89    @XmlEnumValue("tx2")
90    TX_2("tx2"),
91
92    /**
93     * Accent Color 1
94     *
95     */
96    @XmlEnumValue("accent1")
97    ACCENT_1("accent1"),
98
99    /**
100     * Accent Color 2
101     *
102     */
103    @XmlEnumValue("accent2")
104    ACCENT_2("accent2"),
105
106    /**
107     * Accent Color 3
108     *
109     */
110    @XmlEnumValue("accent3")
111    ACCENT_3("accent3"),
112
113    /**
114     * Accent Color 4
115     *
116     */
117    @XmlEnumValue("accent4")
118    ACCENT_4("accent4"),
119
120    /**
121     * Accent Color 5
122     *
123     */
124    @XmlEnumValue("accent5")
125    ACCENT_5("accent5"),
126
127    /**
128     * Accent Color 6
129     *
130     */
131    @XmlEnumValue("accent6")
132    ACCENT_6("accent6"),
133
134    /**
135     * Hyperlink Color
136     *
137     */
138    @XmlEnumValue("hlink")
139    HLINK("hlink"),
140
141    /**
142     * Followed Hyperlink Color
143     *
144     */
145    @XmlEnumValue("folHlink")
146    FOL_HLINK("folHlink"),
147
148    /**
149     * Style Color
150     *
151     */
152    @XmlEnumValue("phClr")
153    PH_CLR("phClr"),
154
155    /**
156     * Dark Color 1
157     *
158     */
159    @XmlEnumValue("dk1")
160    DK_1("dk1"),
161
162    /**
163     * Light Color 1
164     *
165     */
166    @XmlEnumValue("lt1")
167    LT_1("lt1"),
168
169    /**
170     * Dark Color 2
171     *
172     */
173    @XmlEnumValue("dk2")
174    DK_2("dk2"),
175
176    /**
177     * Light Color 2
178     *
179     */
180    @XmlEnumValue("lt2")
181    LT_2("lt2");
182    private final String value;
183
184    STSchemeColorVal(String v) {
185        value = v;
186    }
187
188    public String value() {
189        return value;
190    }
191
192    public static STSchemeColorVal fromValue(String v) {
193        for (STSchemeColorVal c: STSchemeColorVal.values()) {
194            if (c.value.equals(v)) {
195                return c;
196            }
197        }
198        throw new IllegalArgumentException(v);
199    }
200
201}
Note: See TracBrowser for help on using the repository browser.