public enum TrainElementTypeEnumeration extends Enum<TrainElementTypeEnumeration>
Java class for TrainElementTypeEnumeration.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="TrainElementTypeEnumeration">
<restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
<enumeration value="buffetCar"/>
<enumeration value="carriage"/>
<enumeration value="engine"/>
<enumeration value="carTransporter"/>
<enumeration value="sleeperCarriage"/>
<enumeration value="luggageVan"/>
<enumeration value="restaurantCarriage"/>
<enumeration value="other"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
BUFFET_CAR |
CAR_TRANSPORTER |
CARRIAGE |
ENGINE |
LUGGAGE_VAN |
OTHER |
RESTAURANT_CARRIAGE |
SLEEPER_CARRIAGE |
| Modifier and Type | Method and Description |
|---|---|
static TrainElementTypeEnumeration |
fromValue(String v) |
String |
value() |
static TrainElementTypeEnumeration |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TrainElementTypeEnumeration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrainElementTypeEnumeration BUFFET_CAR
public static final TrainElementTypeEnumeration CARRIAGE
public static final TrainElementTypeEnumeration ENGINE
public static final TrainElementTypeEnumeration CAR_TRANSPORTER
public static final TrainElementTypeEnumeration SLEEPER_CARRIAGE
public static final TrainElementTypeEnumeration LUGGAGE_VAN
public static final TrainElementTypeEnumeration RESTAURANT_CARRIAGE
public static final TrainElementTypeEnumeration OTHER
public static TrainElementTypeEnumeration[] values()
for (TrainElementTypeEnumeration c : TrainElementTypeEnumeration.values()) System.out.println(c);
public static TrainElementTypeEnumeration 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 TrainElementTypeEnumeration fromValue(String v)
Copyright © 2018 Entur AS. All rights reserved.