Class ApacheOption

java.lang.Object
   |
   +----ApacheOption

public class ApacheOption
extends Object
Each ApacheOption object corresponds to an option file in the options directory

Author:
Patrice Bensoussan, Thierry Bensoussan

Constructor Index

 o ApacheOption(String)
The constructor build an ApacheOption by parsing the corresponding file.

Method Index

 o apply(String)
Generate configuration files in the dir directory
 o getIFComponent()
 o init()
Initialize the option with its default state
 o load(BufferedReader)
Load a configuration for this options
 o removeFiles(String)
remove all the files generated by this option
 o save(PrintWriter)
Save the configuration of this options

Constructors

 o ApacheOption
 public ApacheOption(String filename) throws ParsingException
The constructor build an ApacheOption by parsing the corresponding file.

Parameters:
filename - the name of an options file
Throws: ParsingException
if an error occures during the parsing of the option file.

Methods

 o getIFComponent
 public IFComponent getIFComponent()
Returns:
the JPanel corresponding to this option
 o apply
 public void apply(String dir)
Generate configuration files in the dir directory

Parameters:
dir - directory used to generate config files
 o init
 public void init()
Initialize the option with its default state

 o load
 public void load(BufferedReader in)
Load a configuration for this options

 o save
 public void save(PrintWriter out)
Save the configuration of this options

 o removeFiles
 public void removeFiles(String dir)
remove all the files generated by this option