| 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 | |
|---|
| 22 | package org.docx4j.dml; |
|---|
| 23 | |
|---|
| 24 | import javax.xml.bind.annotation.XmlEnum; |
|---|
| 25 | import javax.xml.bind.annotation.XmlEnumValue; |
|---|
| 26 | import javax.xml.bind.annotation.XmlType; |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | /** |
|---|
| 30 | * <p>Java class for ST_PresetShadowVal. |
|---|
| 31 | * |
|---|
| 32 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 33 | * <p> |
|---|
| 34 | * <pre> |
|---|
| 35 | * <simpleType name="ST_PresetShadowVal"> |
|---|
| 36 | * <restriction base="{http://www.w3.org/2001/XMLSchema}token"> |
|---|
| 37 | * <enumeration value="shdw1"/> |
|---|
| 38 | * <enumeration value="shdw2"/> |
|---|
| 39 | * <enumeration value="shdw3"/> |
|---|
| 40 | * <enumeration value="shdw4"/> |
|---|
| 41 | * <enumeration value="shdw5"/> |
|---|
| 42 | * <enumeration value="shdw6"/> |
|---|
| 43 | * <enumeration value="shdw7"/> |
|---|
| 44 | * <enumeration value="shdw8"/> |
|---|
| 45 | * <enumeration value="shdw9"/> |
|---|
| 46 | * <enumeration value="shdw10"/> |
|---|
| 47 | * <enumeration value="shdw11"/> |
|---|
| 48 | * <enumeration value="shdw12"/> |
|---|
| 49 | * <enumeration value="shdw13"/> |
|---|
| 50 | * <enumeration value="shdw14"/> |
|---|
| 51 | * <enumeration value="shdw15"/> |
|---|
| 52 | * <enumeration value="shdw16"/> |
|---|
| 53 | * <enumeration value="shdw17"/> |
|---|
| 54 | * <enumeration value="shdw18"/> |
|---|
| 55 | * <enumeration value="shdw19"/> |
|---|
| 56 | * <enumeration value="shdw20"/> |
|---|
| 57 | * </restriction> |
|---|
| 58 | * </simpleType> |
|---|
| 59 | * </pre> |
|---|
| 60 | * |
|---|
| 61 | */ |
|---|
| 62 | @XmlType(name = "ST_PresetShadowVal") |
|---|
| 63 | @XmlEnum |
|---|
| 64 | public enum STPresetShadowVal { |
|---|
| 65 | |
|---|
| 66 | |
|---|
| 67 | /** |
|---|
| 68 | * Top Left Drop Shadow |
|---|
| 69 | * |
|---|
| 70 | */ |
|---|
| 71 | @XmlEnumValue("shdw1") |
|---|
| 72 | SHDW_1("shdw1"), |
|---|
| 73 | |
|---|
| 74 | /** |
|---|
| 75 | * Top Right Drop Shadow |
|---|
| 76 | * |
|---|
| 77 | */ |
|---|
| 78 | @XmlEnumValue("shdw2") |
|---|
| 79 | SHDW_2("shdw2"), |
|---|
| 80 | |
|---|
| 81 | /** |
|---|
| 82 | * Back Left Perspective Shadow |
|---|
| 83 | * |
|---|
| 84 | */ |
|---|
| 85 | @XmlEnumValue("shdw3") |
|---|
| 86 | SHDW_3("shdw3"), |
|---|
| 87 | |
|---|
| 88 | /** |
|---|
| 89 | * Back Right Perspective Shadow |
|---|
| 90 | * |
|---|
| 91 | */ |
|---|
| 92 | @XmlEnumValue("shdw4") |
|---|
| 93 | SHDW_4("shdw4"), |
|---|
| 94 | |
|---|
| 95 | /** |
|---|
| 96 | * Bottom Left Drop Shadow |
|---|
| 97 | * |
|---|
| 98 | */ |
|---|
| 99 | @XmlEnumValue("shdw5") |
|---|
| 100 | SHDW_5("shdw5"), |
|---|
| 101 | |
|---|
| 102 | /** |
|---|
| 103 | * Bottom Right Drop Shadow |
|---|
| 104 | * |
|---|
| 105 | */ |
|---|
| 106 | @XmlEnumValue("shdw6") |
|---|
| 107 | SHDW_6("shdw6"), |
|---|
| 108 | |
|---|
| 109 | /** |
|---|
| 110 | * Front Left Perspective Shadow |
|---|
| 111 | * |
|---|
| 112 | */ |
|---|
| 113 | @XmlEnumValue("shdw7") |
|---|
| 114 | SHDW_7("shdw7"), |
|---|
| 115 | |
|---|
| 116 | /** |
|---|
| 117 | * Front Right Perspective Shadow |
|---|
| 118 | * |
|---|
| 119 | */ |
|---|
| 120 | @XmlEnumValue("shdw8") |
|---|
| 121 | SHDW_8("shdw8"), |
|---|
| 122 | |
|---|
| 123 | /** |
|---|
| 124 | * Top Left Small Drop Shadow |
|---|
| 125 | * |
|---|
| 126 | */ |
|---|
| 127 | @XmlEnumValue("shdw9") |
|---|
| 128 | SHDW_9("shdw9"), |
|---|
| 129 | |
|---|
| 130 | /** |
|---|
| 131 | * Top Left Large Drop Shadow |
|---|
| 132 | * |
|---|
| 133 | */ |
|---|
| 134 | @XmlEnumValue("shdw10") |
|---|
| 135 | SHDW_10("shdw10"), |
|---|
| 136 | |
|---|
| 137 | /** |
|---|
| 138 | * Back Left Long Perspective Shadow |
|---|
| 139 | * |
|---|
| 140 | */ |
|---|
| 141 | @XmlEnumValue("shdw11") |
|---|
| 142 | SHDW_11("shdw11"), |
|---|
| 143 | |
|---|
| 144 | /** |
|---|
| 145 | * Back Right Long Perspective Shadow |
|---|
| 146 | * |
|---|
| 147 | */ |
|---|
| 148 | @XmlEnumValue("shdw12") |
|---|
| 149 | SHDW_12("shdw12"), |
|---|
| 150 | |
|---|
| 151 | /** |
|---|
| 152 | * Top Left Double Drop Shadow |
|---|
| 153 | * |
|---|
| 154 | */ |
|---|
| 155 | @XmlEnumValue("shdw13") |
|---|
| 156 | SHDW_13("shdw13"), |
|---|
| 157 | |
|---|
| 158 | /** |
|---|
| 159 | * Bottom Right Small Drop Shadow |
|---|
| 160 | * |
|---|
| 161 | */ |
|---|
| 162 | @XmlEnumValue("shdw14") |
|---|
| 163 | SHDW_14("shdw14"), |
|---|
| 164 | |
|---|
| 165 | /** |
|---|
| 166 | * Front Left Long Perspective Shadow |
|---|
| 167 | * |
|---|
| 168 | */ |
|---|
| 169 | @XmlEnumValue("shdw15") |
|---|
| 170 | SHDW_15("shdw15"), |
|---|
| 171 | |
|---|
| 172 | /** |
|---|
| 173 | * Front Right LongPerspective Shadow |
|---|
| 174 | * |
|---|
| 175 | */ |
|---|
| 176 | @XmlEnumValue("shdw16") |
|---|
| 177 | SHDW_16("shdw16"), |
|---|
| 178 | |
|---|
| 179 | /** |
|---|
| 180 | * 3D Outer Box Shadow |
|---|
| 181 | * |
|---|
| 182 | */ |
|---|
| 183 | @XmlEnumValue("shdw17") |
|---|
| 184 | SHDW_17("shdw17"), |
|---|
| 185 | |
|---|
| 186 | /** |
|---|
| 187 | * 3D Inner Box Shadow |
|---|
| 188 | * |
|---|
| 189 | */ |
|---|
| 190 | @XmlEnumValue("shdw18") |
|---|
| 191 | SHDW_18("shdw18"), |
|---|
| 192 | |
|---|
| 193 | /** |
|---|
| 194 | * Back Center Perspective Shadow |
|---|
| 195 | * |
|---|
| 196 | */ |
|---|
| 197 | @XmlEnumValue("shdw19") |
|---|
| 198 | SHDW_19("shdw19"), |
|---|
| 199 | |
|---|
| 200 | /** |
|---|
| 201 | * Front Bottom Shadow |
|---|
| 202 | * |
|---|
| 203 | */ |
|---|
| 204 | @XmlEnumValue("shdw20") |
|---|
| 205 | SHDW_20("shdw20"); |
|---|
| 206 | private final String value; |
|---|
| 207 | |
|---|
| 208 | STPresetShadowVal(String v) { |
|---|
| 209 | value = v; |
|---|
| 210 | } |
|---|
| 211 | |
|---|
| 212 | public String value() { |
|---|
| 213 | return value; |
|---|
| 214 | } |
|---|
| 215 | |
|---|
| 216 | public static STPresetShadowVal fromValue(String v) { |
|---|
| 217 | for (STPresetShadowVal c: STPresetShadowVal.values()) { |
|---|
| 218 | if (c.value.equals(v)) { |
|---|
| 219 | return c; |
|---|
| 220 | } |
|---|
| 221 | } |
|---|
| 222 | throw new IllegalArgumentException(v); |
|---|
| 223 | } |
|---|
| 224 | |
|---|
| 225 | } |
|---|