| 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.wml; |
|---|
| 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_FtnPos. |
|---|
| 31 | * |
|---|
| 32 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 33 | * <p> |
|---|
| 34 | * <pre> |
|---|
| 35 | * <simpleType name="ST_FtnPos"> |
|---|
| 36 | * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> |
|---|
| 37 | * <enumeration value="pageBottom"/> |
|---|
| 38 | * <enumeration value="beneathText"/> |
|---|
| 39 | * <enumeration value="sectEnd"/> |
|---|
| 40 | * <enumeration value="docEnd"/> |
|---|
| 41 | * </restriction> |
|---|
| 42 | * </simpleType> |
|---|
| 43 | * </pre> |
|---|
| 44 | * |
|---|
| 45 | */ |
|---|
| 46 | @XmlType(name = "ST_FtnPos") |
|---|
| 47 | @XmlEnum |
|---|
| 48 | public enum STFtnPos { |
|---|
| 49 | |
|---|
| 50 | |
|---|
| 51 | /** |
|---|
| 52 | * Footnotes Positioned at Page |
|---|
| 53 | * Bottom |
|---|
| 54 | * |
|---|
| 55 | */ |
|---|
| 56 | @XmlEnumValue("pageBottom") |
|---|
| 57 | PAGE_BOTTOM("pageBottom"), |
|---|
| 58 | |
|---|
| 59 | /** |
|---|
| 60 | * Footnotes Positioned Beneath |
|---|
| 61 | * Text |
|---|
| 62 | * |
|---|
| 63 | */ |
|---|
| 64 | @XmlEnumValue("beneathText") |
|---|
| 65 | BENEATH_TEXT("beneathText"), |
|---|
| 66 | |
|---|
| 67 | /** |
|---|
| 68 | * Footnotes Positioned At End of |
|---|
| 69 | * Section |
|---|
| 70 | * |
|---|
| 71 | */ |
|---|
| 72 | @XmlEnumValue("sectEnd") |
|---|
| 73 | SECT_END("sectEnd"), |
|---|
| 74 | |
|---|
| 75 | /** |
|---|
| 76 | * Footnotes Positioned At End of |
|---|
| 77 | * Document |
|---|
| 78 | * |
|---|
| 79 | */ |
|---|
| 80 | @XmlEnumValue("docEnd") |
|---|
| 81 | DOC_END("docEnd"); |
|---|
| 82 | private final String value; |
|---|
| 83 | |
|---|
| 84 | STFtnPos(String v) { |
|---|
| 85 | value = v; |
|---|
| 86 | } |
|---|
| 87 | |
|---|
| 88 | public String value() { |
|---|
| 89 | return value; |
|---|
| 90 | } |
|---|
| 91 | |
|---|
| 92 | public static STFtnPos fromValue(String v) { |
|---|
| 93 | for (STFtnPos c: STFtnPos.values()) { |
|---|
| 94 | if (c.value.equals(v)) { |
|---|
| 95 | return c; |
|---|
| 96 | } |
|---|
| 97 | } |
|---|
| 98 | throw new IllegalArgumentException(v); |
|---|
| 99 | } |
|---|
| 100 | |
|---|
| 101 | } |
|---|