Package de.exlll.configlib
Class FileConfigurationProperties
java.lang.Object
de.exlll.configlib.ConfigurationProperties
de.exlll.configlib.FileConfigurationProperties
An extension of the
ConfigurationProperties class that allows configuring properties
that are more specific to files.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for constructingFileConfigurationProperties. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructs a new instance of this class with values taken from the given builder. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanReturns whether to create parent directories.final CharsetReturns the charset used to read and write configuration files.final StringReturns the footer.final StringReturns the header.static FileConfigurationProperties.Builder<?>Constructs a newBuilderwith default values.Creates a new builder and initializes it with values taken from this properties object.Methods inherited from class de.exlll.configlib.ConfigurationProperties
getFieldFilter, getNameFormatter, getPostProcessorsByCondition, getSerializerFactories, getSerializers, inputNulls, outputNulls
-
Constructor Details
-
FileConfigurationProperties
Constructs a new instance of this class with values taken from the given builder.- Parameters:
builder- the builder used to initialize the fields of this class- Throws:
NullPointerException- if the builder or any of its values is null
-
-
Method Details
-
newBuilder
Constructs a newBuilderwith default values.- Returns:
- newly constructed
Builder
-
toBuilder
Description copied from class:ConfigurationPropertiesCreates a new builder and initializes it with values taken from this properties object.- Overrides:
toBuilderin classConfigurationProperties- Returns:
- new builder
-
getHeader
Returns the header.- Returns:
- the header
-
createParentDirectories
public final boolean createParentDirectories()Returns whether to create parent directories.- Returns:
- whether to create parent directories
-
getCharset
Returns the charset used to read and write configuration files.- Returns:
- the charset
-