| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| ContentState |
|
| 2.3333333333333335;2.333 |
| 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: 2012.12.18 at 09:26:19 AM EST | |
| 6 | // | |
| 7 | ||
| 8 | ||
| 9 | package net.sourceforge.pebble.dao.file; | |
| 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 ContentState. | |
| 18 | * | |
| 19 | * <p>The following schema fragment specifies the expected content contained within this class. | |
| 20 | * <p> | |
| 21 | * <pre> | |
| 22 | * <simpleType name="ContentState"> | |
| 23 | * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> | |
| 24 | * <enumeration value="published"/> | |
| 25 | * <enumeration value="unpublished"/> | |
| 26 | * </restriction> | |
| 27 | * </simpleType> | |
| 28 | * </pre> | |
| 29 | * | |
| 30 | */ | |
| 31 | 8 | @XmlType(name = "ContentState") |
| 32 | @XmlEnum | |
| 33 | public enum ContentState { | |
| 34 | ||
| 35 | 4 | @XmlEnumValue("published") |
| 36 | PUBLISHED("published"), | |
| 37 | 4 | @XmlEnumValue("unpublished") |
| 38 | UNPUBLISHED("unpublished"); | |
| 39 | private final String value; | |
| 40 | ||
| 41 | 8 | ContentState(String v) { |
| 42 | 8 | value = v; |
| 43 | 8 | } |
| 44 | ||
| 45 | public String value() { | |
| 46 | 0 | return value; |
| 47 | } | |
| 48 | ||
| 49 | public static ContentState fromValue(String v) { | |
| 50 | 0 | for (ContentState c: ContentState.values()) { |
| 51 | 0 | if (c.value.equals(v)) { |
| 52 | 0 | return c; |
| 53 | } | |
| 54 | } | |
| 55 | 0 | throw new IllegalArgumentException(v); |
| 56 | } | |
| 57 | ||
| 58 | } |