public class CleanUpOptions extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FALSE
False value
|
static String |
TRUE
True value
|
| Modifier | Constructor and Description |
|---|---|
|
CleanUpOptions()
Creates a new instance.
|
protected |
CleanUpOptions(Map<String,String> options)
Creates a new CleanUpOptions instance with the given options.
|
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getKeys()
Returns an unmodifiable set of all known keys.
|
String |
getValue(String key)
Returns the value for the given key.
|
boolean |
isEnabled(String key)
Tells whether the option with the given
key is enabled. |
void |
setOption(String key,
String value)
Sets the option for the given key to the given value.
|
public static final String TRUE
public static final String FALSE
protected CleanUpOptions(Map<String,String> options)
options - map that maps clean ups keys (String) to a non-null
string valuepublic CleanUpOptions()
public boolean isEnabled(String key)
key is enabled.key - the name of the optiontrue if enabled, false if not enabled or unknown keyIllegalArgumentException - if the key is nullCleanUpConstantspublic String getValue(String key)
key - the key of the valueIllegalArgumentException - if the key is null or unknownpublic void setOption(String key, String value)
key - the name of the option to setvalue - the value of the optionIllegalArgumentException - if the key is nullTRUE,
FALSE
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.