Class SimpleConfigurationLayer.SimpleCommitMessageConventions
- java.lang.Object
-
- com.mooltiverse.oss.nyx.configuration.SimpleConfigurationLayer.SimpleCommitMessageConventions
-
- All Implemented Interfaces:
Block,CommitMessageConventions,MapConfigurationBlock<CommitMessageConvention>
- Enclosing class:
- SimpleConfigurationLayer
public static class SimpleConfigurationLayer.SimpleCommitMessageConventions extends Object implements CommitMessageConventions
The value holder for commit message conventions.
-
-
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 items.CommitMessageConventiongetItem(String name)Returns the item with the given name configured in this block, if any.Map<String,CommitMessageConvention>getItems()Returns the map of the items configured in this block, where keys are item names and values are actual item 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 items.- Specified by:
getEnabledin interfaceMapConfigurationBlock<CommitMessageConvention>- Returns:
- the list of enabled items. 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 items configured in this block, where keys are item names and values are actual item objects.- Specified by:
getItemsin interfaceMapConfigurationBlock<CommitMessageConvention>- Returns:
- the map of the items configured in this block, where keys are item names
and values are actual item objects. It may be empty but not
nullif not configured.
-
getItem
public CommitMessageConvention getItem(String name)
Returns the item with the given name configured in this block, if any.- Specified by:
getItemin interfaceMapConfigurationBlock<CommitMessageConvention>- 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.
-
-