| 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_PresetMaterialType. |
|---|
| 31 | * |
|---|
| 32 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 33 | * <p> |
|---|
| 34 | * <pre> |
|---|
| 35 | * <simpleType name="ST_PresetMaterialType"> |
|---|
| 36 | * <restriction base="{http://www.w3.org/2001/XMLSchema}token"> |
|---|
| 37 | * <enumeration value="legacyMatte"/> |
|---|
| 38 | * <enumeration value="legacyPlastic"/> |
|---|
| 39 | * <enumeration value="legacyMetal"/> |
|---|
| 40 | * <enumeration value="legacyWireframe"/> |
|---|
| 41 | * <enumeration value="matte"/> |
|---|
| 42 | * <enumeration value="plastic"/> |
|---|
| 43 | * <enumeration value="metal"/> |
|---|
| 44 | * <enumeration value="warmMatte"/> |
|---|
| 45 | * <enumeration value="translucentPowder"/> |
|---|
| 46 | * <enumeration value="powder"/> |
|---|
| 47 | * <enumeration value="dkEdge"/> |
|---|
| 48 | * <enumeration value="softEdge"/> |
|---|
| 49 | * <enumeration value="clear"/> |
|---|
| 50 | * <enumeration value="flat"/> |
|---|
| 51 | * <enumeration value="softmetal"/> |
|---|
| 52 | * </restriction> |
|---|
| 53 | * </simpleType> |
|---|
| 54 | * </pre> |
|---|
| 55 | * |
|---|
| 56 | */ |
|---|
| 57 | @XmlType(name = "ST_PresetMaterialType") |
|---|
| 58 | @XmlEnum |
|---|
| 59 | public enum STPresetMaterialType { |
|---|
| 60 | |
|---|
| 61 | |
|---|
| 62 | /** |
|---|
| 63 | * Legacy Matte |
|---|
| 64 | * |
|---|
| 65 | */ |
|---|
| 66 | @XmlEnumValue("legacyMatte") |
|---|
| 67 | LEGACY_MATTE("legacyMatte"), |
|---|
| 68 | |
|---|
| 69 | /** |
|---|
| 70 | * Legacy Plastic |
|---|
| 71 | * |
|---|
| 72 | */ |
|---|
| 73 | @XmlEnumValue("legacyPlastic") |
|---|
| 74 | LEGACY_PLASTIC("legacyPlastic"), |
|---|
| 75 | |
|---|
| 76 | /** |
|---|
| 77 | * Legacy Metal |
|---|
| 78 | * |
|---|
| 79 | */ |
|---|
| 80 | @XmlEnumValue("legacyMetal") |
|---|
| 81 | LEGACY_METAL("legacyMetal"), |
|---|
| 82 | |
|---|
| 83 | /** |
|---|
| 84 | * Legacy Wireframe |
|---|
| 85 | * |
|---|
| 86 | */ |
|---|
| 87 | @XmlEnumValue("legacyWireframe") |
|---|
| 88 | LEGACY_WIREFRAME("legacyWireframe"), |
|---|
| 89 | |
|---|
| 90 | /** |
|---|
| 91 | * Matte |
|---|
| 92 | * |
|---|
| 93 | */ |
|---|
| 94 | @XmlEnumValue("matte") |
|---|
| 95 | MATTE("matte"), |
|---|
| 96 | |
|---|
| 97 | /** |
|---|
| 98 | * Plastic |
|---|
| 99 | * |
|---|
| 100 | */ |
|---|
| 101 | @XmlEnumValue("plastic") |
|---|
| 102 | PLASTIC("plastic"), |
|---|
| 103 | |
|---|
| 104 | /** |
|---|
| 105 | * Metal |
|---|
| 106 | * |
|---|
| 107 | */ |
|---|
| 108 | @XmlEnumValue("metal") |
|---|
| 109 | METAL("metal"), |
|---|
| 110 | |
|---|
| 111 | /** |
|---|
| 112 | * Warm Matte |
|---|
| 113 | * |
|---|
| 114 | */ |
|---|
| 115 | @XmlEnumValue("warmMatte") |
|---|
| 116 | WARM_MATTE("warmMatte"), |
|---|
| 117 | |
|---|
| 118 | /** |
|---|
| 119 | * Translucent Powder |
|---|
| 120 | * |
|---|
| 121 | */ |
|---|
| 122 | @XmlEnumValue("translucentPowder") |
|---|
| 123 | TRANSLUCENT_POWDER("translucentPowder"), |
|---|
| 124 | |
|---|
| 125 | /** |
|---|
| 126 | * Powder |
|---|
| 127 | * |
|---|
| 128 | */ |
|---|
| 129 | @XmlEnumValue("powder") |
|---|
| 130 | POWDER("powder"), |
|---|
| 131 | |
|---|
| 132 | /** |
|---|
| 133 | * Dark Edge |
|---|
| 134 | * |
|---|
| 135 | */ |
|---|
| 136 | @XmlEnumValue("dkEdge") |
|---|
| 137 | DK_EDGE("dkEdge"), |
|---|
| 138 | |
|---|
| 139 | /** |
|---|
| 140 | * Soft Edge |
|---|
| 141 | * |
|---|
| 142 | */ |
|---|
| 143 | @XmlEnumValue("softEdge") |
|---|
| 144 | SOFT_EDGE("softEdge"), |
|---|
| 145 | |
|---|
| 146 | /** |
|---|
| 147 | * Clear |
|---|
| 148 | * |
|---|
| 149 | */ |
|---|
| 150 | @XmlEnumValue("clear") |
|---|
| 151 | CLEAR("clear"), |
|---|
| 152 | |
|---|
| 153 | /** |
|---|
| 154 | * Flat |
|---|
| 155 | * |
|---|
| 156 | */ |
|---|
| 157 | @XmlEnumValue("flat") |
|---|
| 158 | FLAT("flat"), |
|---|
| 159 | |
|---|
| 160 | /** |
|---|
| 161 | * Soft Metal |
|---|
| 162 | * |
|---|
| 163 | */ |
|---|
| 164 | @XmlEnumValue("softmetal") |
|---|
| 165 | SOFTMETAL("softmetal"); |
|---|
| 166 | private final String value; |
|---|
| 167 | |
|---|
| 168 | STPresetMaterialType(String v) { |
|---|
| 169 | value = v; |
|---|
| 170 | } |
|---|
| 171 | |
|---|
| 172 | public String value() { |
|---|
| 173 | return value; |
|---|
| 174 | } |
|---|
| 175 | |
|---|
| 176 | public static STPresetMaterialType fromValue(String v) { |
|---|
| 177 | for (STPresetMaterialType c: STPresetMaterialType.values()) { |
|---|
| 178 | if (c.value.equals(v)) { |
|---|
| 179 | return c; |
|---|
| 180 | } |
|---|
| 181 | } |
|---|
| 182 | throw new IllegalArgumentException(v); |
|---|
| 183 | } |
|---|
| 184 | |
|---|
| 185 | } |
|---|