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