public abstract class AbstractSetting<V> extends java.lang.Object implements Setting<V>
Constructor and Description |
---|
AbstractSetting(java.lang.String name,
java.lang.String description,
V def) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static <X extends AbstractSetting> |
findFeatureByName(java.lang.Class<X> clazz,
java.lang.String name)
|
V |
getDefault()
get the default (compiled) value of the setting.
|
java.lang.String |
getDescription()
Descriptive text of the purpose/meaning of the setting.
|
static Table |
getFeatureTable(AppContext c) |
static java.util.Set<AbstractSetting> |
getKnownFeatures()
Return a set of known
Feature s. |
java.lang.String |
getName()
Name of the setting.
|
java.lang.String |
getText(V value) |
int |
hashCode() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, getCurrent, getInput
find, getIndex
public AbstractSetting(java.lang.String name, java.lang.String description, V def)
name
- description
- public static java.util.Set<AbstractSetting> getKnownFeatures()
Feature
s.
Early in application life-time this list may be incomplete as the declaring class might not be loaded yet.public final java.lang.String getName()
Setting
public final java.lang.String getDescription()
Setting
getDescription
in interface Setting<V>
public final int hashCode()
hashCode
in class java.lang.Object
public final boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public final java.lang.String toString()
toString
in class java.lang.Object
public static Table getFeatureTable(AppContext c)
public static <X extends AbstractSetting> X findFeatureByName(java.lang.Class<X> clazz, java.lang.String name)
Feature
by name
This is needed for transitions that operate on Feature
s. However it will only
return a Feature
once the class that actually defines it is loaded.name
- public V getDefault()
Setting
getDefault
in interface Setting<V>
public java.lang.String getText(V value)