| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||||||
| PaymentMethodEnumeration |
|
| 0.0;0 |
| 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: 2008.06.11 at 12:15:45 AM EDT |
|
| 6 | // |
|
| 7 | ||
| 8 | ||
| 9 | package yarfraw.generated.googlebase.elements; |
|
| 10 | ||
| 11 | import javax.xml.bind.annotation.XmlEnum; |
|
| 12 | import javax.xml.bind.annotation.XmlEnumValue; |
|
| 13 | import javax.xml.bind.annotation.XmlType; |
|
| 14 | ||
| 15 | ||
| 16 | /** |
|
| 17 | * <p>Java class for paymentMethodEnumeration. |
|
| 18 | * |
|
| 19 | * <p>The following schema fragment specifies the expected content contained within this class. |
|
| 20 | * <p> |
|
| 21 | * <pre> |
|
| 22 | * <simpleType name="paymentMethodEnumeration"> |
|
| 23 | * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> |
|
| 24 | * <enumeration value="Cash"/> |
|
| 25 | * <enumeration value="Check"/> |
|
| 26 | * <enumeration value="Visa"/> |
|
| 27 | * <enumeration value="MasterCard"/> |
|
| 28 | * <enumeration value="Discover"/> |
|
| 29 | * <enumeration value="AmericanExpress"/> |
|
| 30 | * <enumeration value="WireTransfer"/> |
|
| 31 | * <enumeration value="PayPal"/> |
|
| 32 | * </restriction> |
|
| 33 | * </simpleType> |
|
| 34 | * </pre> |
|
| 35 | * |
|
| 36 | */ |
|
| 37 | 12 | @XmlType(name = "paymentMethodEnumeration") |
| 38 | @XmlEnum |
|
| 39 | public enum PaymentMethodEnumeration { |
|
| 40 | ||
| 41 | 6 | @XmlEnumValue("Cash") |
| 42 | CASH("Cash"), |
|
| 43 | 6 | @XmlEnumValue("Check") |
| 44 | CHECK("Check"), |
|
| 45 | 6 | @XmlEnumValue("Visa") |
| 46 | VISA("Visa"), |
|
| 47 | 6 | @XmlEnumValue("MasterCard") |
| 48 | MASTER_CARD("MasterCard"), |
|
| 49 | 6 | @XmlEnumValue("Discover") |
| 50 | DISCOVER("Discover"), |
|
| 51 | 6 | @XmlEnumValue("AmericanExpress") |
| 52 | AMERICAN_EXPRESS("AmericanExpress"), |
|
| 53 | 6 | @XmlEnumValue("WireTransfer") |
| 54 | WIRE_TRANSFER("WireTransfer"), |
|
| 55 | 6 | @XmlEnumValue("PayPal") |
| 56 | PAY_PAL("PayPal"); |
|
| 57 | private final String value; |
|
| 58 | ||
| 59 | 48 | PaymentMethodEnumeration(String v) { |
| 60 | 48 | value = v; |
| 61 | 48 | } |
| 62 | ||
| 63 | public String value() { |
|
| 64 | 0 | return value; |
| 65 | } |
|
| 66 | ||
| 67 | public static PaymentMethodEnumeration fromValue(String v) { |
|
| 68 | 0 | for (PaymentMethodEnumeration c: PaymentMethodEnumeration.values()) { |
| 69 | 0 | if (c.value.equals(v)) { |
| 70 | 0 | return c; |
| 71 | } |
|
| 72 | } |
|
| 73 | 0 | throw new IllegalArgumentException(v); |
| 74 | } |
|
| 75 | ||
| 76 | } |