Package uk.org.siri.siri21
Enum TypeOfFuelEnumeration
- java.lang.Object
-
- java.lang.Enum<TypeOfFuelEnumeration>
-
- uk.org.siri.siri21.TypeOfFuelEnumeration
-
- All Implemented Interfaces:
Serializable,Comparable<TypeOfFuelEnumeration>
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="hydrogen"/> <enumeration value="other"/> <enumeration value="unknown"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BIODIESELDIESELELECTRICITYHYDROGENNATURAL_GASOTHERPETROLUNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TypeOfFuelEnumerationfromValue(String v)Stringvalue()static TypeOfFuelEnumerationvalueOf(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.
-
-
-
Enum Constant Detail
-
PETROL
public static final TypeOfFuelEnumeration PETROL
-
DIESEL
public static final TypeOfFuelEnumeration DIESEL
-
NATURAL_GAS
public static final TypeOfFuelEnumeration NATURAL_GAS
-
BIODIESEL
public static final TypeOfFuelEnumeration BIODIESEL
-
ELECTRICITY
public static final TypeOfFuelEnumeration ELECTRICITY
-
HYDROGEN
public static final TypeOfFuelEnumeration HYDROGEN
-
OTHER
public static final TypeOfFuelEnumeration OTHER
-
UNKNOWN
public static final TypeOfFuelEnumeration UNKNOWN
-
-
Method Detail
-
values
public static TypeOfFuelEnumeration[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TypeOfFuelEnumeration c : TypeOfFuelEnumeration.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeOfFuelEnumeration valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
value
public String value()
-
fromValue
public static TypeOfFuelEnumeration fromValue(String v)
-
-