public class JSONOptions extends AbstractLockable<JSONOptions>
Modifier and Type | Field and Description |
---|---|
private DbControl |
dc |
static JSONOptions |
DEFAULT
Use default options.
|
private Set<JSONOption> |
options |
Constructor and Description |
---|
JSONOptions()
Create a new options instance.
|
JSONOptions(DbControl dc)
Create a new options instance with the possibility
to access the BASE database.
|
Modifier and Type | Method and Description |
---|---|
void |
disable(JSONOption option)
Disable the given option.
|
void |
enable(JSONOption option)
Enable the given option.
|
DbControl |
getDbControl()
Get a DbControl which can be used to retreive
information from the BASE database.
|
boolean |
isEnabled(JSONOption option)
Checks if the given option has been enabled.
|
checkLocked, checkValid, isLocked, isValid, lock
public static final JSONOptions DEFAULT
private final DbControl dc
private final Set<JSONOption> options
public JSONOptions()
public JSONOptions(DbControl dc)
public DbControl getDbControl()
public boolean isEnabled(JSONOption option)
public void enable(JSONOption option)
IllegalStateException
- If this instance has been lockedpublic void disable(JSONOption option)
IllegalStateException
- If this instance has been locked