public enum EnumDeliveryState extends java.lang.Enum<EnumDeliveryState> implements IPostalState
| Enum Constant and Description |
|---|
ALREADY_MAILED |
MAILBOX_FULL |
NO_MAILBOX |
NOT_MAILABLE |
NOT_POSTPAID |
OK |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Localized description of the postal state
|
boolean |
isOk()
Normal states are OK, error states are not OK
|
static EnumDeliveryState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumDeliveryState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumDeliveryState OK
public static final EnumDeliveryState NO_MAILBOX
public static final EnumDeliveryState NOT_MAILABLE
public static final EnumDeliveryState ALREADY_MAILED
public static final EnumDeliveryState NOT_POSTPAID
public static final EnumDeliveryState MAILBOX_FULL
public static EnumDeliveryState[] values()
for (EnumDeliveryState c : EnumDeliveryState.values()) System.out.println(c);
public static EnumDeliveryState valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isOk()
IPostalStateisOk in interface IPostalStatepublic java.lang.String getDescription()
IPostalStategetDescription in interface IPostalState