| 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_BevelPresetType. |
|---|
| 31 | * |
|---|
| 32 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 33 | * <p> |
|---|
| 34 | * <pre> |
|---|
| 35 | * <simpleType name="ST_BevelPresetType"> |
|---|
| 36 | * <restriction base="{http://www.w3.org/2001/XMLSchema}token"> |
|---|
| 37 | * <enumeration value="relaxedInset"/> |
|---|
| 38 | * <enumeration value="circle"/> |
|---|
| 39 | * <enumeration value="slope"/> |
|---|
| 40 | * <enumeration value="cross"/> |
|---|
| 41 | * <enumeration value="angle"/> |
|---|
| 42 | * <enumeration value="softRound"/> |
|---|
| 43 | * <enumeration value="convex"/> |
|---|
| 44 | * <enumeration value="coolSlant"/> |
|---|
| 45 | * <enumeration value="divot"/> |
|---|
| 46 | * <enumeration value="riblet"/> |
|---|
| 47 | * <enumeration value="hardEdge"/> |
|---|
| 48 | * <enumeration value="artDeco"/> |
|---|
| 49 | * </restriction> |
|---|
| 50 | * </simpleType> |
|---|
| 51 | * </pre> |
|---|
| 52 | * |
|---|
| 53 | */ |
|---|
| 54 | @XmlType(name = "ST_BevelPresetType") |
|---|
| 55 | @XmlEnum |
|---|
| 56 | public enum STBevelPresetType { |
|---|
| 57 | |
|---|
| 58 | |
|---|
| 59 | /** |
|---|
| 60 | * Relaxed Inset |
|---|
| 61 | * |
|---|
| 62 | */ |
|---|
| 63 | @XmlEnumValue("relaxedInset") |
|---|
| 64 | RELAXED_INSET("relaxedInset"), |
|---|
| 65 | |
|---|
| 66 | /** |
|---|
| 67 | * Circle |
|---|
| 68 | * |
|---|
| 69 | */ |
|---|
| 70 | @XmlEnumValue("circle") |
|---|
| 71 | CIRCLE("circle"), |
|---|
| 72 | |
|---|
| 73 | /** |
|---|
| 74 | * Slope |
|---|
| 75 | * |
|---|
| 76 | */ |
|---|
| 77 | @XmlEnumValue("slope") |
|---|
| 78 | SLOPE("slope"), |
|---|
| 79 | |
|---|
| 80 | /** |
|---|
| 81 | * Cross |
|---|
| 82 | * |
|---|
| 83 | */ |
|---|
| 84 | @XmlEnumValue("cross") |
|---|
| 85 | CROSS("cross"), |
|---|
| 86 | |
|---|
| 87 | /** |
|---|
| 88 | * Angle |
|---|
| 89 | * |
|---|
| 90 | */ |
|---|
| 91 | @XmlEnumValue("angle") |
|---|
| 92 | ANGLE("angle"), |
|---|
| 93 | |
|---|
| 94 | /** |
|---|
| 95 | * Soft Round |
|---|
| 96 | * |
|---|
| 97 | */ |
|---|
| 98 | @XmlEnumValue("softRound") |
|---|
| 99 | SOFT_ROUND("softRound"), |
|---|
| 100 | |
|---|
| 101 | /** |
|---|
| 102 | * Convex |
|---|
| 103 | * |
|---|
| 104 | */ |
|---|
| 105 | @XmlEnumValue("convex") |
|---|
| 106 | CONVEX("convex"), |
|---|
| 107 | |
|---|
| 108 | /** |
|---|
| 109 | * Cool Slant |
|---|
| 110 | * |
|---|
| 111 | */ |
|---|
| 112 | @XmlEnumValue("coolSlant") |
|---|
| 113 | COOL_SLANT("coolSlant"), |
|---|
| 114 | |
|---|
| 115 | /** |
|---|
| 116 | * Divot |
|---|
| 117 | * |
|---|
| 118 | */ |
|---|
| 119 | @XmlEnumValue("divot") |
|---|
| 120 | DIVOT("divot"), |
|---|
| 121 | |
|---|
| 122 | /** |
|---|
| 123 | * Riblet |
|---|
| 124 | * |
|---|
| 125 | */ |
|---|
| 126 | @XmlEnumValue("riblet") |
|---|
| 127 | RIBLET("riblet"), |
|---|
| 128 | |
|---|
| 129 | /** |
|---|
| 130 | * Hard Edge |
|---|
| 131 | * |
|---|
| 132 | */ |
|---|
| 133 | @XmlEnumValue("hardEdge") |
|---|
| 134 | HARD_EDGE("hardEdge"), |
|---|
| 135 | |
|---|
| 136 | /** |
|---|
| 137 | * Art Deco |
|---|
| 138 | * |
|---|
| 139 | */ |
|---|
| 140 | @XmlEnumValue("artDeco") |
|---|
| 141 | ART_DECO("artDeco"); |
|---|
| 142 | private final String value; |
|---|
| 143 | |
|---|
| 144 | STBevelPresetType(String v) { |
|---|
| 145 | value = v; |
|---|
| 146 | } |
|---|
| 147 | |
|---|
| 148 | public String value() { |
|---|
| 149 | return value; |
|---|
| 150 | } |
|---|
| 151 | |
|---|
| 152 | public static STBevelPresetType fromValue(String v) { |
|---|
| 153 | for (STBevelPresetType c: STBevelPresetType.values()) { |
|---|
| 154 | if (c.value.equals(v)) { |
|---|
| 155 | return c; |
|---|
| 156 | } |
|---|
| 157 | } |
|---|
| 158 | throw new IllegalArgumentException(v); |
|---|
| 159 | } |
|---|
| 160 | |
|---|
| 161 | } |
|---|