IniPart
public class IniSection extends java.lang.Object implements IniPart
Constructor | Description |
---|---|
IniSection() |
Default contructor, constructs an IniSectino with no name
|
IniSection(java.lang.String name) |
Constructs an IniSection with the given name
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getName() |
Gets the name of the section
|
java.util.List |
getProperties() |
Gets a list of all properties in this section
|
IniProperty |
getProperty(java.lang.String name) |
Gets the property with the given name
|
void |
removeProperty(java.lang.String name) |
Removes a property from this ection
|
void |
setName(java.lang.String name) |
Sets the name of the section
|
void |
setProperty(IniProperty property) |
Sets a property, replacing the old value, if necessary.
|
void |
write(java.io.Writer writer) |
Write this part of the IniFile to a writer
|
public IniSection()
public IniSection(java.lang.String name)
name
- The name of the sectionpublic java.util.List getProperties()
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name of the sectionpublic IniProperty getProperty(java.lang.String name)
name
- The name of the propertypublic void setProperty(IniProperty property)
property
- The property to setpublic void removeProperty(java.lang.String name)
name
- The name of the property to remove