public enum PurchaseWhenEnumeration extends Enum<PurchaseWhenEnumeration>
Java class for PurchaseWhenEnumeration.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="PurchaseWhenEnumeration">
<restriction base="{http://www.w3.org/2001/XMLSchema}normalizedString">
<enumeration value="timeOfTravelOnly"/>
<enumeration value="dayOfTravelOnly"/>
<enumeration value="untilPreviousDay"/>
<enumeration value="advanceOnly"/>
<enumeration value="advanceAndDayOfTravel"/>
<enumeration value="other"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
ADVANCE_AND_DAY_OF_TRAVEL |
ADVANCE_ONLY |
DAY_OF_TRAVEL_ONLY |
OTHER |
TIME_OF_TRAVEL_ONLY |
UNTIL_PREVIOUS_DAY |
| Modifier and Type | Method and Description |
|---|---|
static PurchaseWhenEnumeration |
fromValue(String v) |
String |
value() |
static PurchaseWhenEnumeration |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PurchaseWhenEnumeration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PurchaseWhenEnumeration TIME_OF_TRAVEL_ONLY
public static final PurchaseWhenEnumeration DAY_OF_TRAVEL_ONLY
public static final PurchaseWhenEnumeration UNTIL_PREVIOUS_DAY
public static final PurchaseWhenEnumeration ADVANCE_ONLY
public static final PurchaseWhenEnumeration ADVANCE_AND_DAY_OF_TRAVEL
public static final PurchaseWhenEnumeration OTHER
public static PurchaseWhenEnumeration[] values()
for (PurchaseWhenEnumeration c : PurchaseWhenEnumeration.values()) System.out.println(c);
public static PurchaseWhenEnumeration 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 PurchaseWhenEnumeration fromValue(String v)
Copyright © 2018 Entur AS. All rights reserved.