Package | Description |
---|---|
fmpp.localdatabuilders |
fmpp.LocalDataBuilder implementations. |
fmpp.setting |
FMPP settings.
|
Modifier and Type | Method and Description |
---|---|
static BshLocalDataBuilder |
BshLocalDataBuilder.createInstanceForSetting(String fName,
List params) |
Modifier and Type | Method and Description |
---|---|
void |
Settings.add(Map settingMap)
Adds all name-value pairs stored in the map with
Settings.add(String, Object) . |
void |
Settings.add(String name,
Object value)
Adds a setting value.
|
void |
Settings.addDefault(String name,
Object value)
Adds a setting value with low priority.
|
void |
Settings.addDefaults(Map settingMap)
Adds all entries stored in the map with
Settings.addDefault(String, Object) . |
void |
Settings.addDefaultsWithStrings(Properties props)
Same as
Settings.addDefaults(Map) , but uses a Properties
object, so the values are strings. |
void |
Settings.addDefaultWithString(String name,
String value)
Same as
Settings.addDefault(String, Object) , but uses string value. |
void |
Settings.addWithString(String name,
String value)
Same as
Settings.add(String, Object) , but uses string value. |
void |
Settings.addWithStrings(Properties props)
Same as
Settings.add(Map) , but uses a Properties object,
so the values are strings. |
void |
Settings.define(String name,
fmpp.setting.Settings.SettingType type,
boolean merge,
boolean forceStr)
Defines a new setting.
|
protected void |
Settings.doProcessing(Engine eng,
File[] sources,
File sourceFile,
File outputFile)
Executes the processing session(s) on the
Engine level,
using the already initialized Engine object. |
void |
Settings.execute()
Executes a processing session based on the setting values.
|
static void |
Settings.fixVersion08SettingNames(Properties props)
Backward compatibility hack: renames properties that use
pre-FMPP 0.9.0 names of settings.
|
void |
Settings.load(File cfgFile)
Loads settings from a configuration file.
|
void |
Settings.loadDefaults(File cfgFile)
Same as
load , except that it adds the settings with
Settings.addDefaults(Map) . |
static int |
Settings.quietSettingValueToInt(String value,
String name)
Returns 0 for verbose mode, 1 for quiet mode, 2 for really-quiet mode.
|
void |
Settings.set(Map settingMap)
Sets all name-value pairs stored in the map with
Settings.set(String, Object) . |
void |
Settings.set(String name,
boolean value)
Convenience method for setting a
Boolean value. |
void |
Settings.set(String name,
int value)
Convenience method for setting an
Integer value. |
void |
Settings.set(String name,
Object value)
Sets the value of a setting.
|
void |
Settings.setDefault(String name,
boolean value)
Convenience method for setting a
Boolean value. |
void |
Settings.setDefault(String name,
int value)
Convenience method for setting an
Integer value. |
void |
Settings.setDefault(String name,
Object value)
Sets the value of a setting if the value doesn't exists yet.
|
void |
Settings.setDefaults(Map settingMap)
Sets all name-value pairs stored in the map with
Settings.setDefault(String, Object) . |
void |
Settings.setDefaultsWithStrings(Properties props)
Same as
Settings.setDefaults(Map) , but uses a Properties
object, so the values are strings. |
void |
Settings.setDefaultWithString(String name,
String value)
Same as
Settings.setDefault(String, Object) , but uses string value. |
void |
Settings.setWithString(String name,
String value)
Same as
Settings.set(String, Object) , but uses string value. |
void |
Settings.setWithStrings(Properties props)
Same as
Settings.set(Map) , but uses a Properties object,
so the values are strings. |
void |
Settings.undashNames(Properties props)
Converts legacy dashed setting names to the standard format, as
source-root to sourceRoot . |
Constructor and Description |
---|
Settings(File baseDir)
Creates a new instance.
|