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

public static class Style.Factory
extends EnumFactoryXImpl

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


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

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

get

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

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

getAll

public Style[] getAll()
Returns the array of all style enumerations.

Returns:
array of all style enumerations.