| 1 | // |
|---|
| 2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1.5-b01-fcs |
|---|
| 3 | // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> |
|---|
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. |
|---|
| 5 | // Generated on: 2007.12.19 at 02:20:48 PM GMT+10:00 |
|---|
| 6 | // |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | package org.docx4j.jaxb.document; |
|---|
| 10 | |
|---|
| 11 | import javax.annotation.Generated; |
|---|
| 12 | import javax.xml.bind.annotation.XmlEnum; |
|---|
| 13 | import javax.xml.bind.annotation.XmlEnumValue; |
|---|
| 14 | import javax.xml.bind.annotation.XmlType; |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | /** |
|---|
| 18 | * <p>Java class for ST_NumberFormat. |
|---|
| 19 | * |
|---|
| 20 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 21 | * <p> |
|---|
| 22 | * <pre> |
|---|
| 23 | * <simpleType name="ST_NumberFormat"> |
|---|
| 24 | * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> |
|---|
| 25 | * <enumeration value="decimal"/> |
|---|
| 26 | * <enumeration value="upperRoman"/> |
|---|
| 27 | * <enumeration value="lowerRoman"/> |
|---|
| 28 | * <enumeration value="upperLetter"/> |
|---|
| 29 | * <enumeration value="lowerLetter"/> |
|---|
| 30 | * <enumeration value="ordinal"/> |
|---|
| 31 | * <enumeration value="cardinalText"/> |
|---|
| 32 | * <enumeration value="ordinalText"/> |
|---|
| 33 | * <enumeration value="chicago"/> |
|---|
| 34 | * <enumeration value="decimalEnclosedCircle"/> |
|---|
| 35 | * <enumeration value="bullet"/> |
|---|
| 36 | * <enumeration value="decimalEnclosedFullstop"/> |
|---|
| 37 | * <enumeration value="decimalEnclosedParen"/> |
|---|
| 38 | * <enumeration value="decimalEnclosedCircleChinese"/> |
|---|
| 39 | * <enumeration value="none"/> |
|---|
| 40 | * </restriction> |
|---|
| 41 | * </simpleType> |
|---|
| 42 | * </pre> |
|---|
| 43 | * |
|---|
| 44 | */ |
|---|
| 45 | @XmlType(name = "ST_NumberFormat") |
|---|
| 46 | @XmlEnum |
|---|
| 47 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-19T02:20:48+10:00", comments = "JAXB RI v2.1.5-b01-fcs") |
|---|
| 48 | public enum STNumberFormat { |
|---|
| 49 | |
|---|
| 50 | |
|---|
| 51 | /** |
|---|
| 52 | * Decimal Numbers |
|---|
| 53 | * |
|---|
| 54 | */ |
|---|
| 55 | @XmlEnumValue("decimal") |
|---|
| 56 | DECIMAL("decimal"), |
|---|
| 57 | |
|---|
| 58 | /** |
|---|
| 59 | * Uppercase Roman |
|---|
| 60 | * Numerals |
|---|
| 61 | * |
|---|
| 62 | */ |
|---|
| 63 | @XmlEnumValue("upperRoman") |
|---|
| 64 | UPPER_ROMAN("upperRoman"), |
|---|
| 65 | |
|---|
| 66 | /** |
|---|
| 67 | * Lowercase Roman |
|---|
| 68 | * Numerals |
|---|
| 69 | * |
|---|
| 70 | */ |
|---|
| 71 | @XmlEnumValue("lowerRoman") |
|---|
| 72 | LOWER_ROMAN("lowerRoman"), |
|---|
| 73 | |
|---|
| 74 | /** |
|---|
| 75 | * Uppercase Latin |
|---|
| 76 | * Alphabet |
|---|
| 77 | * |
|---|
| 78 | */ |
|---|
| 79 | @XmlEnumValue("upperLetter") |
|---|
| 80 | UPPER_LETTER("upperLetter"), |
|---|
| 81 | |
|---|
| 82 | /** |
|---|
| 83 | * Lowercase Latin |
|---|
| 84 | * Alphabet |
|---|
| 85 | * |
|---|
| 86 | */ |
|---|
| 87 | @XmlEnumValue("lowerLetter") |
|---|
| 88 | LOWER_LETTER("lowerLetter"), |
|---|
| 89 | |
|---|
| 90 | /** |
|---|
| 91 | * Ordinal |
|---|
| 92 | * |
|---|
| 93 | */ |
|---|
| 94 | @XmlEnumValue("ordinal") |
|---|
| 95 | ORDINAL("ordinal"), |
|---|
| 96 | |
|---|
| 97 | /** |
|---|
| 98 | * Cardinal Text |
|---|
| 99 | * |
|---|
| 100 | */ |
|---|
| 101 | @XmlEnumValue("cardinalText") |
|---|
| 102 | CARDINAL_TEXT("cardinalText"), |
|---|
| 103 | |
|---|
| 104 | /** |
|---|
| 105 | * Ordinal Text |
|---|
| 106 | * |
|---|
| 107 | */ |
|---|
| 108 | @XmlEnumValue("ordinalText") |
|---|
| 109 | ORDINAL_TEXT("ordinalText"), |
|---|
| 110 | |
|---|
| 111 | /** |
|---|
| 112 | * Chicago Manual of Style |
|---|
| 113 | * |
|---|
| 114 | */ |
|---|
| 115 | @XmlEnumValue("chicago") |
|---|
| 116 | CHICAGO("chicago"), |
|---|
| 117 | |
|---|
| 118 | /** |
|---|
| 119 | * Decimal Numbers Enclosed in a |
|---|
| 120 | * Circle |
|---|
| 121 | * |
|---|
| 122 | */ |
|---|
| 123 | @XmlEnumValue("decimalEnclosedCircle") |
|---|
| 124 | DECIMAL_ENCLOSED_CIRCLE("decimalEnclosedCircle"), |
|---|
| 125 | |
|---|
| 126 | /** |
|---|
| 127 | * Bullet |
|---|
| 128 | * |
|---|
| 129 | */ |
|---|
| 130 | @XmlEnumValue("bullet") |
|---|
| 131 | BULLET("bullet"), |
|---|
| 132 | |
|---|
| 133 | /** |
|---|
| 134 | * Decimal Numbers Followed by a |
|---|
| 135 | * Period |
|---|
| 136 | * |
|---|
| 137 | */ |
|---|
| 138 | @XmlEnumValue("decimalEnclosedFullstop") |
|---|
| 139 | DECIMAL_ENCLOSED_FULLSTOP("decimalEnclosedFullstop"), |
|---|
| 140 | |
|---|
| 141 | /** |
|---|
| 142 | * Decimal Numbers Enclosed in |
|---|
| 143 | * Parenthesis |
|---|
| 144 | * |
|---|
| 145 | */ |
|---|
| 146 | @XmlEnumValue("decimalEnclosedParen") |
|---|
| 147 | DECIMAL_ENCLOSED_PAREN("decimalEnclosedParen"), |
|---|
| 148 | |
|---|
| 149 | /** |
|---|
| 150 | * Decimal Numbers Enclosed in a |
|---|
| 151 | * Circle |
|---|
| 152 | * |
|---|
| 153 | */ |
|---|
| 154 | @XmlEnumValue("decimalEnclosedCircleChinese") |
|---|
| 155 | DECIMAL_ENCLOSED_CIRCLE_CHINESE("decimalEnclosedCircleChinese"), |
|---|
| 156 | |
|---|
| 157 | /** |
|---|
| 158 | * No Numbering |
|---|
| 159 | * |
|---|
| 160 | */ |
|---|
| 161 | @XmlEnumValue("none") |
|---|
| 162 | NONE("none"); |
|---|
| 163 | private final String value; |
|---|
| 164 | |
|---|
| 165 | STNumberFormat(String v) { |
|---|
| 166 | value = v; |
|---|
| 167 | } |
|---|
| 168 | |
|---|
| 169 | public String value() { |
|---|
| 170 | return value; |
|---|
| 171 | } |
|---|
| 172 | |
|---|
| 173 | public static STNumberFormat fromValue(String v) { |
|---|
| 174 | for (STNumberFormat c: STNumberFormat.values()) { |
|---|
| 175 | if (c.value.equals(v)) { |
|---|
| 176 | return c; |
|---|
| 177 | } |
|---|
| 178 | } |
|---|
| 179 | throw new IllegalArgumentException(v); |
|---|
| 180 | } |
|---|
| 181 | |
|---|
| 182 | } |
|---|