net.sf.antcontrib.inifile

Class IniProperty

public class IniProperty extends 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
StringgetName()
Gets the name of the property
StringgetValue()
Gets the value of the property
voidsetName(String name)
Sets the name of the property
voidsetValue(String value)
Sets the value of the property
voidwrite(Writer writer)
Write this property to a writer object.

Constructor Detail

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 Detail

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)
Write this property to a writer object.

Parameters: writer

Throws: IOException