Interface ConfigurationRoot
- All Known Subinterfaces:
ConfigurationLayer
- All Known Implementing Classes:
Configuration,Extended,Simple,SimpleConfigurationLayer
public interface ConfigurationRoot
This interface models the root configuration, with global options and nested sections.
-
Method Summary
Modifier and TypeMethodDescriptiongetBump()Returns the version identifier to bump as it's defined by this configuration.Returns the changelog configuration section.Returns the commit message convention configuration section.Returns the path to a custom configuration file as it's defined by this configuration.Returns the directory to use as the working directory as it's defined by this configuration.Returns the value of the dry run flag as it's defined by this configuration.getGit()Returns the Git configuration section.Returns the initial version defined by this configuration to use when no past version is available in the commit history.Returns selected preset configuration as it's defined by this configuration.Returns the release assets configuration section.Returns the flag that enables tolerance in reading release names with arbitrary prefixes or extra non critical characters as it's defined by this configuration.Returns the prefix to use in release name generation as it's defined by this configuration.Returns the release types configuration section.Returns the value of the resume flag as it's defined by this configuration.Returns the versioning scheme to use as it's defined by this configuration.Returns the services configuration section.Returns the path to a custom shared configuration file as it's defined by this configuration.Returns the path to the file where the NyxStatemust be saved as it's defined by this configuration.Returns the substitutions configuration section.Returns the value of the summary flag as it's defined by this configuration.Returns the path to the file where the Nyx summary must be saved as it's defined by this configuration.Returns the logging verbosity level as it's defined by this configuration.Returns the version defined by this configuration.
-
Method Details
-
getBump
Returns the version identifier to bump as it's defined by this configuration.- Returns:
- the configured value for this option or
nullif the value hasn't been defined. - Throws:
DataAccessException- in case the option cannot be read or accessed.IllegalPropertyException- in case the option has been defined but has incorrect values or it can't be resolved.
-
getChangelog
Returns the changelog configuration section.- Returns:
- the changelog configuration section. Never
null. - Throws:
DataAccessException- in case the option cannot be read or accessed.IllegalPropertyException- in case the option has been defined but has incorrect values or it can't be resolved.
-
getCommitMessageConventions
CommitMessageConventions getCommitMessageConventions() throws DataAccessException, IllegalPropertyExceptionReturns the commit message convention configuration section.- Returns:
- the commit message convention configuration section. Never
null. - Throws:
DataAccessException- in case the option cannot be read or accessed.IllegalPropertyException- in case the option has been defined but has incorrect values or it can't be resolved.
-
getConfigurationFile
Returns the path to a custom configuration file as it's defined by this configuration.- Returns:
- the configured value for this option or
nullif the value hasn't been defined. - Throws:
DataAccessException- in case the option cannot be read or accessed.IllegalPropertyException- in case the option has been defined but has incorrect values or it can't be resolved.
-
getDirectory
Returns the directory to use as the working directory as it's defined by this configuration.- Returns:
- the configured value for this option or
nullif the value hasn't been defined. - Throws:
DataAccessException- in case the option cannot be read or accessed.IllegalPropertyException- in case the option has been defined but has incorrect values or it can't be resolved.- See Also:
-
getDryRun
Returns the value of the dry run flag as it's defined by this configuration.- Returns:
- the configured value for this option or
nullif the value hasn't been defined. - Throws:
DataAccessException- in case the option cannot be read or accessed.IllegalPropertyException- in case the option has been defined but has incorrect values or it can't be resolved.
-
getGit
Returns the Git configuration section.- Returns:
- the Git configuration section. Never
null. - Throws:
DataAccessException- in case the option cannot be read or accessed.IllegalPropertyException- in case the option has been defined but has incorrect values or it can't be resolved.
-
getInitialVersion
Returns the initial version defined by this configuration to use when no past version is available in the commit history.- Returns:
- the configured value for this option or
nullif the value hasn't been defined. - Throws:
DataAccessException- in case the option cannot be read or accessed.IllegalPropertyException- in case the option has been defined but has incorrect values or it can't be resolved.
-
getPreset
Returns selected preset configuration as it's defined by this configuration.- Returns:
- the configured value for this option or
nullif the value hasn't been defined. - Throws:
DataAccessException- in case the option cannot be read or accessed.IllegalPropertyException- in case the option has been defined but has incorrect values or it can't be resolved.
-
getReleaseAssets
Returns the release assets configuration section.- Returns:
- the release assets configuration section. Never
null. - Throws:
DataAccessException- in case the option cannot be read or accessed.IllegalPropertyException- in case the option has been defined but has incorrect values or it can't be resolved.
-
getReleaseLenient
Returns the flag that enables tolerance in reading release names with arbitrary prefixes or extra non critical characters as it's defined by this configuration.- Returns:
- the configured value for this option or
nullif the value hasn't been defined. - Throws:
DataAccessException- in case the option cannot be read or accessed.IllegalPropertyException- in case the option has been defined but has incorrect values or it can't be resolved.
-
getReleasePrefix
Returns the prefix to use in release name generation as it's defined by this configuration.- Returns:
- the configured value for this option or
nullif the value hasn't been defined. - Throws:
DataAccessException- in case the option cannot be read or accessed.IllegalPropertyException- in case the option has been defined but has incorrect values or it can't be resolved.
-
getReleaseTypes
Returns the release types configuration section.- Returns:
- the release types configuration section. Never
null. - Throws:
DataAccessException- in case the option cannot be read or accessed.IllegalPropertyException- in case the option has been defined but has incorrect values or it can't be resolved.
-
getResume
Returns the value of the resume flag as it's defined by this configuration.- Returns:
- the configured value for this option or
nullif the value hasn't been defined. - Throws:
DataAccessException- in case the option cannot be read or accessed.IllegalPropertyException- in case the option has been defined but has incorrect values or it can't be resolved.
-
getScheme
Returns the versioning scheme to use as it's defined by this configuration.- Returns:
- the configured value for this option or
nullif the value hasn't been defined. - Throws:
DataAccessException- in case the option cannot be read or accessed.IllegalPropertyException- in case the option has been defined but has incorrect values or it can't be resolved.
-
getServices
Returns the services configuration section.- Returns:
- the services configuration section. Never
null. - Throws:
DataAccessException- in case the option cannot be read or accessed.IllegalPropertyException- in case the option has been defined but has incorrect values or it can't be resolved.
-
getStateFile
Returns the path to the file where the NyxStatemust be saved as it's defined by this configuration.- Returns:
- the configured value for this option or
nullif the value hasn't been defined. - Throws:
DataAccessException- in case the option cannot be read or accessed.IllegalPropertyException- in case the option has been defined but has incorrect values or it can't be resolved.
-
getSubstitutions
Returns the substitutions configuration section.- Returns:
- the substitutions configuration section. Never
null. - Throws:
DataAccessException- in case the option cannot be read or accessed.IllegalPropertyException- in case the option has been defined but has incorrect values or it can't be resolved.
-
getSummary
Returns the value of the summary flag as it's defined by this configuration.- Returns:
- the configured value for this option or
nullif the value hasn't been defined. - Throws:
DataAccessException- in case the option cannot be read or accessed.IllegalPropertyException- in case the option has been defined but has incorrect values or it can't be resolved.
-
getSummaryFile
Returns the path to the file where the Nyx summary must be saved as it's defined by this configuration.- Returns:
- the configured value for this option or
nullif the value hasn't been defined. - Throws:
DataAccessException- in case the option cannot be read or accessed.IllegalPropertyException- in case the option has been defined but has incorrect values or it can't be resolved.
-
getVerbosity
Returns the logging verbosity level as it's defined by this configuration. Please note that the verbosity option is actually ignored in this library implementation as the event filtering based on the verbosity needs to be configured outside this library, depending on the logging framework deployed along with SLF4J. See here for more.- Returns:
- the configured value for this option or
nullif the value hasn't been defined. - Throws:
DataAccessException- in case the option cannot be read or accessed.IllegalPropertyException- in case the option has been defined but has incorrect values or it can't be resolved.
-
getVersion
Returns the version defined by this configuration.- Returns:
- the configured value for this option or
nullif the value hasn't been defined. - Throws:
DataAccessException- in case the option cannot be read or accessed.IllegalPropertyException- in case the option has been defined but has incorrect values or it can't be resolved.
-