| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||||||
| UpdatePeriodEnum |
|
| 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.rss10.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 UpdatePeriodEnum. |
|
| 18 | * |
|
| 19 | * <p>The following schema fragment specifies the expected content contained within this class. |
|
| 20 | * <p> |
|
| 21 | * <pre> |
|
| 22 | * <simpleType name="UpdatePeriodEnum"> |
|
| 23 | * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> |
|
| 24 | * <enumeration value="hourly"/> |
|
| 25 | * <enumeration value="daily"/> |
|
| 26 | * <enumeration value="weekly"/> |
|
| 27 | * <enumeration value="monthly"/> |
|
| 28 | * <enumeration value="yearly"/> |
|
| 29 | * </restriction> |
|
| 30 | * </simpleType> |
|
| 31 | * </pre> |
|
| 32 | * |
|
| 33 | */ |
|
| 34 | 45 | @XmlType(name = "UpdatePeriodEnum", namespace = "http://purl.org/rss/1.0/modules/syndication/") |
| 35 | @XmlEnum |
|
| 36 | public enum UpdatePeriodEnum { |
|
| 37 | ||
| 38 | 24 | @XmlEnumValue("hourly") |
| 39 | HOURLY("hourly"), |
|
| 40 | 24 | @XmlEnumValue("daily") |
| 41 | DAILY("daily"), |
|
| 42 | 24 | @XmlEnumValue("weekly") |
| 43 | WEEKLY("weekly"), |
|
| 44 | 24 | @XmlEnumValue("monthly") |
| 45 | MONTHLY("monthly"), |
|
| 46 | 24 | @XmlEnumValue("yearly") |
| 47 | YEARLY("yearly"); |
|
| 48 | private final String value; |
|
| 49 | ||
| 50 | 120 | UpdatePeriodEnum(String v) { |
| 51 | 120 | value = v; |
| 52 | 120 | } |
| 53 | ||
| 54 | public String value() { |
|
| 55 | 0 | return value; |
| 56 | } |
|
| 57 | ||
| 58 | public static UpdatePeriodEnum fromValue(String v) { |
|
| 59 | 0 | for (UpdatePeriodEnum c: UpdatePeriodEnum.values()) { |
| 60 | 0 | if (c.value.equals(v)) { |
| 61 | 0 | return c; |
| 62 | } |
|
| 63 | } |
|
| 64 | 0 | throw new IllegalArgumentException(v); |
| 65 | } |
|
| 66 | ||
| 67 | } |