com.sun.n1.sps.model.host
Class UpgradeNodeState.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.host.UpgradeNodeState.FACTORY
All Implemented Interfaces:
EnumFactory, EnumFactoryX
Enclosing class:
UpgradeNodeState

public static class UpgradeNodeState.FACTORY
extends EnumFactoryXImpl

Factory for upgrade node state enums. Strongly-typed "get" methods are provided in addition to the default EnumFactory methods.


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

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

get

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

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

getAll

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

Returns:
array of all upgrade node state enums.