|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.core.kivi.CombinationParameter<T>
T
- the type of parameterpublic class CombinationParameter<T>
Describes a parameter of a combination.
Constructor Summary | |
---|---|
CombinationParameter(String k,
IPreferenceStore store,
String n,
String d,
Class<T> clazz)
Create a new combination parameter without a default value. |
|
CombinationParameter(String k,
IPreferenceStore store,
String n,
String d,
T def)
Create a new combination parameter with default value. |
Method Summary | |
---|---|
T |
getDefault()
Get the default value of this parameter. |
String |
getDescription()
Get a readable description for this parameter. |
String |
getId()
Get the preference key. |
Comparable<T> |
getLowerBound()
Returns the lower bound of this property. |
String |
getName()
Get a readable name for this parameter. |
static CombinationParameter<?>[] |
getParameters(Class<? extends ICombination> combination)
Retrieve the combination parameters from a combination class. |
IPreferenceStore |
getPreferenceStore()
Get the preference store used to save this key-value pair. |
Class<T> |
getType()
Get the type of this parameter. |
Comparable<T> |
getUpperBound()
Returns the upper bound of this property. |
void |
initialize()
Initialize the default value of the combination parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CombinationParameter(String k, IPreferenceStore store, String n, String d, T def)
k
- the preference keystore
- the preference storen
- the readable named
- the readable descriptiondef
- the default valuepublic CombinationParameter(String k, IPreferenceStore store, String n, String d, Class<T> clazz)
k
- the preference keystore
- the preference storen
- the readable named
- the readable descriptionclazz
- The parameter classMethod Detail |
---|
public String getId()
getId
in interface IProperty<T>
public IPreferenceStore getPreferenceStore()
public String getName()
public String getDescription()
public Class<T> getType()
public T getDefault()
getDefault
in interface IProperty<T>
public void initialize()
public Comparable<T> getLowerBound()
getLowerBound
in interface IProperty<T>
public Comparable<T> getUpperBound()
getUpperBound
in interface IProperty<T>
public static CombinationParameter<?>[] getParameters(Class<? extends ICombination> combination)
combination
- the combination class to look in
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |