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

Revision 1041, 3.0 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_BlackWhiteMode.
31 *
32 * <p>The following schema fragment specifies the expected content contained within this class.
33 * <p>
34 * <pre>
35 * &lt;simpleType name="ST_BlackWhiteMode">
36 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}token">
37 *     &lt;enumeration value="clr"/>
38 *     &lt;enumeration value="auto"/>
39 *     &lt;enumeration value="gray"/>
40 *     &lt;enumeration value="ltGray"/>
41 *     &lt;enumeration value="invGray"/>
42 *     &lt;enumeration value="grayWhite"/>
43 *     &lt;enumeration value="blackGray"/>
44 *     &lt;enumeration value="blackWhite"/>
45 *     &lt;enumeration value="black"/>
46 *     &lt;enumeration value="white"/>
47 *     &lt;enumeration value="hidden"/>
48 *   &lt;/restriction>
49 * &lt;/simpleType>
50 * </pre>
51 *
52 */
53@XmlType(name = "ST_BlackWhiteMode")
54@XmlEnum
55public enum STBlackWhiteMode {
56
57
58    /**
59     * Color
60     *
61     */
62    @XmlEnumValue("clr")
63    CLR("clr"),
64
65    /**
66     * Automatic
67     *
68     */
69    @XmlEnumValue("auto")
70    AUTO("auto"),
71
72    /**
73     * Gray
74     *
75     */
76    @XmlEnumValue("gray")
77    GRAY("gray"),
78
79    /**
80     * Light Gray
81     *
82     */
83    @XmlEnumValue("ltGray")
84    LT_GRAY("ltGray"),
85
86    /**
87     * Inverse Gray
88     *
89     */
90    @XmlEnumValue("invGray")
91    INV_GRAY("invGray"),
92
93    /**
94     * Gray and White
95     *
96     */
97    @XmlEnumValue("grayWhite")
98    GRAY_WHITE("grayWhite"),
99
100    /**
101     * Black and Gray
102     *
103     */
104    @XmlEnumValue("blackGray")
105    BLACK_GRAY("blackGray"),
106
107    /**
108     * Black and White
109     *
110     */
111    @XmlEnumValue("blackWhite")
112    BLACK_WHITE("blackWhite"),
113
114    /**
115     * Black
116     *
117     */
118    @XmlEnumValue("black")
119    BLACK("black"),
120
121    /**
122     * White
123     *
124     */
125    @XmlEnumValue("white")
126    WHITE("white"),
127
128    /**
129     * Hidden
130     *
131     */
132    @XmlEnumValue("hidden")
133    HIDDEN("hidden");
134    private final String value;
135
136    STBlackWhiteMode(String v) {
137        value = v;
138    }
139
140    public String value() {
141        return value;
142    }
143
144    public static STBlackWhiteMode fromValue(String v) {
145        for (STBlackWhiteMode c: STBlackWhiteMode.values()) {
146            if (c.value.equals(v)) {
147                return c;
148            }
149        }
150        throw new IllegalArgumentException(v);
151    }
152
153}
Note: See TracBrowser for help on using the repository browser.