org.nuiton.util
Interface ApplicationConfig.OptionDef

All Superinterfaces:
Serializable
Enclosing class:
ApplicationConfig

public static interface ApplicationConfig.OptionDef
extends Serializable

Le contrat de marquage des options, on utilise cette interface pour caracteriser une option de configuration.

Since:
1.0.0-rc-9

Method Summary
 String getDefaultValue()
           
 String getDescription()
           
 String getKey()
           
 Class<?> getType()
           
 boolean isFinal()
           
 boolean isTransient()
           
 void setDefaultValue(String defaultValue)
          Changes the default value of the option.
 void setFinal(boolean isFinal)
          Changes the final state of the option.
 void setTransient(boolean isTransient)
          Changes the transient state of the option.
 

Method Detail

getKey

String getKey()
Returns:
la clef identifiant l'option

getType

Class<?> getType()
Returns:
le type de l'option

getDescription

String getDescription()
Returns:
la clef i18n de description de l'option

getDefaultValue

String getDefaultValue()
Returns:
la valeur par defaut de l'option sous forme de chaine de caracteres

isTransient

boolean isTransient()
Returns:
true si l'option ne peut etre sauvegardee sur disque (utile par exemple pour les mots de passe, ...)

isFinal

boolean isFinal()
Returns:
true si l'option n'est pas modifiable (utilise par exemple pour la version de l'application, ...)

setDefaultValue

void setDefaultValue(String defaultValue)
Changes the default value of the option.

Parameters:
defaultValue - the new default value of the option

setTransient

void setTransient(boolean isTransient)
Changes the transient state of the option.

Parameters:
isTransient - the new value of the transient state

setFinal

void setFinal(boolean isFinal)
Changes the final state of the option.

Parameters:
isFinal - the new transient state value


Copyright © 2004-2010 CodeLutin. All Rights Reserved.