S
- the type of the class extending this classT
- the type of the valueabstract class AbstractSettingDefinition<S extends AbstractSettingDefinition<S,T>,T> extends AbstractOrdered<S> implements SettingDefinition<S,T>
SettingDefinition
.Modifier and Type | Field and Description |
---|---|
private T |
defaultValue |
private String |
description |
private SettingDefinitionGroup |
group |
private String |
identifier |
private boolean |
optional |
private String |
title |
private SettingType |
type |
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() |
S |
setDefaultValue(T defaultValue)
Sets the default value of this setting.
|
S |
setDescription(String description)
Sets the description of this setting definition, which should further
describe the purpose of this setting.
|
S |
setGroup(SettingDefinitionGroup group)
Sets the group of this definition.
|
S |
setKey(String key)
Sets the unique identifier of this setting definition, which can be
referenced by configurable classes.
|
S |
setOptional(boolean optional)
Sets whether this setting is optional or can be null.
|
S |
setTitle(String title)
Sets the title of this setting definition, which will be presented to the
user.
|
(package private) S |
setType(SettingType type) |
String |
toString() |
compareTo, getOrder, setOrder
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo
private boolean optional
private String identifier
private String title
private String description
private SettingDefinitionGroup group
private SettingType type
private T defaultValue
protected AbstractSettingDefinition(SettingType type)
type
- the SettingType
of this setting definitionpublic String getKey()
getKey
in interface SettingDefinition<S extends AbstractSettingDefinition<S,T>,T>
public S setKey(String key)
SettingDefinition
setKey
in interface SettingDefinition<S extends AbstractSettingDefinition<S,T>,T>
key
- the unique keypublic String getDescription()
getDescription
in interface SettingDefinition<S extends AbstractSettingDefinition<S,T>,T>
public boolean hasDescription()
hasDescription
in interface SettingDefinition<S extends AbstractSettingDefinition<S,T>,T>
public S setDescription(String description)
SettingDefinition
setDescription
in interface SettingDefinition<S extends AbstractSettingDefinition<S,T>,T>
description
- the descriptionpublic String getTitle()
getTitle
in interface SettingDefinition<S extends AbstractSettingDefinition<S,T>,T>
public boolean hasTitle()
hasTitle
in interface SettingDefinition<S extends AbstractSettingDefinition<S,T>,T>
public S setTitle(String title)
SettingDefinition
setTitle
in interface SettingDefinition<S extends AbstractSettingDefinition<S,T>,T>
title
- the titlepublic boolean isOptional()
isOptional
in interface SettingDefinition<S extends AbstractSettingDefinition<S,T>,T>
public S setOptional(boolean optional)
SettingDefinition
setOptional
in interface SettingDefinition<S extends AbstractSettingDefinition<S,T>,T>
optional
- if this setting is optionalpublic SettingDefinitionGroup getGroup()
getGroup
in interface SettingDefinition<S extends AbstractSettingDefinition<S,T>,T>
public boolean hasGroup()
hasGroup
in interface SettingDefinition<S extends AbstractSettingDefinition<S,T>,T>
public S setGroup(SettingDefinitionGroup group)
SettingDefinition
setGroup
in interface SettingDefinition<S extends AbstractSettingDefinition<S,T>,T>
group
- the grouppublic T getDefaultValue()
getDefaultValue
in interface SettingDefinition<S extends AbstractSettingDefinition<S,T>,T>
public boolean hasDefaultValue()
hasDefaultValue
in interface SettingDefinition<S extends AbstractSettingDefinition<S,T>,T>
public S setDefaultValue(T defaultValue)
SettingDefinition
setDefaultValue
in interface SettingDefinition<S extends AbstractSettingDefinition<S,T>,T>
defaultValue
- the default valueprotected boolean hasStringProperty(String s)
public SettingType getType()
getType
in interface SettingDefinition<S extends AbstractSettingDefinition<S,T>,T>
S setType(SettingType type)
protected String getSuborder()
getSuborder
in class AbstractOrdered<S extends AbstractSettingDefinition<S,T>>
Copyright © 2012-2015 52north.org. All Rights Reserved.