com.sun.n1.sps.model.executor
Class TaskStatus.Factory

java.lang.Object
  extended by com.sun.n1.util.enum.EnumFactoryImpl
      extended by com.sun.n1.util.enumx.EnumFactoryXImpl
          extended by com.sun.n1.sps.model.executor.TaskStatus.Factory
All Implemented Interfaces:
EnumFactory, EnumFactoryX
Enclosing class:
TaskStatus

public static class TaskStatus.Factory
extends EnumFactoryXImpl

Factory for task status enums.


Method Summary
 TaskStatus get(int value)
          Returns the task status associated with the passed int value.
 TaskStatus get(java.lang.String value)
          Returns the task status associated with the passed string value.
 TaskStatus[] getAll()
          Returns the array of all known task status enums.
 
Methods inherited from class com.sun.n1.util.enumx.EnumFactoryXImpl
getAllEnumXs, getEnumX, getEnumX
 
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
 
Methods inherited from interface com.sun.n1.util.enum.EnumFactory
getAllEnums, getEnum, getEnum
 

Method Detail

get

public TaskStatus get(java.lang.String value)
               throws NoSuchEnumException
Returns the task status associated with the passed string value. If no such task status exists an exception is raised.

Parameters:
value - - the string value of the desired type.
Returns:
The task status associated with the passed value.
Throws:
NoSuchEnumException - if no such task type exists.

get

public TaskStatus get(int value)
               throws NoSuchEnumException
Returns the task status associated with the passed int value. If no such task status exists an exception is raised.

Parameters:
value - - the int value of the desired type.
Returns:
The task status associated with the passed value.
Throws:
NoSuchEnumException - if no such task type exists.

getAll

public TaskStatus[] getAll()
Returns the array of all known task status enums.

Returns:
An array of all known task status enums.