Package dev.boze.api.option
Class ParentOption
- All Implemented Interfaces:
Serializable<Boolean>
- Direct Known Subclasses:
PageOption
An option that serves as a parent container for other options
ParentOption provides a way to group related options together
It doesn't store a meaningful value itself, but serves as a container for child options
-
Field Summary
Fields inherited from class dev.boze.api.option.Option
description, name, owner -
Constructor Summary
ConstructorsConstructorDescriptionParentOption(BaseModule owner, String name, String description) Creates a new parent optionParentOption(BaseModule owner, String name, String description, Option<?> parent) Creates a new parent option with a parent -
Method Summary
Methods inherited from class dev.boze.api.option.Option
getFullName, getParent, isParent, setParent
-
Constructor Details
-
ParentOption
Creates a new parent option- Parameters:
owner- The module that owns this optionname- The name of this optiondescription- The description of this option
-
ParentOption
Creates a new parent option with a parent- Parameters:
owner- The module that owns this optionname- The name of this optiondescription- The description of this optionparent- The parent option
-
-
Method Details
-
getValue
Description copied from class:OptionGets the current value of this option -
setValue
Description copied from class:OptionSets the value of this option -
reset
Description copied from class:OptionResets this option to its default value -
toJson
public com.google.gson.JsonObject toJson()- Returns:
- The object as a JsonObject
-
fromJson
- Parameters:
object- The JsonObject to deserialize- Returns:
- The deserialized object
-