|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<MBErrorReason>
org.starhope.appius.mb.MBErrorReason
public enum MBErrorReason
WRITEME: Document this type.
| Enum Constant Summary | |
|---|---|
ALREADY_USED
The requested entry is already in use, e.g. |
|
BLANK
The field was left blank, and is required |
|
CONFIRM
The confirmation of a field failed; for eMail or password entries that have to be entered twice |
|
FORMAT
The field does not meet format requirements, e.g. |
|
INCORRECT
The value provided was incorrect or invalid |
|
PASSWORD_EQ_USERNAME
Password cannot be set to match username |
|
TOO_LONG
Value is too long |
|
TOO_SHORT
Value (likely user name or password) was too short. |
|
| Field Summary | |
|---|---|
private String |
defaultMessageFormat
Format string for default message creation (in English) |
| Method Summary | |
|---|---|
String |
getErrorMessage(org.starhope.appius.mb.fields.MBFieldIdent field)
Get an error message. |
static MBErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MBErrorReason[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final MBErrorReason BLANK
public static final MBErrorReason CONFIRM
public static final MBErrorReason INCORRECT
public static final MBErrorReason PASSWORD_EQ_USERNAME
public static final MBErrorReason FORMAT
public static final MBErrorReason ALREADY_USED
public static final MBErrorReason TOO_SHORT
public static final MBErrorReason TOO_LONG
| Field Detail |
|---|
private final String defaultMessageFormat
| Method Detail |
|---|
public static MBErrorReason[] values()
for (MBErrorReason c : MBErrorReason.values()) System.out.println(c);
public static MBErrorReason valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String getErrorMessage(org.starhope.appius.mb.fields.MBFieldIdent field)
field - the field for which an error message is wanted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||