com.jurismarches.vradi.services
Enum Configuration.Option

java.lang.Object
  extended by java.lang.Enum<Configuration.Option>
      extended by com.jurismarches.vradi.services.Configuration.Option
All Implemented Interfaces:
Serializable, Comparable<Configuration.Option>
Enclosing class:
Configuration

public static enum Configuration.Option
extends Enum<Configuration.Option>

Vradi option definition.


Enum Constant Summary
APPLICATION_VERSION
           
CONFIG_FILE
           
DATA_DIR
           
 
Field Summary
 boolean _final
           
 boolean _transient
           
 String defaultValue
           
 String description
           
 String key
           
 Class<?> type
           
 
Method Summary
static Configuration.Option valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Configuration.Option[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CONFIG_FILE

public static final Configuration.Option CONFIG_FILE

APPLICATION_VERSION

public static final Configuration.Option APPLICATION_VERSION

DATA_DIR

public static final Configuration.Option DATA_DIR
Field Detail

key

public final String key

description

public final String description

defaultValue

public final String defaultValue

type

public final Class<?> type

_transient

public final boolean _transient

_final

public final boolean _final
Method Detail

values

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

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

valueOf

public static Configuration.Option valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2009-2010 JurisMarches. All Rights Reserved.