Class SimpleConfigurationLayer
java.lang.Object
com.mooltiverse.oss.nyx.configuration.SimpleConfigurationLayer
- All Implemented Interfaces:
ConfigurationLayer,ConfigurationRoot
A simple configuration layer, acting as a value holder for configuration options. This object allows read/write operations.
-
Constructor Summary
Constructors -
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.voidSets the value for this option.voidsetChangelog(ChangelogConfiguration changelog) Sets the value for this option.voidsetCommitMessageConventions(CommitMessageConventions commitMessageConventions) Sets the value for this option.voidsetConfigurationFile(String configurationFile) Sets the value for this option.voidsetDirectory(String directory) Sets the value for this option.voidSets the value for this option.voidsetGit(GitConfiguration git) Sets the value for this option.voidsetInitialVersion(String initialVersion) Sets the value for this option.voidSets the value for this option.voidsetReleaseAssets(Map<String, Attachment> releaseAssets) Sets the value for this option.voidsetReleaseLenient(Boolean releaseLenient) Sets the value for this option.voidsetReleasePrefix(String releasePrefix) Sets the value for this option.voidsetReleaseTypes(ReleaseTypes releaseTypes) Sets the value for this option.voidSets the value for this option.voidSets the value for this option.voidsetServices(Map<String, ServiceConfiguration> services) Sets the value for this option.voidsetSharedConfigurationFile(String sharedConfigurationFile) Sets the value for this option.voidsetStateFile(String stateFile) Sets the value for this option.voidsetSubstitutions(Substitutions substitutions) Sets the value for this option.voidsetSummary(Boolean summary) Sets the value for this option.voidsetSummaryFile(String summaryFile) Sets the value for this option.voidsetVerbosity(Verbosity verbosity) Sets the value for this option.voidsetVersion(String version) Sets the value for this option.
-
Constructor Details
-
SimpleConfigurationLayer
public SimpleConfigurationLayer()Default constructor.
-
-
Method Details
-
getBump
Returns the version identifier to bump as it's defined by this configuration.- Specified by:
getBumpin interfaceConfigurationRoot- Returns:
- the configured value for this option or
nullif the value hasn't been defined.
-
setBump
Sets the value for this option.- Parameters:
bump- the value for this option.
-
getChangelog
Returns the changelog configuration section.- Specified by:
getChangelogin interfaceConfigurationRoot- Returns:
- the changelog configuration section. Never
null.
-
setChangelog
Sets the value for this option.- Parameters:
changelog- the value for this option.
-
getCommitMessageConventions
Returns the commit message convention configuration section.- Specified by:
getCommitMessageConventionsin interfaceConfigurationRoot- Returns:
- the commit message convention configuration section. Never
null.
-
setCommitMessageConventions
Sets the value for this option.- Parameters:
commitMessageConventions- the value for this option.
-
getConfigurationFile
Returns the path to a custom configuration file as it's defined by this configuration.- Specified by:
getConfigurationFilein interfaceConfigurationRoot- Returns:
- the configured value for this option or
nullif the value hasn't been defined.
-
setConfigurationFile
Sets the value for this option.- Parameters:
configurationFile- the value for this option.
-
getDirectory
Returns the directory to use as the working directory as it's defined by this configuration.- Specified by:
getDirectoryin interfaceConfigurationRoot- Returns:
- the configured value for this option or
nullif the value hasn't been defined. - See Also:
-
setDirectory
Sets the value for this option.- Parameters:
directory- the value for this option.
-
getDryRun
Returns the value of the dry run flag as it's defined by this configuration.- Specified by:
getDryRunin interfaceConfigurationRoot- Returns:
- the configured value for this option or
nullif the value hasn't been defined.
-
setDryRun
Sets the value for this option.- Parameters:
dryRun- the value for this option.
-
getGit
Returns the Git configuration section.- Specified by:
getGitin interfaceConfigurationRoot- Returns:
- the Git configuration section. Never
null.
-
setGit
Sets the value for this option.- Parameters:
git- the value for this option.
-
getInitialVersion
Returns the initial version defined by this configuration to use when no past version is available in the commit history.- Specified by:
getInitialVersionin interfaceConfigurationRoot- Returns:
- the configured value for this option or
nullif the value hasn't been defined.
-
setInitialVersion
Sets the value for this option.- Parameters:
initialVersion- the value for this option.
-
getPreset
Returns selected preset configuration as it's defined by this configuration.- Specified by:
getPresetin interfaceConfigurationRoot- Returns:
- the configured value for this option or
nullif the value hasn't been defined.
-
setPreset
Sets the value for this option.- Parameters:
preset- the value for this option.
-
getReleaseAssets
Returns the release assets configuration section.- Specified by:
getReleaseAssetsin interfaceConfigurationRoot- Returns:
- the release assets configuration section. Never
null.
-
setReleaseAssets
Sets the value for this option.- Parameters:
releaseAssets- the value for this option.
-
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.- Specified by:
getReleaseLenientin interfaceConfigurationRoot- Returns:
- the configured value for this option or
nullif the value hasn't been defined.
-
setReleaseLenient
Sets the value for this option.- Parameters:
releaseLenient- the value for this option.
-
getReleasePrefix
Returns the prefix to use in release name generation as it's defined by this configuration.- Specified by:
getReleasePrefixin interfaceConfigurationRoot- Returns:
- the configured value for this option or
nullif the value hasn't been defined.
-
setReleasePrefix
Sets the value for this option.- Parameters:
releasePrefix- the value for this option.
-
getReleaseTypes
Returns the release types configuration section.- Specified by:
getReleaseTypesin interfaceConfigurationRoot- Returns:
- the release types configuration section. Never
null.
-
setReleaseTypes
Sets the value for this option.- Parameters:
releaseTypes- the value for this option.
-
getResume
Returns the value of the resume flag as it's defined by this configuration.- Specified by:
getResumein interfaceConfigurationRoot- Returns:
- the configured value for this option or
nullif the value hasn't been defined.
-
setResume
Sets the value for this option.- Parameters:
resume- the value for this option.
-
getScheme
Returns the versioning scheme to use as it's defined by this configuration.- Specified by:
getSchemein interfaceConfigurationRoot- Returns:
- the configured value for this option or
nullif the value hasn't been defined.
-
setScheme
Sets the value for this option.- Parameters:
scheme- the value for this option.
-
getServices
Returns the services configuration section.- Specified by:
getServicesin interfaceConfigurationRoot- Returns:
- the services configuration section. Never
null.
-
setServices
Sets the value for this option.- Parameters:
services- the value for this option.
-
getStateFile
Returns the path to the file where the NyxStatemust be saved as it's defined by this configuration.- Specified by:
getStateFilein interfaceConfigurationRoot- Returns:
- the configured value for this option or
nullif the value hasn't been defined.
-
setStateFile
Sets the value for this option.- Parameters:
stateFile- the value for this option.
-
getSubstitutions
Returns the substitutions configuration section.- Specified by:
getSubstitutionsin interfaceConfigurationRoot- Returns:
- the substitutions configuration section. Never
null.
-
setSubstitutions
Sets the value for this option.- Parameters:
substitutions- the value for this option.
-
getSummary
Returns the value of the summary flag as it's defined by this configuration.- Specified by:
getSummaryin interfaceConfigurationRoot- Returns:
- the configured value for this option or
nullif the value hasn't been defined.
-
setSummary
Sets the value for this option.- Parameters:
summary- the value for this option.
-
getSummaryFile
Returns the path to the file where the Nyx summary must be saved as it's defined by this configuration.- Specified by:
getSummaryFilein interfaceConfigurationRoot- Returns:
- the configured value for this option or
nullif the value hasn't been defined.
-
setSummaryFile
Sets the value for this option.- Parameters:
summaryFile- the value for this option.
-
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.- Specified by:
getVerbosityin interfaceConfigurationRoot- Returns:
- the configured value for this option or
nullif the value hasn't been defined.
-
setVerbosity
Sets the value for this option.- Parameters:
verbosity- the value for this option.
-
getVersion
Returns the version defined by this configuration.- Specified by:
getVersionin interfaceConfigurationRoot- Returns:
- the configured value for this option or
nullif the value hasn't been defined.
-
setVersion
Sets the value for this option.- Parameters:
version- the value for this option.
-