T - the type of the valuepublic abstract class AbstractSettingDefinition<T> extends AbstractOrdered implements SettingDefinition<T>
SettingDefinition.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSettingDefinition(SettingType type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
T |
getDefaultValue() |
java.lang.String |
getDescription() |
SettingDefinitionGroup |
getGroup() |
java.lang.String |
getKey() |
protected java.lang.String |
getSuborder() |
java.lang.String |
getTitle() |
SettingType |
getType() |
boolean |
hasDefaultValue() |
boolean |
hasDescription() |
boolean |
hasGroup() |
int |
hashCode() |
protected boolean |
hasStringProperty(java.lang.String s) |
boolean |
hasTitle() |
boolean |
isOptional() |
AbstractSettingDefinition<T> |
setDefaultValue(T d)
Sets the default value of this setting.
|
AbstractSettingDefinition<T> |
setDescription(java.lang.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(java.lang.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(java.lang.String t)
Sets the title of this setting definition, which will be presented to the user.
|
(package private) AbstractSettingDefinition<T> |
setType(SettingType type) |
java.lang.String |
toString() |
compareTo, getOrder, setOrderclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetGroup, getOptionalDefaultValueprotected AbstractSettingDefinition(SettingType type)
type - the SettingType of this setting definitionpublic java.lang.String getKey()
getKey in interface SettingDefinition<T>public AbstractSettingDefinition<T> setKey(java.lang.String k)
SettingDefinitionsetKey in interface SettingDefinition<T>k - the unique keypublic java.lang.String getDescription()
getDescription in interface SettingDefinition<T>public AbstractSettingDefinition<T> setDescription(java.lang.String d)
SettingDefinitionsetDescription in interface SettingDefinition<T>d - the descriptionpublic boolean hasDescription()
hasDescription in interface SettingDefinition<T>public java.lang.String getTitle()
getTitle in interface SettingDefinition<T>public AbstractSettingDefinition<T> setTitle(java.lang.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(java.lang.String s)
public int hashCode()
hashCode in class AbstractOrderedpublic boolean equals(java.lang.Object obj)
equals in class AbstractOrderedpublic java.lang.String toString()
toString in class java.lang.Objectpublic SettingType getType()
getType in interface SettingDefinition<T>AbstractSettingDefinition<T> setType(SettingType type)
protected java.lang.String getSuborder()
getSuborder in class AbstractOrderedCopyright © 2015–2018 52°North Initiative for Geospatial Open Source Software GmbH. All rights reserved.