public enum TripReason extends Enum<TripReason>
Clase Java para TripReason.
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
<simpleType name="TripReason">
<restriction base="{http://www.w3.org/2001/XMLSchema}int">
<enumeration value="1"/>
<enumeration value="2"/>
<enumeration value="3"/>
<enumeration value="4"/>
<enumeration value="5"/>
<enumeration value="6"/>
<enumeration value="7"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
EMERGENCY |
ENTERTAIMENT |
EXIT_OR_RETURN_FROM_HOLYDAYS |
GOING_TO_OR_RETURNING_FROM_WORK |
HOLYDAYS |
OTHER |
WORK |
| Modifier and Type | Method and Description |
|---|---|
static TripReason |
fromValue(int v) |
int |
value() |
static TripReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TripReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TripReason WORK
public static final TripReason GOING_TO_OR_RETURNING_FROM_WORK
public static final TripReason HOLYDAYS
public static final TripReason EXIT_OR_RETURN_FROM_HOLYDAYS
public static final TripReason EMERGENCY
public static final TripReason ENTERTAIMENT
public static final TripReason OTHER
public static TripReason[] values()
for (TripReason c : TripReason.values()) System.out.println(c);
public static TripReason 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 int value()
public static TripReason fromValue(int v)
Copyright © 2018. All rights reserved.