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