| 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_PageOrientation. |
|---|
| 19 | * |
|---|
| 20 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 21 | * <p> |
|---|
| 22 | * <pre> |
|---|
| 23 | * <simpleType name="ST_PageOrientation"> |
|---|
| 24 | * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> |
|---|
| 25 | * <enumeration value="portrait"/> |
|---|
| 26 | * <enumeration value="landscape"/> |
|---|
| 27 | * </restriction> |
|---|
| 28 | * </simpleType> |
|---|
| 29 | * </pre> |
|---|
| 30 | * |
|---|
| 31 | */ |
|---|
| 32 | @XmlType(name = "ST_PageOrientation") |
|---|
| 33 | @XmlEnum |
|---|
| 34 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2007-12-19T02:20:48+10:00", comments = "JAXB RI v2.1.5-b01-fcs") |
|---|
| 35 | public enum STPageOrientation { |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | /** |
|---|
| 39 | * Portrait Mode |
|---|
| 40 | * |
|---|
| 41 | */ |
|---|
| 42 | @XmlEnumValue("portrait") |
|---|
| 43 | PORTRAIT("portrait"), |
|---|
| 44 | |
|---|
| 45 | /** |
|---|
| 46 | * Landscape Mode |
|---|
| 47 | * |
|---|
| 48 | */ |
|---|
| 49 | @XmlEnumValue("landscape") |
|---|
| 50 | LANDSCAPE("landscape"); |
|---|
| 51 | private final String value; |
|---|
| 52 | |
|---|
| 53 | STPageOrientation(String v) { |
|---|
| 54 | value = v; |
|---|
| 55 | } |
|---|
| 56 | |
|---|
| 57 | public String value() { |
|---|
| 58 | return value; |
|---|
| 59 | } |
|---|
| 60 | |
|---|
| 61 | public static STPageOrientation fromValue(String v) { |
|---|
| 62 | for (STPageOrientation c: STPageOrientation.values()) { |
|---|
| 63 | if (c.value.equals(v)) { |
|---|
| 64 | return c; |
|---|
| 65 | } |
|---|
| 66 | } |
|---|
| 67 | throw new IllegalArgumentException(v); |
|---|
| 68 | } |
|---|
| 69 | |
|---|
| 70 | } |
|---|