fr.ifremer.coser
Enum CoserConfig.CoserOption

java.lang.Object
  extended by java.lang.Enum<CoserConfig.CoserOption>
      extended by fr.ifremer.coser.CoserConfig.CoserOption
All Implemented Interfaces:
Serializable, Comparable<CoserConfig.CoserOption>, org.nuiton.util.ApplicationConfig.OptionDef
Enclosing class:
CoserConfig

public static enum CoserConfig.CoserOption
extends Enum<CoserConfig.CoserOption>
implements org.nuiton.util.ApplicationConfig.OptionDef


Enum Constant Summary
APPLICATION_VERSION
           
CONFIG_FILE
           
LOOKANDFEEL
           
SUPPORT_EMAIL
           
SWING_FONT_SIZE
           
WEBSITE_URL
           
 
Field Summary
protected  String defaultValue
           
protected  String description
           
protected  boolean isFinal
           
protected  boolean isTransient
           
protected  String key
           
protected  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 CoserConfig.CoserOption valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CoserConfig.CoserOption[] 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 CoserConfig.CoserOption CONFIG_FILE

LOOKANDFEEL

public static final CoserConfig.CoserOption LOOKANDFEEL

APPLICATION_VERSION

public static final CoserConfig.CoserOption APPLICATION_VERSION

SUPPORT_EMAIL

public static final CoserConfig.CoserOption SUPPORT_EMAIL

WEBSITE_URL

public static final CoserConfig.CoserOption WEBSITE_URL

SWING_FONT_SIZE

public static final CoserConfig.CoserOption SWING_FONT_SIZE
Field Detail

key

protected String key

description

protected String description

defaultValue

protected String defaultValue

type

protected Class<?> type

isTransient

protected boolean isTransient

isFinal

protected boolean isFinal
Method Detail

values

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

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

valueOf

public static CoserConfig.CoserOption 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

isFinal

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

isTransient

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

getDefaultValue

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

getDescription

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

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

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-2012 Ifremer. All Rights Reserved.