sjrd.tricktakinggame.server
Enum AppProperty

java.lang.Object
  extended by java.lang.Enum<AppProperty>
      extended by sjrd.tricktakinggame.server.AppProperty
All Implemented Interfaces:
Serializable, Comparable<AppProperty>, ApplicationProperty

public enum AppProperty
extends Enum<AppProperty>
implements ApplicationProperty

Une propriété de l'application

Author:
sjrd

Enum Constant Summary
AdminPasswordHash
           
ConsoleLogLevel
           
LogFileAppend
           
LogFileCount
           
LogFileLevel
           
LogFileLimit
           
LogFileName
           
LoginChecker
           
LoginFileName
           
LoginFileReloadOnChange
           
RulesDirectory
           
 
Field Summary
private  String defaultValue
          Valeur par défaut
private  String name
          Nom
 
Method Summary
 String getDefaultValue()
          Valeur par défaut de la propriété
 String getName()
          Nom de la propriété
static AppProperty valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AppProperty[] 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

ConsoleLogLevel

public static final AppProperty ConsoleLogLevel

LogFileName

public static final AppProperty LogFileName

LogFileLimit

public static final AppProperty LogFileLimit

LogFileCount

public static final AppProperty LogFileCount

LogFileAppend

public static final AppProperty LogFileAppend

LogFileLevel

public static final AppProperty LogFileLevel

RulesDirectory

public static final AppProperty RulesDirectory

LoginChecker

public static final AppProperty LoginChecker

LoginFileName

public static final AppProperty LoginFileName

LoginFileReloadOnChange

public static final AppProperty LoginFileReloadOnChange

AdminPasswordHash

public static final AppProperty AdminPasswordHash
Field Detail

name

private String name
Nom


defaultValue

private String defaultValue
Valeur par défaut

Method Detail

values

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

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

valueOf

public static AppProperty 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

getName

public String getName()
Nom de la propriété

Specified by:
getName in interface ApplicationProperty
Returns:
Nom de la propriété

getDefaultValue

public String getDefaultValue()
Valeur par défaut de la propriété

Specified by:
getDefaultValue in interface ApplicationProperty
Returns:
Valeur par défaut de la propriété (peut être null)