public class Options extends Object
Constructor and Description |
---|
Options() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkOption() |
static String |
getDefault(String token)
Get default property.
|
static int |
getIntOption(String token)
Returns the mapped option integer value or 0 if the option is
undefined.
|
static String |
getOption(String token)
Returns the mapped option string value or empty string if the option is
undefined.
|
static String |
getProperty(String token)
Elementary property function.
|
static void |
init()
Initializes this service with attempting to load the parameter file.
|
static boolean |
isOptionSet(String token)
Whether the specified (boolean) option is set to "true".
|
static void |
reset()
Reset preferences.
|
static void |
save()
Saves the actual content of the options db to persistent file.
|
static void |
setIntOption(String token,
int value)
Sets an integer value for the parameter option name.
|
static void |
setOption(String token,
boolean value)
Sets a boolean value for the parameter option name.
|
static void |
setOption(String token,
String value)
Sets a string value for the parameter option name.
|
static void |
setProperty(String token,
String value)
Elementary property function.
|
public static void init()
file
- specifies the JPWS options file to load;
may be nullpublic static void save()
public static void setProperty(String token, String value)
public static boolean isOptionSet(String token)
public static void setOption(String token, boolean value)
token
- the option namevalue
- assigned boolean valuepublic static void setOption(String token, String value)
token
- the option namevalue
- assigned string value, may be null to clearpublic static String getOption(String token)
token
- the option namepublic static int getIntOption(String token)
token
- the option namepublic static void reset()
public static void setIntOption(String token, int value)
token
- the option namevalue
- assigned int valuepublic static boolean checkOption()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics