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

public static class Scope.Factory
extends EnumFactoryXImpl

Factory for scope enumerations. Strongly-typed get methods are provided in addition to the default EnumFactory methods.


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

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

get

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

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

getAll

public Scope[] getAll()
Returns the array of all scope enumerations.

Returns:
array of all scope enumerations.