com.sun.n1.sps.model
Class Visibility.Factory

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

public static class Visibility.Factory
extends EnumFactoryImpl

Factory for object visibility enums. Strongly-typed "get" methods are provided in addition to the default EnumFactory methods.


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

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

get

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

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

getAll

public Visibility[] getAll()
Returns the array of all known visibility enums.

Returns:
An array of all visibility enums.