Package de.poiu.coat.example
Enum ExampleConfigParam
- java.lang.Object
-
- java.lang.Enum<ExampleConfigParam>
-
- de.poiu.coat.example.ExampleConfigParam
-
- All Implemented Interfaces:
ConfigParam,Serializable,Comparable<ExampleConfigParam>
@Generated(value="de.poiu.coat.processor.CoatProcessor", date="2021-03-19T16:38:45.088776+01:00") public enum ExampleConfigParam extends Enum<ExampleConfigParam> implements ConfigParam
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHARSET_WITH_DEFAULTMANDATORY_STRINGOPTIONAL_INET_ADDRESSOPTIONAL_INT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdefaultValue()Stringkey()booleanmandatory()Classtype()static ExampleConfigParamvalueOf(String name)Returns the enum constant of this type with the specified name.static ExampleConfigParam[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MANDATORY_STRING
public static final ExampleConfigParam MANDATORY_STRING
-
OPTIONAL_INT
public static final ExampleConfigParam OPTIONAL_INT
-
CHARSET_WITH_DEFAULT
public static final ExampleConfigParam CHARSET_WITH_DEFAULT
-
OPTIONAL_INET_ADDRESS
public static final ExampleConfigParam OPTIONAL_INET_ADDRESS
-
-
Method Detail
-
values
public static ExampleConfigParam[] 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 (ExampleConfigParam c : ExampleConfigParam.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExampleConfigParam 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 nameNullPointerException- if the argument is null
-
key
public String key()
- Specified by:
keyin interfaceConfigParam
-
type
public Class type()
- Specified by:
typein interfaceConfigParam
-
defaultValue
public String defaultValue()
- Specified by:
defaultValuein interfaceConfigParam
-
mandatory
public boolean mandatory()
- Specified by:
mandatoryin interfaceConfigParam
-
-