de.hs_rm.cs.lecturenotes.shared
Enum EntitySortContextEnum

java.lang.Object
  extended by java.lang.Enum<EntitySortContextEnum>
      extended by de.hs_rm.cs.lecturenotes.shared.EntitySortContextEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EntitySortContextEnum>

public enum EntitySortContextEnum
extends java.lang.Enum<EntitySortContextEnum>

Entity Sorting Enum Definition to specify general sorting contexts.

Version:
$LastChangedRevision: 231 $
Author:
Enrico Homann

Enum Constant Summary
ALL
          All available entities.
OWNERSHIP
          Entities that the current session user owns.
 
Method Summary
static EntitySortContextEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EntitySortContextEnum[] 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

ALL

public static final EntitySortContextEnum ALL
All available entities.


OWNERSHIP

public static final EntitySortContextEnum OWNERSHIP
Entities that the current session user owns.

Method Detail

values

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

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

valueOf

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