org.starhope.appius.util
Enum UserCloseReason

java.lang.Object
  extended by java.lang.Enum<UserCloseReason>
      extended by org.starhope.appius.util.UserCloseReason
All Implemented Interfaces:
Serializable, Comparable<UserCloseReason>

public enum UserCloseReason
extends Enum<UserCloseReason>

A reason for which an account might be closed

Author:
brpocock@star-hope.org

Enum Constant Summary
BAD_LANGUAGE
          Account was closed for foul or abusive language
BAD_MAIL
          Account was closed because the eMail address supplied was invalid
CHEATING
          Account was closed for cheating
NOT_CLOSED
          Account has not, in fact, been closed at all; it's open.
USER_REQUEST
          Closed by request of user (self, or in Tootsville, parent)
 
Method Summary
static UserCloseReason valueOf(String name)
          Returns the enum constant of this type with the specified name.
static UserCloseReason[] 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

BAD_LANGUAGE

public static final UserCloseReason BAD_LANGUAGE
Account was closed for foul or abusive language


BAD_MAIL

public static final UserCloseReason BAD_MAIL
Account was closed because the eMail address supplied was invalid


CHEATING

public static final UserCloseReason CHEATING
Account was closed for cheating


NOT_CLOSED

public static final UserCloseReason NOT_CLOSED
Account has not, in fact, been closed at all; it's open.


USER_REQUEST

public static final UserCloseReason USER_REQUEST
Closed by request of user (self, or in Tootsville, parent)

Method Detail

values

public static UserCloseReason[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (UserCloseReason c : UserCloseReason.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static UserCloseReason valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null