public interface ConfigurationTemplateGenerator extends ParameterExposing
| Modifier and Type | Method and Description |
|---|---|
default org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> |
createConfigurationTemplate()
This default implementation constructs an empty
XMLConfiguration with an XPathExpressionEngine
and a UTF-8 encoding. |
default void |
writeConfigurationTemplate(File destination)
Generates the configuration template by calling
createConfigurationTemplate() and stores the
template to destination. |
exposeParametersdefault org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> createConfigurationTemplate()
throws ConfigurationException
XMLConfiguration with an XPathExpressionEngine
and a UTF-8 encoding. Note that when using this template generation method, the keys of the configuration
must be given in XPath form, i.e. 'key/subkey' instead of the default dotted notation 'key.subkey'.ConfigurationException - If the template generation fails.default void writeConfigurationTemplate(File destination) throws ConfigurationException
createConfigurationTemplate() and stores the
template to destination.destination - The file path where the template should be written to.ConfigurationException - It template generation of population fails.Copyright © 2018 JULIE Lab, Germany. All rights reserved.