Package org.refcodes.data
Enum CommonParameter
- java.lang.Object
-
- java.lang.Enum<CommonParameter>
-
- org.refcodes.data.CommonParameter
-
- All Implemented Interfaces:
org.refcodes.mixin.NameAccessor
public enum CommonParameter extends java.lang.Enum<CommonParameter> implements org.refcodes.mixin.NameAccessor
CommonParameter
defines common parameters (parameter is considered the key of a key/value pair) of a given semantics for the according property.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHARSET
Identifies a charset code such asEncoding.UTF_8
'sEncoding.getCode()
.COMMENT
Identifies a commentString
.DELIMITER
The value of such a property identifies a single delimiter char.DELIMITERS
The value of such a property identifies a multiple delimiter chars.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
static CommonParameter
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CommonParameter[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHARSET
public static final CommonParameter CHARSET
Identifies a charset code such asEncoding.UTF_8
'sEncoding.getCode()
.
-
DELIMITER
public static final CommonParameter DELIMITER
The value of such a property identifies a single delimiter char.
-
DELIMITERS
public static final CommonParameter DELIMITERS
The value of such a property identifies a multiple delimiter chars.
-
COMMENT
public static final CommonParameter COMMENT
Identifies a commentString
.
-
-
Method Detail
-
values
public static CommonParameter[] 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 (CommonParameter c : CommonParameter.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommonParameter 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 namejava.lang.NullPointerException
- if the argument is null
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceorg.refcodes.mixin.NameAccessor
-
-