Class Group

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

public class Group extends Object
Represents a group of configuration elements in the system. A group can contain a collection of Item objects and a collection of Field objects. This class provides methods to add items and fields to the group as well as retrieve them.
  • Constructor Details

    • Group

      public Group()
      Constructs an empty group with no items or fields. Initializes the lists to hold items and fields.
  • Method Details

    • addField

      public Group addField(Field field)
      Adds a field to the group.
      Parameters:
      field - the Field to be added
      Returns:
      the updated Group instance
    • addItem

      public Group addItem(Item item)
      Adds an item to the group.
      Parameters:
      item - the Item to be added
      Returns:
      the updated Group instance
    • getItems

      public List<Item> getItems()
      Retrieves the list of items associated with the group.
      Returns:
      a List of Item objects
    • getFields

      public List<Field> getFields()
      Retrieves the list of fields associated with the group.
      Returns:
      a List of Field objects