Package org.ec4j.core.model
Class PropertyType.PropertyValueParser.EnumValueParser<T extends Enum<T>>
java.lang.Object
org.ec4j.core.model.PropertyType.PropertyValueParser.EnumValueParser<T>
- Type Parameters:
T- the type of the value
- All Implemented Interfaces:
PropertyType.PropertyValueParser<T>
- Enclosing interface:
PropertyType.PropertyValueParser<T>
public static class PropertyType.PropertyValueParser.EnumValueParser<T extends Enum<T>>
extends Object
implements PropertyType.PropertyValueParser<T>
A
PropertyType.PropertyValueParser implementation that allows only members of a given Enum type.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ec4j.core.model.PropertyType.PropertyValueParser
PropertyType.PropertyValueParser.EnumValueParser<T extends Enum<T>> -
Field Summary
FieldsFields inherited from interface org.ec4j.core.model.PropertyType.PropertyValueParser
BOOLEAN_VALUE_PARSER, IDENTITY_VALUE_PARSER, INDENT_SIZE_VALUE_PARSER, MAX_LINE_LENGTH_VALUE_PARSER, POSITIVE_INT_VALUE_PARSER -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
enumType
-
-
Constructor Details
-
EnumValueParser
-
-
Method Details
-
parse
Description copied from interface:PropertyType.PropertyValueParserParses the givenparsedinto aPropertyType.PropertyValue- Specified by:
parsein interfacePropertyType.PropertyValueParser<T extends Enum<T>>- Parameters:
name- the name of the parsed propertyvalue- the value to parse- Returns:
- the
PropertyType.PropertyValue
-