pt.digitalis.dif.dem
Enum CallbackType

java.lang.Object
  extended by java.lang.Enum<CallbackType>
      extended by pt.digitalis.dif.dem.CallbackType
All Implemented Interfaces:
Serializable, Comparable<CallbackType>

public enum CallbackType
extends Enum<CallbackType>

Defines the available callback types.

Author:
Rodrigo Gonçalves rgoncalves@digitalis.pt
Created on:
2007/11/05

Enum Constant Summary
OFF
          Callback disabled.
SAVE_PARAMETERS
          Keeps stage information including parameters passed only for future redirection
SAVE_SESSION
          Keeps session information so it will be possible to return to the Stage later.
SIMPLE
          Keeps stage information only for future redirection
 
Method Summary
static CallbackType getCallbackTypeByName(String name)
          Constructor by name
static CallbackType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CallbackType[] 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

OFF

public static final CallbackType OFF
Callback disabled.


SAVE_PARAMETERS

public static final CallbackType SAVE_PARAMETERS
Keeps stage information including parameters passed only for future redirection


SAVE_SESSION

public static final CallbackType SAVE_SESSION
Keeps session information so it will be possible to return to the Stage later.


SIMPLE

public static final CallbackType SIMPLE
Keeps stage information only for future redirection

Method Detail

values

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

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

valueOf

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

getCallbackTypeByName

public static CallbackType getCallbackTypeByName(String name)
Constructor by name

Parameters:
name - the name of the callback
Returns:
the corresponding callback type


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.