Package sonia.scm.io
Class INISection
java.lang.Object
sonia.scm.io.INISection
A section of
INIConfiguration
.
The section consists of keys and values.-
Constructor Summary
ConstructorsConstructorDescriptionINISection
(String name) Constructs a new empty section with the given name.INISection
(String name, Map<String, String> initialParameters) Constructs a new section with the given name and parameters. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns the name of the section.getParameter
(String key) Returns the value of the parameter with the given key ornull
if the given parameter does not exist.Returns all parameter keys of the section.void
removeParameter
(String key) Remove parameter with the given name from the section.void
setParameter
(String key, String value) Sets the parameter with the given key to the given value.toString()
-
Constructor Details
-
INISection
Constructs a new empty section with the given name.- Parameters:
name
- name of the section
-
INISection
Constructs a new section with the given name and parameters.- Parameters:
name
- name of the sectioninitialParameters
- initial parameter
-
-
Method Details
-
getName
Returns the name of the section. -
getParameter
Returns the value of the parameter with the given key ornull
if the given parameter does not exist. -
getParameterKeys
Returns all parameter keys of the section. -
setParameter
Sets the parameter with the given key to the given value. -
removeParameter
Remove parameter with the given name from the section. -
toString
-