public class ConfigOptions
extends java.lang.Object
| Constructor and Description |
|---|
ConfigOptions() |
| Modifier and Type | Method and Description |
|---|---|
ConfigOptions |
setAddMissingOptions(boolean value)
Set if missing options should be added to the config.
|
ConfigOptions |
setClassAccessFactory(ClassAccessFactory classAccessFactory)
Set the factory for the
ClassAccess instances. |
ConfigOptions |
setCommentSpacing(int value)
Set the spacing between the comment start and the comment text.
|
ConfigOptions |
setNotReloadableComment(boolean value)
Automatically add a comment to options that are marked with
NotReloadable. |
ConfigOptions |
setRemoveUnknownOptions(boolean value)
Set if unknown options should be removed from the config.
|
ConfigOptions |
setResetInvalidOptions(boolean value)
Set if invalid options should be reset to their default value.
|
ConfigOptions |
setRewriteConfig(boolean value)
Set if the config should be rewritten when loading it.
|
ConfigOptions |
setSpaceBetweenOptions(boolean value)
Set if there should be an empty line between each option.
|
public ConfigOptions setResetInvalidOptions(boolean value)
falsevalue - The new valuepublic ConfigOptions setRemoveUnknownOptions(boolean value)
truevalue - The new valuepublic ConfigOptions setAddMissingOptions(boolean value)
truevalue - The new valuepublic ConfigOptions setCommentSpacing(int value)
0value - The new valuepublic ConfigOptions setRewriteConfig(boolean value)
falsevalue - The new valuepublic ConfigOptions setSpaceBetweenOptions(boolean value)
truevalue - The new valuepublic ConfigOptions setNotReloadableComment(boolean value)
value - The new valuepublic ConfigOptions setClassAccessFactory(ClassAccessFactory classAccessFactory)
classAccessFactory - The new factory