public enum StatusType extends Enum<StatusType>
Clase Java para StatusType.
El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta clase.
<simpleType name="StatusType">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="New"/>
<enumeration value="In Transit"/>
<enumeration value="Delivered"/>
<enumeration value="Error"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
DELIVERED |
ERROR |
IN_TRANSIT |
NEW |
| Modifier and Type | Method and Description |
|---|---|
static StatusType |
fromValue(String v) |
String |
value() |
static StatusType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StatusType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StatusType NEW
public static final StatusType IN_TRANSIT
public static final StatusType DELIVERED
public static final StatusType ERROR
public static StatusType[] values()
for (StatusType c : StatusType.values()) System.out.println(c);
public static StatusType 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 StatusType fromValue(String v)
Copyright © 2015. All Rights Reserved.