Class PropsParser
java.lang.Object
jodd.props.PropsParser
- All Implemented Interfaces:
Cloneable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enumDifferent assignment operators.protected static enumParsing states. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringValue that will be inserted when escaping the new line.protected booleanDefines if starting whitespaces when value is split in the new line should be ignored or not.protected booleanDefines if multi-line values may be written using triple-quotes as in python.protected static final Stringprotected static final Stringprotected final PropsDataprotected booleanDon't include empty properties.protected booleanTrims left the value.protected booleanTrims right the value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadd(String section, String key, StringBuilder value, boolean trim, PropsParser.Operator operator) Adds accumulated value to key and current section.clone()protected voidextractProfilesAndAdd(String key, String value, PropsParser.Operator operator) Extracts profiles from the key name and adds key-value to them.protected voidCore key-value addition.voidLoads properties.
-
Field Details
-
PROFILE_LEFT
- See Also:
-
PROFILE_RIGHT
- See Also:
-
propsData
-
escapeNewLineValue
Value that will be inserted when escaping the new line. -
valueTrimLeft
protected boolean valueTrimLeftTrims left the value. -
valueTrimRight
protected boolean valueTrimRightTrims right the value. -
ignorePrefixWhitespacesOnNewLine
protected boolean ignorePrefixWhitespacesOnNewLineDefines if starting whitespaces when value is split in the new line should be ignored or not. -
multilineValues
protected boolean multilineValuesDefines if multi-line values may be written using triple-quotes as in python. -
skipEmptyProps
protected boolean skipEmptyPropsDon't include empty properties.
-
-
Constructor Details
-
PropsParser
public PropsParser() -
PropsParser
-
-
Method Details
-
getPropsData
-
clone
-
parse
Loads properties. -
add
protected void add(String section, String key, StringBuilder value, boolean trim, PropsParser.Operator operator) Adds accumulated value to key and current section. -
extractProfilesAndAdd
Extracts profiles from the key name and adds key-value to them. -
justAdd
protected void justAdd(String key, String value, ArrayList<String> keyProfiles, PropsParser.Operator operator) Core key-value addition.
-