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

Revision 359, 2.7 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_TextEffect.
31 *
32 * <p>The following schema fragment specifies the expected content contained within this class.
33 * <p>
34 * <pre>
35 * &lt;simpleType name="ST_TextEffect">
36 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
37 *     &lt;enumeration value="blinkBackground"/>
38 *     &lt;enumeration value="lights"/>
39 *     &lt;enumeration value="antsBlack"/>
40 *     &lt;enumeration value="antsRed"/>
41 *     &lt;enumeration value="shimmer"/>
42 *     &lt;enumeration value="sparkle"/>
43 *     &lt;enumeration value="none"/>
44 *   &lt;/restriction>
45 * &lt;/simpleType>
46 * </pre>
47 *
48 */
49@XmlType(name = "ST_TextEffect")
50@XmlEnum
51public enum STTextEffect {
52
53
54    /**
55     * Blinking Background
56     *                                          Animation
57     *
58     */
59    @XmlEnumValue("blinkBackground")
60    BLINK_BACKGROUND("blinkBackground"),
61
62    /**
63     * Colored Lights
64     *                                          Animation
65     *
66     */
67    @XmlEnumValue("lights")
68    LIGHTS("lights"),
69
70    /**
71     * Black Dashed Line
72     *                                          Animation
73     *
74     */
75    @XmlEnumValue("antsBlack")
76    ANTS_BLACK("antsBlack"),
77
78    /**
79     * Marching Red Ants
80     *
81     */
82    @XmlEnumValue("antsRed")
83    ANTS_RED("antsRed"),
84
85    /**
86     * Shimmer Animation
87     *
88     */
89    @XmlEnumValue("shimmer")
90    SHIMMER("shimmer"),
91
92    /**
93     * Sparkling Lights
94     *                                          Animation
95     *
96     */
97    @XmlEnumValue("sparkle")
98    SPARKLE("sparkle"),
99
100    /**
101     * No Animation
102     *
103     */
104    @XmlEnumValue("none")
105    NONE("none");
106    private final String value;
107
108    STTextEffect(String v) {
109        value = v;
110    }
111
112    public String value() {
113        return value;
114    }
115
116    public static STTextEffect fromValue(String v) {
117        for (STTextEffect c: STTextEffect.values()) {
118            if (c.value.equals(v)) {
119                return c;
120            }
121        }
122        throw new IllegalArgumentException(v);
123    }
124
125}
Note: See TracBrowser for help on using the repository browser.