public class ParameterDefinition<T> extends <any> implements IParameterDefinition<T>
Constructor and Description |
---|
ParameterDefinition(java.lang.String name,
ILocalizableString description)
Constructs a parameter definition with a given name and description.
|
ParameterDefinition(java.lang.String name,
ILocalizableString description,
T defaultValue)
Constructs a parameter definition with a given name, description and default value.
|
ParameterDefinition(java.lang.String name,
ILocalizableString description,
T defaultValue,
java.lang.Comparable<T> minValue,
java.lang.Comparable<T> maxValue)
Constructs a parameter definition with a given name, description, default value and minimum/maximum value.
|
ParameterDefinition(java.lang.String name,
ILocalizableString description,
T defaultValue,
T[] legalValues)
Constructs a parameter definition with a given name, description, default value and set of legal values.
|
ParameterDefinition(java.lang.String name,
java.lang.String description)
Deprecated.
Use the localizable variant of this constructor instead.
|
ParameterDefinition(java.lang.String name,
java.lang.String description,
T defaultValue)
Deprecated.
Use the localizable variant of this constructor instead.
|
ParameterDefinition(java.lang.String name,
java.lang.String description,
T defaultValue,
java.lang.Comparable<T> minValue,
java.lang.Comparable<T> maxValue)
Deprecated.
Use the localizable variant of this constructor instead.
|
ParameterDefinition(java.lang.String name,
java.lang.String description,
T defaultValue,
T[] legalValues)
Deprecated.
Use the localizable variant of this constructor instead.
|
Modifier and Type | Method and Description |
---|---|
T |
getDefaultValue()
Returns the default value for this parameter, if it has one, or null otherwise.
|
java.lang.String |
getDescription()
Returns the name of the parameter described by this IParameterDefinition instance.
|
T[] |
getLegalValues()
Returns the set of legal values for this parameter, if it has one, or null otherwise.
|
java.lang.Comparable<T> |
getMaxValue()
Returns the maximal value for this parameter, if it has one, or null otherwise.
|
java.lang.Comparable<T> |
getMinValue()
Returns the minimal value for this parameter, if it has one, or null otherwise.
|
java.lang.String |
getName()
Returns the name of the parameter described by this IParameterDefinition instance.
|
public ParameterDefinition(java.lang.String name, java.lang.String description)
name
- the name of this parameterdescription
- the description of this parameterpublic ParameterDefinition(java.lang.String name, ILocalizableString description)
name
- the name of this parameterdescription
- the localizable description of this parameterpublic ParameterDefinition(java.lang.String name, java.lang.String description, T defaultValue)
name
- the name of this parameterdescription
- the description of this parameterdefaultValue
- the default parameter valuepublic ParameterDefinition(java.lang.String name, ILocalizableString description, T defaultValue)
name
- the name of this parameterdescription
- the localizable description of this parameterdefaultValue
- the default parameter valuepublic ParameterDefinition(java.lang.String name, java.lang.String description, T defaultValue, java.lang.Comparable<T> minValue, java.lang.Comparable<T> maxValue)
name
- the name of this parameterdescription
- the description of this parameterdefaultValue
- the default parameter valueminValue
- the minimum parameter valuemaxValue
- the maximum parameter valuepublic ParameterDefinition(java.lang.String name, ILocalizableString description, T defaultValue, java.lang.Comparable<T> minValue, java.lang.Comparable<T> maxValue)
name
- the name of this parameterdescription
- the localizable description of this parameterdefaultValue
- the default parameter valueminValue
- the minimum parameter valuemaxValue
- the maximum parameter valuepublic ParameterDefinition(java.lang.String name, java.lang.String description, T defaultValue, T[] legalValues)
name
- the name of this parameterdescription
- the description of this parameterdefaultValue
- the default parameter valuelegalValues
- the legal parameter valuespublic ParameterDefinition(java.lang.String name, ILocalizableString description, T defaultValue, T[] legalValues)
name
- the name of this parameterdescription
- the localizable description of this parameterdefaultValue
- the default parameter valuelegalValues
- the legal parameter valuespublic java.lang.String getName()
IParameterDefinition
getName
in interface IParameterDefinition<T>
public java.lang.String getDescription()
IParameterDefinition
getDescription
in interface IParameterDefinition<T>
public T getDefaultValue()
IParameterDefinition
getDefaultValue
in interface IParameterDefinition<T>
public T[] getLegalValues()
IParameterDefinition
getLegalValues
in interface IParameterDefinition<T>
public java.lang.Comparable<T> getMaxValue()
IParameterDefinition
getMaxValue
in interface IParameterDefinition<T>
public java.lang.Comparable<T> getMinValue()
IParameterDefinition
getMinValue
in interface IParameterDefinition<T>