org.ow2.easybeans.examples.maven.jpa2.entity
Enum EmployeeLevelType

java.lang.Object
  extended by java.lang.Enum<EmployeeLevelType>
      extended by org.ow2.easybeans.examples.maven.jpa2.entity.EmployeeLevelType
All Implemented Interfaces:
Serializable, Comparable<EmployeeLevelType>

public enum EmployeeLevelType
extends Enum<EmployeeLevelType>

Type of employee.

Author:
Florent Benoit

Enum Constant Summary
ADMIN
          Employee has user rights.
SUPER_ADMIN
          Employee has super admin rights.
TRAINEE
          Employee has trainee rights.
 
Method Summary
static EmployeeLevelType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EmployeeLevelType[] 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

TRAINEE

public static final EmployeeLevelType TRAINEE
Employee has trainee rights.


ADMIN

public static final EmployeeLevelType ADMIN
Employee has user rights.


SUPER_ADMIN

public static final EmployeeLevelType SUPER_ADMIN
Employee has super admin rights.

Method Detail

values

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

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

valueOf

public static EmployeeLevelType 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


Copyright © 2006-2011 OW2 Consortium. All Rights Reserved.