Package org.ec4j.core.model
Class PropertyType.LowerCasingPropertyType<T>
java.lang.Object
org.ec4j.core.model.PropertyType<T>
org.ec4j.core.model.PropertyType.LowerCasingPropertyType<T>
- Type Parameters:
T- the type of thePropertyparsed
- Enclosing class:
PropertyType<T>
Because some values need to be lowercased, as required by "lowercase_values1" a "lowercase_values2" tests (v0.9.0
properties), this
PropertyType subclass applies the lower-casing in normalizeIfNeeded(String).-
Nested Class Summary
Nested classes/interfaces inherited from class org.ec4j.core.model.PropertyType
PropertyType.EndOfLineValue, PropertyType.IndentStyleValue, PropertyType.LowerCasingPropertyType<T>, PropertyType.PropertyValue<T>, PropertyType.PropertyValueParser<T> -
Field Summary
Fields inherited from class org.ec4j.core.model.PropertyType
charset, end_of_line, indent_size, indent_style, insert_final_newline, max_line_length, root, tab_width, trim_trailing_whitespace, unset -
Constructor Summary
ConstructorsConstructorDescriptionLowerCasingPropertyType(String name, String description, PropertyType.PropertyValueParser<T> parser, String... possibleValues) LowerCasingPropertyType(String name, String description, PropertyType.PropertyValueParser<T> parser, Set<String> possibleValues) -
Method Summary
Modifier and TypeMethodDescriptionnormalizeIfNeeded(String value) Editor config tests require that some values need to be processed in various ways before being used.Methods inherited from class org.ec4j.core.model.PropertyType
getDescription, getName, getPossibleValues, parse, standardTypes, toString
-
Constructor Details
-
LowerCasingPropertyType
-
LowerCasingPropertyType
public LowerCasingPropertyType(String name, String description, PropertyType.PropertyValueParser<T> parser, String... possibleValues)
-
-
Method Details
-
normalizeIfNeeded
Description copied from class:PropertyTypeEditor config tests require that some values need to be processed in various ways before being used. This method is supposed to perform such transformations. This particular implementation performs no transformation. See alsoPropertyType.LowerCasingPropertyType.- Overrides:
normalizeIfNeededin classPropertyType<T>- Parameters:
value- the value to normalize- Returns:
- the normalized parsed or the passed-in
parsedif no transformation is necessary
-