org.pfsw.odem
Enum Visibility

java.lang.Object
  extended by java.lang.Enum<Visibility>
      extended by org.pfsw.odem.Visibility
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Visibility>

public enum Visibility
extends java.lang.Enum<Visibility>

Specifies the currently supported types

Version:
1.1
Author:
M.Duchrow

Enum Constant Summary
DEFAULT
           
PRIVATE
           
PROTECTED
           
PUBLIC
           
 
Method Summary
static Visibility fromString(java.lang.String valueName)
          Returns the enum value with the given name.
 java.lang.String toString()
           
static Visibility valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Visibility[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PUBLIC

public static final Visibility PUBLIC

PROTECTED

public static final Visibility PROTECTED

PRIVATE

public static final Visibility PRIVATE

DEFAULT

public static final Visibility DEFAULT
Method Detail

values

public static final Visibility[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Visibility c : Visibility.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Visibility valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

fromString

public static Visibility fromString(java.lang.String valueName)
Returns the enum value with the given name. If none with that name can be found null will be returned.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<Visibility>