fr.inra.refcomp.services
Enum RefcompConfiguration.RefcompOption

java.lang.Object
  extended by java.lang.Enum<RefcompConfiguration.RefcompOption>
      extended by fr.inra.refcomp.services.RefcompConfiguration.RefcompOption
All Implemented Interfaces:
Serializable, Comparable<RefcompConfiguration.RefcompOption>, org.nuiton.util.ApplicationConfig.OptionDef
Enclosing class:
RefcompConfiguration

public static enum RefcompConfiguration.RefcompOption
extends Enum<RefcompConfiguration.RefcompOption>
implements org.nuiton.util.ApplicationConfig.OptionDef

Vradi option definition.


Enum Constant Summary
ADMIN_EMAIL
           
APPLICATION_VERSION
           
CONFIG_FILE
           
DATA_DIR
           
LOCALE
           
 
Field Summary
 String defaultValue
           
 String description
           
 boolean isFinal
           
 boolean isTransient
           
 String key
           
 Class<?> type
           
 
Method Summary
 String getDefaultValue()
           
 String getDescription()
           
 String getKey()
           
 Class<?> getType()
           
 boolean isFinal()
           
 boolean isTransient()
           
 void setDefaultValue(String defaultValue)
           
 void setFinal(boolean isFinal)
           
 void setTransient(boolean isTransient)
           
static RefcompConfiguration.RefcompOption valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RefcompConfiguration.RefcompOption[] 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

ADMIN_EMAIL

public static final RefcompConfiguration.RefcompOption ADMIN_EMAIL

CONFIG_FILE

public static final RefcompConfiguration.RefcompOption CONFIG_FILE

APPLICATION_VERSION

public static final RefcompConfiguration.RefcompOption APPLICATION_VERSION

DATA_DIR

public static final RefcompConfiguration.RefcompOption DATA_DIR

LOCALE

public static final RefcompConfiguration.RefcompOption LOCALE
Field Detail

key

public String key

description

public String description

defaultValue

public String defaultValue

type

public Class<?> type

isTransient

public boolean isTransient

isFinal

public boolean isFinal
Method Detail

values

public static RefcompConfiguration.RefcompOption[] 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 (RefcompConfiguration.RefcompOption c : RefcompConfiguration.RefcompOption.values())
    System.out.println(c);

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

valueOf

public static RefcompConfiguration.RefcompOption 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

getKey

public String getKey()
Specified by:
getKey in interface org.nuiton.util.ApplicationConfig.OptionDef

getType

public Class<?> getType()
Specified by:
getType in interface org.nuiton.util.ApplicationConfig.OptionDef

getDescription

public String getDescription()
Specified by:
getDescription in interface org.nuiton.util.ApplicationConfig.OptionDef

getDefaultValue

public String getDefaultValue()
Specified by:
getDefaultValue in interface org.nuiton.util.ApplicationConfig.OptionDef

isTransient

public boolean isTransient()
Specified by:
isTransient in interface org.nuiton.util.ApplicationConfig.OptionDef

isFinal

public boolean isFinal()
Specified by:
isFinal in interface org.nuiton.util.ApplicationConfig.OptionDef

setDefaultValue

public void setDefaultValue(String defaultValue)
Specified by:
setDefaultValue in interface org.nuiton.util.ApplicationConfig.OptionDef

setTransient

public void setTransient(boolean isTransient)
Specified by:
setTransient in interface org.nuiton.util.ApplicationConfig.OptionDef

setFinal

public void setFinal(boolean isFinal)
Specified by:
setFinal in interface org.nuiton.util.ApplicationConfig.OptionDef


Copyright © 2010-2011 Code Lutin. All Rights Reserved.