net.sf.antcontrib.inifile

Class IniProperty

Implemented Interfaces:
IniPart

public class IniProperty
extends java.lang.Object
implements IniPart

A single property in an IniSection.
Author:
Matthew Inger

Constructor Summary

IniProperty()
Default constructor
IniProperty(String name, String value)
Construct an IniProperty with a certain name and value

Method Summary

String
getName()
Gets the name of the property
String
getValue()
Gets the value of the property
void
setName(String name)
Sets the name of the property
void
setValue(String value)
Sets the value of the property
void
write(Writer writer)
Write this property to a writer object.

Constructor Details

IniProperty

public IniProperty()
Default constructor

IniProperty

public IniProperty(String name,
                   String value)
Construct an IniProperty with a certain name and value
Parameters:
name - The name of the property
value - The property value

Method Details

getName

public String getName()
Gets the name of the property

getValue

public String getValue()
Gets the value of the property

setName

public void setName(String name)
Sets the name of the property
Parameters:
name - The name of the property

setValue

public void setValue(String value)
Sets the value of the property
Parameters:
value - the value of the property

write

public void write(Writer writer)
            throws IOException
Write this property to a writer object.
Specified by:
write in interface IniPart
Parameters:
writer -