| 1 | // |
| 2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 |
| 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: 2010.06.29 at 05:55:18 PM CEST |
| 6 | // |
| 7 | |
| 8 | |
| 9 | package org.jomc.standalone.model; |
| 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 TransactionAttributeType. |
| 19 | * |
| 20 | * <p>The following schema fragment specifies the expected content contained within this class. |
| 21 | * <p> |
| 22 | * <pre> |
| 23 | * <simpleType name="TransactionAttributeType"> |
| 24 | * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> |
| 25 | * <enumeration value="NotSupported"/> |
| 26 | * <enumeration value="Supports"/> |
| 27 | * <enumeration value="Required"/> |
| 28 | * <enumeration value="RequiresNew"/> |
| 29 | * <enumeration value="Mandatory"/> |
| 30 | * <enumeration value="Never"/> |
| 31 | * </restriction> |
| 32 | * </simpleType> |
| 33 | * </pre> |
| 34 | * |
| 35 | */ |
| 36 | @XmlType(name = "TransactionAttributeType") |
| 37 | @XmlEnum |
| 38 | @Generated(value = "com.sun.tools.xjc.Driver", date = "2010-06-29T05:55:18+02:00", comments = "JAXB RI vhudson-jaxb-ri-2.1-833") |
| 39 | public enum TransactionAttributeType { |
| 40 | |
| 41 | @XmlEnumValue("NotSupported") |
| 42 | NOT_SUPPORTED("NotSupported"), |
| 43 | @XmlEnumValue("Supports") |
| 44 | SUPPORTS("Supports"), |
| 45 | @XmlEnumValue("Required") |
| 46 | REQUIRED("Required"), |
| 47 | @XmlEnumValue("RequiresNew") |
| 48 | REQUIRES_NEW("RequiresNew"), |
| 49 | @XmlEnumValue("Mandatory") |
| 50 | MANDATORY("Mandatory"), |
| 51 | @XmlEnumValue("Never") |
| 52 | NEVER("Never"); |
| 53 | private final String value; |
| 54 | |
| 55 | TransactionAttributeType(String v) { |
| 56 | value = v; |
| 57 | } |
| 58 | |
| 59 | public String value() { |
| 60 | return value; |
| 61 | } |
| 62 | |
| 63 | public static TransactionAttributeType fromValue(String v) { |
| 64 | for (TransactionAttributeType c: TransactionAttributeType.values()) { |
| 65 | if (c.value.equals(v)) { |
| 66 | return c; |
| 67 | } |
| 68 | } |
| 69 | throw new IllegalArgumentException(v); |
| 70 | } |
| 71 | |
| 72 | } |