public enum EnumTradeStationState extends java.lang.Enum<EnumTradeStationState> implements IPostalState
| Enum Constant and Description |
|---|
INSUFFICIENT_BUFFER |
INSUFFICIENT_OFFER |
INSUFFICIENT_PAPER |
INSUFFICIENT_STAMPS |
INSUFFICIENT_TRADE_GOOD |
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 EnumTradeStationState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumTradeStationState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumTradeStationState OK
public static final EnumTradeStationState INSUFFICIENT_OFFER
public static final EnumTradeStationState INSUFFICIENT_TRADE_GOOD
public static final EnumTradeStationState INSUFFICIENT_BUFFER
public static final EnumTradeStationState INSUFFICIENT_PAPER
public static final EnumTradeStationState INSUFFICIENT_STAMPS
public static EnumTradeStationState[] values()
for (EnumTradeStationState c : EnumTradeStationState.values()) System.out.println(c);
public static EnumTradeStationState 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