de.hs_rm.cs.lecturenotes.shared.entity
Enum UserDiscriminatorEnum

java.lang.Object
  extended by java.lang.Enum<UserDiscriminatorEnum>
      extended by de.hs_rm.cs.lecturenotes.shared.entity.UserDiscriminatorEnum
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable, java.io.Serializable, java.lang.Comparable<UserDiscriminatorEnum>

public enum UserDiscriminatorEnum
extends java.lang.Enum<UserDiscriminatorEnum>
implements com.google.gwt.user.client.rpc.IsSerializable

User Role Discriminator corresponding to the relationship of the system object "User Role".

Author:
Enrico Homann

Enum Constant Summary
ADMINISTRATOR
          3) Administrator User.
DOCENT
          2) Docent User.
REGISTERED
          1) Registered User.
UNREGISTERED
          0) Unregistered User.
 
Method Summary
 java.lang.String getDisplayName()
          Will return the display names for each of the enum values.
static UserDiscriminatorEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static UserDiscriminatorEnum[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNREGISTERED

public static final UserDiscriminatorEnum UNREGISTERED
0) Unregistered User.


REGISTERED

public static final UserDiscriminatorEnum REGISTERED
1) Registered User.


DOCENT

public static final UserDiscriminatorEnum DOCENT
2) Docent User.


ADMINISTRATOR

public static final UserDiscriminatorEnum ADMINISTRATOR
3) Administrator User.

Method Detail

values

public static UserDiscriminatorEnum[] 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 (UserDiscriminatorEnum c : UserDiscriminatorEnum.values())
    System.out.println(c);

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

valueOf

public static UserDiscriminatorEnum valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getDisplayName

public java.lang.String getDisplayName()
Will return the display names for each of the enum values.

Returns:
String