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