com.sun.n1.sps.model.host
Class UpgradeTaskState.FACTORY

java.lang.Object
  extended by com.sun.n1.util.enum.EnumFactoryImpl
      extended by com.sun.n1.sps.model.host.UpgradeTaskState.FACTORY
All Implemented Interfaces:
EnumFactory
Enclosing class:
UpgradeTaskState

public static class UpgradeTaskState.FACTORY
extends EnumFactoryImpl

Factory for upgrade task states. Strongly-typed "get" methods are provided in addition to the default EnumFactory methods.


Method Summary
 UpgradeTaskState get(int value)
          Returns the upgrade task state associated with the passed int value.
 UpgradeTaskState get(java.lang.String value)
          Returns the upgrade task state associated with the passed String value.
 UpgradeTaskState[] getAll()
          Returns the array of all known upgrade task state 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 UpgradeTaskState get(java.lang.String value)
                     throws NoSuchEnumException
Returns the upgrade task state associated with the passed String value. If no such upgrade task state exists, an exception is raised.

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

get

public UpgradeTaskState get(int value)
                     throws NoSuchEnumException
Returns the upgrade task state associated with the passed int value. If no such upgrade task state exists, and exception is raised.

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

getAll

public UpgradeTaskState[] getAll()
Returns the array of all known upgrade task state enums.

Returns:
array of all upgrade task state enums.