|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<UserManager.Status>
userman.UserManager.Status
public static enum UserManager.Status
An enumerated type for representing login and registration status.
| Enum Constant Summary | |
|---|---|
LOGIN_SUCCESS
At login time, the submitted user name was found in the database and the submitted password matches |
|
NAME_IN_USE
At registration time, the submitted user name has already been assigned in the database |
|
NAME_NOT_FOUND
At login time, the submitted user name was not found in the database |
|
PASSWORD_NOT_MATCHED
At login time, the submitted user name was found but the submitted password does not match |
|
REGISTER_SUCCESS
At registration time, the submitted user name and password were successfully added to the database |
|
| Method Summary | |
|---|---|
static UserManager.Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static UserManager.Status[] |
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 UserManager.Status NAME_NOT_FOUND
public static final UserManager.Status PASSWORD_NOT_MATCHED
public static final UserManager.Status NAME_IN_USE
public static final UserManager.Status LOGIN_SUCCESS
public static final UserManager.Status REGISTER_SUCCESS
| Method Detail |
|---|
public static UserManager.Status[] values()
for (UserManager.Status c : UserManager.Status.values()) System.out.println(c);
public static UserManager.Status 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 name
java.lang.NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||