com.sun.n1.sps.model.plan
Class ExecutionMode.Factory

java.lang.Object
  extended by com.sun.n1.util.enum.EnumFactoryImpl
      extended by com.sun.n1.sps.model.plan.ExecutionMode.Factory
All Implemented Interfaces:
EnumFactory
Enclosing class:
ExecutionMode

public static class ExecutionMode.Factory
extends EnumFactoryImpl

Factory for execution mode enums. Strongly-typed "get" methods are provided in addition to the default EnumFactory methods.


Method Summary
 ExecutionMode get(int value)
          Returns the execution mode associated with the passed int value.
 ExecutionMode get(java.lang.String value)
          Returns the execution mode associated with the passed String value.
 ExecutionMode[] getAll()
          Returns the array of all known execution mode enums.
 
Methods inherited from class com.sun.n1.util.enum.EnumFactoryImpl
getAllEnums, getEnum, getEnum
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public ExecutionMode get(java.lang.String value)
                  throws NoSuchEnumException
Returns the execution mode associated with the passed String value. If no such execution mode exists, and exception is raised.

Parameters:
value - the string value of the desired execution mode.
Returns:
the execution mode associated with the passed value.
Throws:
NoSuchEnumException - if no such execution mode exists.

get

public ExecutionMode get(int value)
                  throws NoSuchEnumException
Returns the execution mode associated with the passed int value. If no such execution mode exists, and exception is raised.

Parameters:
value - the int value of the desired execution mode.
Returns:
the execution mode associated with the passed value.
Throws:
NoSuchEnumException - if no such execution mode exists.

getAll

public ExecutionMode[] getAll()
Returns the array of all known execution mode enums.

Returns:
array of all execution mode enums.