Class Section

java.lang.Object
br.net.dd.netherwingcore.common.configuration.structs.Section

public class Section extends Object
Represents a configuration section that holds a description and a collection of groups. This class provides a structure for grouping configuration-related data together and organizing it hierarchically.
  • Constructor Details

    • Section

      public Section(Description description)
      Constructs a new Section with the specified description.
      Parameters:
      description - The description of the section.
  • Method Details

    • addGroup

      public Section addGroup(Group group)
      Adds a new group to this section.
      Parameters:
      group - The group to add.
      Returns:
      The current Section instance, for method chaining.
    • getDescription

      public Description getDescription()
      Gets the description of this section.
      Returns:
      The description of the section.
    • getGroups

      public List<Group> getGroups()
      Gets the list of groups associated with this section.
      Returns:
      The list of groups.