T - The type of the valuepublic interface SettingDefinition<T> extends Ordered, Serializable
| Modifier and Type | Method and Description |
|---|---|
T |
getDefaultValue() |
String |
getDescription() |
SettingDefinitionGroup |
getGroup() |
default SettingDefinitionGroup |
getGroup(SettingDefinitionGroup defaultGroup) |
String |
getKey() |
default Optional<T> |
getOptionalDefaultValue() |
String |
getTitle() |
SettingType |
getType() |
boolean |
hasDefaultValue() |
boolean |
hasDescription() |
boolean |
hasGroup() |
boolean |
hasTitle() |
boolean |
isOptional() |
SettingDefinition<?> |
setDefaultValue(T defaultValue)
Sets the default value of this setting.
|
SettingDefinition<?> |
setDescription(String description)
Sets the description of this setting definition, which should further describe the purpose of this setting.
|
SettingDefinition<?> |
setGroup(SettingDefinitionGroup group)
Sets the group of this definition.
|
SettingDefinition<?> |
setKey(String key)
Sets the unique identifier of this setting definition, which can be referenced by configurable classes.
|
SettingDefinition<?> |
setOptional(boolean optional)
Sets whether this setting is optional or can be null.
|
SettingDefinition<?> |
setTitle(String title)
Sets the title of this setting definition, which will be presented to the user.
|
compareToString getKey()
String getTitle()
String getDescription()
boolean isOptional()
T getDefaultValue()
SettingDefinitionGroup getGroup()
default SettingDefinitionGroup getGroup(SettingDefinitionGroup defaultGroup)
boolean hasTitle()
boolean hasDescription()
boolean hasDefaultValue()
boolean hasGroup()
SettingDefinition<?> setKey(String key)
key - the unique keySettingDefinition<?> setTitle(String title)
title - the titleSettingDefinition<?> setDescription(String description)
description - the descriptionSettingDefinition<?> setOptional(boolean optional)
optional - if this setting is optionalSettingDefinition<?> setDefaultValue(T defaultValue)
defaultValue - the default valueSettingDefinition<?> setGroup(SettingDefinitionGroup group)
group - the groupSettingType getType()
Copyright © 2015–2021 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.