Package sonia.scm.io

Class INIConfiguration

java.lang.Object
sonia.scm.io.INIConfiguration

public class INIConfiguration extends Object
Configuration in the ini format. The format consists of sections, keys and values.
See Also:
  • Constructor Details

    • INIConfiguration

      public INIConfiguration()
  • Method Details

    • addSection

      public void addSection(INISection section)
      Add a new section to the configuration.
    • removeSection

      public void removeSection(String name)
      Remove an existing section from the configuration.
    • getSection

      @Nullable public INISection getSection(String name)
      Returns a section by its name or null if the section does not exists.
      Parameters:
      name - name of the section
      Returns:
      section or null
    • getSections

      public Collection<INISection> getSections()
      Returns all sections of the configuration.