| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||||||
| ElementTypeEnumeration |
|
| 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 elementTypeEnumeration. |
|
| 18 | * |
|
| 19 | * <p>The following schema fragment specifies the expected content contained within this class. |
|
| 20 | * <p> |
|
| 21 | * <pre> |
|
| 22 | * <simpleType name="elementTypeEnumeration"> |
|
| 23 | * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> |
|
| 24 | * <enumeration value="boolean"/> |
|
| 25 | * <enumeration value="int"/> |
|
| 26 | * <enumeration value="float"/> |
|
| 27 | * <enumeration value="location"/> |
|
| 28 | * <enumeration value="url"/> |
|
| 29 | * <enumeration value="date"/> |
|
| 30 | * <enumeration value="dateTime"/> |
|
| 31 | * <enumeration value="dateTimeRange"/> |
|
| 32 | * <enumeration value="intUnit"/> |
|
| 33 | * <enumeration value="floatUnit"/> |
|
| 34 | * </restriction> |
|
| 35 | * </simpleType> |
|
| 36 | * </pre> |
|
| 37 | * |
|
| 38 | */ |
|
| 39 | 0 | @XmlType(name = "elementTypeEnumeration") |
| 40 | @XmlEnum |
|
| 41 | public enum ElementTypeEnumeration { |
|
| 42 | ||
| 43 | 0 | @XmlEnumValue("boolean") |
| 44 | BOOLEAN("boolean"), |
|
| 45 | 0 | @XmlEnumValue("int") |
| 46 | INT("int"), |
|
| 47 | 0 | @XmlEnumValue("float") |
| 48 | FLOAT("float"), |
|
| 49 | 0 | @XmlEnumValue("location") |
| 50 | LOCATION("location"), |
|
| 51 | 0 | @XmlEnumValue("url") |
| 52 | URL("url"), |
|
| 53 | 0 | @XmlEnumValue("date") |
| 54 | DATE("date"), |
|
| 55 | 0 | @XmlEnumValue("dateTime") |
| 56 | DATE_TIME("dateTime"), |
|
| 57 | 0 | @XmlEnumValue("dateTimeRange") |
| 58 | DATE_TIME_RANGE("dateTimeRange"), |
|
| 59 | 0 | @XmlEnumValue("intUnit") |
| 60 | INT_UNIT("intUnit"), |
|
| 61 | 0 | @XmlEnumValue("floatUnit") |
| 62 | FLOAT_UNIT("floatUnit"); |
|
| 63 | private final String value; |
|
| 64 | ||
| 65 | 0 | ElementTypeEnumeration(String v) { |
| 66 | 0 | value = v; |
| 67 | 0 | } |
| 68 | ||
| 69 | public String value() { |
|
| 70 | 0 | return value; |
| 71 | } |
|
| 72 | ||
| 73 | public static ElementTypeEnumeration fromValue(String v) { |
|
| 74 | 0 | for (ElementTypeEnumeration c: ElementTypeEnumeration.values()) { |
| 75 | 0 | if (c.value.equals(v)) { |
| 76 | 0 | return c; |
| 77 | } |
|
| 78 | } |
|
| 79 | 0 | throw new IllegalArgumentException(v); |
| 80 | } |
|
| 81 | ||
| 82 | } |