Package org.ec4j.core.model
Interface PropertyType.PropertyValueParser<T>
- Type Parameters:
T- the type of the parse result
- All Known Implementing Classes:
PropertyType.PropertyValueParser.EnumValueParser
- Enclosing class:
PropertyType<T>
public static interface PropertyType.PropertyValueParser<T>
A facility able to parse string values into other types.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAPropertyType.PropertyValueParserimplementation that allows only members of a givenEnumtype. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyType.PropertyValueParser<Boolean> A parser for boolean valuestrueandfalsestatic final PropertyType.PropertyValueParser<String> A dummy parser that does no parsing at all.static final PropertyType.PropertyValueParser<Integer> A parser forPropertyType.indent_sizestatic final PropertyType.PropertyValueParser<Integer> A parser forPropertyType.max_line_lengthstatic final PropertyType.PropertyValueParser<Integer> A parser accepting positive integer numbers. -
Method Summary
-
Field Details
-
BOOLEAN_VALUE_PARSER
A parser for boolean valuestrueandfalse -
IDENTITY_VALUE_PARSER
A dummy parser that does no parsing at all. -
INDENT_SIZE_VALUE_PARSER
A parser forPropertyType.indent_size -
MAX_LINE_LENGTH_VALUE_PARSER
A parser forPropertyType.max_line_length -
POSITIVE_INT_VALUE_PARSER
A parser accepting positive integer numbers.
-
-
Method Details
-
parse
Parses the givenparsedinto aPropertyType.PropertyValue- Parameters:
name- the name of the parsed propertyvalue- the value to parse- Returns:
- the
PropertyType.PropertyValue
-