| 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_LightRigDirection. |
|---|
| 31 | * |
|---|
| 32 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 33 | * <p> |
|---|
| 34 | * <pre> |
|---|
| 35 | * <simpleType name="ST_LightRigDirection"> |
|---|
| 36 | * <restriction base="{http://www.w3.org/2001/XMLSchema}token"> |
|---|
| 37 | * <enumeration value="tl"/> |
|---|
| 38 | * <enumeration value="t"/> |
|---|
| 39 | * <enumeration value="tr"/> |
|---|
| 40 | * <enumeration value="l"/> |
|---|
| 41 | * <enumeration value="r"/> |
|---|
| 42 | * <enumeration value="bl"/> |
|---|
| 43 | * <enumeration value="b"/> |
|---|
| 44 | * <enumeration value="br"/> |
|---|
| 45 | * </restriction> |
|---|
| 46 | * </simpleType> |
|---|
| 47 | * </pre> |
|---|
| 48 | * |
|---|
| 49 | */ |
|---|
| 50 | @XmlType(name = "ST_LightRigDirection") |
|---|
| 51 | @XmlEnum |
|---|
| 52 | public enum STLightRigDirection { |
|---|
| 53 | |
|---|
| 54 | |
|---|
| 55 | /** |
|---|
| 56 | * Top Left |
|---|
| 57 | * |
|---|
| 58 | */ |
|---|
| 59 | @XmlEnumValue("tl") |
|---|
| 60 | TL("tl"), |
|---|
| 61 | |
|---|
| 62 | /** |
|---|
| 63 | * Top |
|---|
| 64 | * |
|---|
| 65 | */ |
|---|
| 66 | @XmlEnumValue("t") |
|---|
| 67 | T("t"), |
|---|
| 68 | |
|---|
| 69 | /** |
|---|
| 70 | * Top Right |
|---|
| 71 | * |
|---|
| 72 | */ |
|---|
| 73 | @XmlEnumValue("tr") |
|---|
| 74 | TR("tr"), |
|---|
| 75 | |
|---|
| 76 | /** |
|---|
| 77 | * Left |
|---|
| 78 | * |
|---|
| 79 | */ |
|---|
| 80 | @XmlEnumValue("l") |
|---|
| 81 | L("l"), |
|---|
| 82 | |
|---|
| 83 | /** |
|---|
| 84 | * Right |
|---|
| 85 | * |
|---|
| 86 | */ |
|---|
| 87 | @XmlEnumValue("r") |
|---|
| 88 | R("r"), |
|---|
| 89 | |
|---|
| 90 | /** |
|---|
| 91 | * Bottom Left |
|---|
| 92 | * |
|---|
| 93 | */ |
|---|
| 94 | @XmlEnumValue("bl") |
|---|
| 95 | BL("bl"), |
|---|
| 96 | |
|---|
| 97 | /** |
|---|
| 98 | * Bottom |
|---|
| 99 | * |
|---|
| 100 | */ |
|---|
| 101 | @XmlEnumValue("b") |
|---|
| 102 | B("b"), |
|---|
| 103 | |
|---|
| 104 | /** |
|---|
| 105 | * Bottom Right |
|---|
| 106 | * |
|---|
| 107 | */ |
|---|
| 108 | @XmlEnumValue("br") |
|---|
| 109 | BR("br"); |
|---|
| 110 | private final String value; |
|---|
| 111 | |
|---|
| 112 | STLightRigDirection(String v) { |
|---|
| 113 | value = v; |
|---|
| 114 | } |
|---|
| 115 | |
|---|
| 116 | public String value() { |
|---|
| 117 | return value; |
|---|
| 118 | } |
|---|
| 119 | |
|---|
| 120 | public static STLightRigDirection fromValue(String v) { |
|---|
| 121 | for (STLightRigDirection c: STLightRigDirection.values()) { |
|---|
| 122 | if (c.value.equals(v)) { |
|---|
| 123 | return c; |
|---|
| 124 | } |
|---|
| 125 | } |
|---|
| 126 | throw new IllegalArgumentException(v); |
|---|
| 127 | } |
|---|
| 128 | |
|---|
| 129 | } |
|---|