|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.antcontrib.inifile.IniSection
public class IniSection
A section within an IniFile.
Constructor Summary | |
---|---|
IniSection()
Default contructor, constructs an IniSectino with no name |
|
IniSection(java.lang.String name)
Constructs an IniSection with the given name |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IniSection()
public IniSection(java.lang.String name)
name
- The name of the sectionMethod Detail |
---|
public 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 removepublic void write(java.io.Writer writer) throws java.io.IOException
IniPart
write
in interface IniPart
writer
- The writer to write to
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |