tom.platform
Interface OptionManager


public interface OptionManager

Manage the list of option of different plugin but also global option declared in xml configfile


Method Summary
 List<String> getInputToCompileList()
          The Option manager is the only able to extract the input file name list in the list of argument.
 Object getOptionValue(String optionName)
          Get the option 'name' valus
 int initialize(ConfigurationManager confManager, String[] commandLine)
          An optionManager can be initialized with the intermediate of a ConfigurationManager and a commandLine string
 void setGlobalOptionList(tom.platform.adt.platformoption.types.PlatformOptionList optionList)
          set the global PlatformOptionList
 void setOptionValue(String name, Object value)
          Set the option 'name' to the corresponding value
 

Method Detail

initialize

int initialize(ConfigurationManager confManager,
               String[] commandLine)
An optionManager can be initialized with the intermediate of a ConfigurationManager and a commandLine string

Returns:
an error code :
  • 0 if no error was encountered
  • 1 if something went wrong

setGlobalOptionList

void setGlobalOptionList(tom.platform.adt.platformoption.types.PlatformOptionList optionList)
set the global PlatformOptionList


getInputToCompileList

List<String> getInputToCompileList()
The Option manager is the only able to extract the input file name list in the list of argument. The computation is done during initialization It has to convert them in the expected format for the first plugin


setOptionValue

void setOptionValue(String name,
                    Object value)
Set the option 'name' to the corresponding value

Parameters:
name - the option's name
value - the option's value

getOptionValue

Object getOptionValue(String optionName)
Get the option 'name' valus

Parameters:
optionName - the option's name
Returns:
the option's value as an Object