public static enum UserCore.RegistrationStatus extends java.lang.Enum<UserCore.RegistrationStatus>
Enum Constant and Description |
---|
BAD_PASSWORD
given password was invalid (too short or contained invalid characters
|
BAD_USERNAME
given username was invalid or reserved
|
FORBIDDEN
Registeration attempt was forbidden.
|
NULL_DATA
required data was not given
|
OK
registeration completed successfully
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toStatusString() |
static UserCore.RegistrationStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UserCore.RegistrationStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UserCore.RegistrationStatus OK
public static final UserCore.RegistrationStatus BAD_USERNAME
public static final UserCore.RegistrationStatus BAD_PASSWORD
public static final UserCore.RegistrationStatus NULL_DATA
public static final UserCore.RegistrationStatus FORBIDDEN
public static UserCore.RegistrationStatus[] values()
for (UserCore.RegistrationStatus c : UserCore.RegistrationStatus.values()) System.out.println(c);
public static UserCore.RegistrationStatus 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 java.lang.String toStatusString()
Copyright © 2015 Tampere University of Technology, Pori Department.