com.emarsys.ecommon.prefs.config
Enum ConfigurationDeclaration.DeclarationType

java.lang.Object
  extended by java.lang.Enum<ConfigurationDeclaration.DeclarationType>
      extended by com.emarsys.ecommon.prefs.config.ConfigurationDeclaration.DeclarationType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ConfigurationDeclaration.DeclarationType>
Enclosing interface:
ConfigurationDeclaration

public static enum ConfigurationDeclaration.DeclarationType
extends java.lang.Enum<ConfigurationDeclaration.DeclarationType>

Defines the different types of String declarations possible. They represent some kind of token classes when parsing a configuration declaration.

Author:
Michael "kULO" Kulovits

Enum Constant Summary
DEFAULT_VALUE
          The String represents a ISetting default value.
EXCLUDED
          The String is an excluded name.
FALLBACK_NAME
          The String represents the name of a fallback ISetting.
NAME
          The String represents a ISetting name.
UNKNOWN
          The declaration type of the String is unknown, usually indicates an error.
VALUE
          The String represents a ISetting value.
 
Method Summary
static ConfigurationDeclaration.DeclarationType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ConfigurationDeclaration.DeclarationType[] 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

UNKNOWN

public static final ConfigurationDeclaration.DeclarationType UNKNOWN
The declaration type of the String is unknown, usually indicates an error.


EXCLUDED

public static final ConfigurationDeclaration.DeclarationType EXCLUDED
The String is an excluded name.


NAME

public static final ConfigurationDeclaration.DeclarationType NAME
The String represents a ISetting name.


VALUE

public static final ConfigurationDeclaration.DeclarationType VALUE
The String represents a ISetting value.


DEFAULT_VALUE

public static final ConfigurationDeclaration.DeclarationType DEFAULT_VALUE
The String represents a ISetting default value.


FALLBACK_NAME

public static final ConfigurationDeclaration.DeclarationType FALLBACK_NAME
The String represents the name of a fallback ISetting.

Method Detail

values

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

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

valueOf

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


Copyright © 2010 emarsys AG. All Rights Reserved.