Class CommitMessageConventions

java.lang.Object
com.mooltiverse.oss.nyx.entities.CommitMessageConventions

public class CommitMessageConventions extends Object
A value holder that models a section containing a map of commit message conventions.
  • Constructor Details

    • CommitMessageConventions

      public CommitMessageConventions()
      Default constructor. Constructs a new object with no items.
    • CommitMessageConventions

      public CommitMessageConventions(List<String> enabled, Map<String,CommitMessageConvention> items)
      Standard constructor. Constructs a new object with the given items.
      Parameters:
      enabled - the list of names of enabled items
      items - the map of items
      Throws:
      NullPointerException - if some argument is null
  • Method Details

    • getEnabled

      public List<String> getEnabled()
      Returns the list of enabled items.
      Returns:
      the list of enabled items. It may be empty but not null if not configured.
    • getItems

      public Map<String,CommitMessageConvention> getItems()
      Returns the map of the items configured in this section, where keys are item names and values are actual item objects.
      Returns:
      the map of the items configured in this section, where keys are item names and values are actual item objects. It may be empty but not null if not configured.