
eu.datex2.schema._2._2_0.RegulationEnum Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datex2-api Show documentation
Show all versions of datex2-api Show documentation
DATEX II API for Java, allows to create DATEX II suppliers and clients.
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 RegulationEnum.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="RegulationEnum">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="permitted"/>
* <enumeration value="prohibited"/>
* <enumeration value="punishable"/>
* <enumeration value="seasonalHeterogeneous"/>
* <enumeration value="permittedOnlyAtParticularTimes"/>
* <enumeration value="permittedOnlyOnParticularAreas"/>
* <enumeration value="prohibitedAtParticularTimes"/>
* <enumeration value="prohibitedOnParticularAreas"/>
* <enumeration value="onlyOnRequest"/>
* <enumeration value="heterogeneous"/>
* <enumeration value="onlyOutsideBuildings"/>
* <enumeration value="onlyInsideBuildings"/>
* <enumeration value="unspecified"/>
* <enumeration value="unknown"/>
* <enumeration value="other"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "RegulationEnum")
@XmlEnum
public enum RegulationEnum {
@XmlEnumValue("permitted")
PERMITTED("permitted"),
@XmlEnumValue("prohibited")
PROHIBITED("prohibited"),
@XmlEnumValue("punishable")
PUNISHABLE("punishable"),
@XmlEnumValue("seasonalHeterogeneous")
SEASONAL_HETEROGENEOUS("seasonalHeterogeneous"),
@XmlEnumValue("permittedOnlyAtParticularTimes")
PERMITTED_ONLY_AT_PARTICULAR_TIMES("permittedOnlyAtParticularTimes"),
@XmlEnumValue("permittedOnlyOnParticularAreas")
PERMITTED_ONLY_ON_PARTICULAR_AREAS("permittedOnlyOnParticularAreas"),
@XmlEnumValue("prohibitedAtParticularTimes")
PROHIBITED_AT_PARTICULAR_TIMES("prohibitedAtParticularTimes"),
@XmlEnumValue("prohibitedOnParticularAreas")
PROHIBITED_ON_PARTICULAR_AREAS("prohibitedOnParticularAreas"),
@XmlEnumValue("onlyOnRequest")
ONLY_ON_REQUEST("onlyOnRequest"),
@XmlEnumValue("heterogeneous")
HETEROGENEOUS("heterogeneous"),
@XmlEnumValue("onlyOutsideBuildings")
ONLY_OUTSIDE_BUILDINGS("onlyOutsideBuildings"),
@XmlEnumValue("onlyInsideBuildings")
ONLY_INSIDE_BUILDINGS("onlyInsideBuildings"),
@XmlEnumValue("unspecified")
UNSPECIFIED("unspecified"),
@XmlEnumValue("unknown")
UNKNOWN("unknown"),
@XmlEnumValue("other")
OTHER("other");
private final String value;
RegulationEnum(String v) {
value = v;
}
public String value() {
return value;
}
public static RegulationEnum fromValue(String v) {
for (RegulationEnum c: RegulationEnum.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy