All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eu.datex2.schema._2._2_0.ColourEnum Maven / Gradle / Ivy

The newest version!

package eu.datex2.schema._2._2_0;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * 

Java class for ColourEnum. * *

The following schema fragment specifies the expected content contained within this class. *

*

 * <simpleType name="ColourEnum">
 *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     <enumeration value="amber"/>
 *     <enumeration value="blue"/>
 *     <enumeration value="green"/>
 *     <enumeration value="red"/>
 *     <enumeration value="white"/>
 *     <enumeration value="whiteYellow"/>
 *   </restriction>
 * </simpleType>
 * 
* */ @XmlType(name = "ColourEnum") @XmlEnum public enum ColourEnum { @XmlEnumValue("amber") AMBER("amber"), @XmlEnumValue("blue") BLUE("blue"), @XmlEnumValue("green") GREEN("green"), @XmlEnumValue("red") RED("red"), @XmlEnumValue("white") WHITE("white"), @XmlEnumValue("whiteYellow") WHITE_YELLOW("whiteYellow"); private final String value; ColourEnum(String v) { value = v; } public String value() { return value; } public static ColourEnum fromValue(String v) { for (ColourEnum c: ColourEnum.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy