public enum EmergencyServiceEnumeration extends Enum<EmergencyServiceEnumeration>
Java class for EmergencyServiceEnumeration.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="EmergencyServiceEnumeration">
<restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
<enumeration value="police"/>
<enumeration value="fire"/>
<enumeration value="firstAid"/>
<enumeration value="sosPoint"/>
<enumeration value="other"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
FIRE |
FIRST_AID |
OTHER |
POLICE |
SOS_POINT |
| Modifier and Type | Method and Description |
|---|---|
static EmergencyServiceEnumeration |
fromValue(String v) |
String |
value() |
static EmergencyServiceEnumeration |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EmergencyServiceEnumeration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EmergencyServiceEnumeration POLICE
public static final EmergencyServiceEnumeration FIRE
public static final EmergencyServiceEnumeration FIRST_AID
public static final EmergencyServiceEnumeration SOS_POINT
public static final EmergencyServiceEnumeration OTHER
public static EmergencyServiceEnumeration[] values()
for (EmergencyServiceEnumeration c : EmergencyServiceEnumeration.values()) System.out.println(c);
public static EmergencyServiceEnumeration valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static EmergencyServiceEnumeration fromValue(String v)
Copyright © 2018 Entur AS. All rights reserved.