Class SimpleConfigurationLayer.SimpleCommitMessageConventions
- java.lang.Object
-
- com.mooltiverse.oss.nyx.configuration.SimpleConfigurationLayer.SimpleCommitMessageConventions
-
- All Implemented Interfaces:
Block,CommitMessageConventions
- Enclosing class:
- SimpleConfigurationLayer
public static class SimpleConfigurationLayer.SimpleCommitMessageConventions extends Object implements CommitMessageConventions
The value holder for commit message convenstions.
-
-
Constructor Summary
Constructors Constructor Description SimpleCommitMessageConventions()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getEnabled()Returns the list of enabled commit message convention names.CommitMessageConventiongetItem(String name)Returns the commit message convention with the given name configured in this block, if any.Map<String,CommitMessageConvention>getItems()Returns the map of the commit message conventions configured in this block, where keys are convention names and values are actual convention objects.voidsetEnabled(List<String> enabled)Sets the value for this option.
-
-
-
Field Detail
-
items
public final Map<String,CommitMessageConvention> items
The value held by this object.
-
-
Method Detail
-
getEnabled
public List<String> getEnabled()
Returns the list of enabled commit message convention names.- Specified by:
getEnabledin interfaceCommitMessageConventions- Returns:
- the list of enabled commit message convention names. It may be
nullif not configured.
-
setEnabled
public void setEnabled(List<String> enabled)
Sets the value for this option.- Parameters:
enabled- the value for this option.
-
getItems
public Map<String,CommitMessageConvention> getItems()
Returns the map of the commit message conventions configured in this block, where keys are convention names and values are actual convention objects.- Specified by:
getItemsin interfaceCommitMessageConventions- Returns:
- the map of the commit message conventions configured in this block, where keys are convention names
and values are actual convention objects. It may be empty but not
nullif not configured.
-
getItem
public CommitMessageConvention getItem(String name)
Returns the commit message convention with the given name configured in this block, if any.- Specified by:
getItemin interfaceCommitMessageConventions- Parameters:
name- the name of the item to retrieve. Cannot benull.- Returns:
- the commit message convention with the given name configured in this block, if any.
It may be
nullif this block has no such item.
-
-