T - the type of the valuepublic abstract class AbstractSettingDefinition<T> extends AbstractOrdered implements SettingDefinition<T>, Serializable
SettingDefinition.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSettingDefinition(SettingType type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
T |
getDefaultValue() |
String |
getDescription() |
SettingDefinitionGroup |
getGroup() |
String |
getKey() |
protected String |
getSuborder() |
String |
getTitle() |
SettingType |
getType() |
boolean |
hasDefaultValue() |
boolean |
hasDescription() |
boolean |
hasGroup() |
int |
hashCode() |
protected boolean |
hasStringProperty(String s) |
boolean |
hasTitle() |
boolean |
isOptional() |
AbstractSettingDefinition<T> |
setDefaultValue(T d)
Sets the default value of this setting.
|
AbstractSettingDefinition<T> |
setDescription(String d)
Sets the description of this setting definition, which should further describe the purpose of this setting.
|
AbstractSettingDefinition<T> |
setGroup(SettingDefinitionGroup g)
Sets the group of this definition.
|
AbstractSettingDefinition<T> |
setKey(String k)
Sets the unique identifier of this setting definition, which can be referenced by configurable classes.
|
AbstractSettingDefinition<T> |
setOptional(boolean o)
Sets whether this setting is optional or can be null.
|
AbstractSettingDefinition<T> |
setTitle(String t)
Sets the title of this setting definition, which will be presented to the user.
|
(package private) AbstractSettingDefinition<T> |
setType(SettingType type) |
String |
toString() |
compareTo, getOrder, setOrderclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetGroup, getOptionalDefaultValuecompareToprotected AbstractSettingDefinition(SettingType type)
type - the SettingType of this setting definitionpublic String getKey()
getKey in interface SettingDefinition<T>public AbstractSettingDefinition<T> setKey(String k)
SettingDefinitionsetKey in interface SettingDefinition<T>k - the unique keypublic String getDescription()
getDescription in interface SettingDefinition<T>public AbstractSettingDefinition<T> setDescription(String d)
SettingDefinitionsetDescription in interface SettingDefinition<T>d - the descriptionpublic boolean hasDescription()
hasDescription in interface SettingDefinition<T>public String getTitle()
getTitle in interface SettingDefinition<T>public AbstractSettingDefinition<T> setTitle(String t)
SettingDefinitionsetTitle in interface SettingDefinition<T>t - the titlepublic boolean hasTitle()
hasTitle in interface SettingDefinition<T>public boolean isOptional()
isOptional in interface SettingDefinition<T>public AbstractSettingDefinition<T> setOptional(boolean o)
SettingDefinitionsetOptional in interface SettingDefinition<T>o - if this setting is optionalpublic SettingDefinitionGroup getGroup()
getGroup in interface SettingDefinition<T>public AbstractSettingDefinition<T> setGroup(SettingDefinitionGroup g)
SettingDefinitionsetGroup in interface SettingDefinition<T>g - the grouppublic boolean hasGroup()
hasGroup in interface SettingDefinition<T>public T getDefaultValue()
getDefaultValue in interface SettingDefinition<T>public AbstractSettingDefinition<T> setDefaultValue(T d)
SettingDefinitionsetDefaultValue in interface SettingDefinition<T>d - the default valuepublic boolean hasDefaultValue()
hasDefaultValue in interface SettingDefinition<T>protected boolean hasStringProperty(String s)
public int hashCode()
hashCode in class AbstractOrderedpublic boolean equals(Object obj)
equals in class AbstractOrderedpublic SettingType getType()
getType in interface SettingDefinition<T>AbstractSettingDefinition<T> setType(SettingType type)
protected String getSuborder()
getSuborder in class AbstractOrderedCopyright © 2015–2021 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.