|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.dif.dem.objects.parameters.rules.AbstractParameterRule<T>
T
- the parameter base typepublic abstract class AbstractParameterRule<T>
A base implementation for all parameter rules
Field Summary | |
---|---|
protected String |
parameterID
The parameter that this rule is associated to |
Constructor Summary | |
---|---|
AbstractParameterRule()
|
Method Summary | |
---|---|
ParameterRuleAction |
getAction()
Inspector for the 'action' attribute. |
String |
getDescriptionEndValue()
Inspector for the 'descriptionEndValue' attribute. |
String |
getDescriptionStartValue()
Inspector for the 'descriptionStartValue' attribute. |
String |
getDescriptionValue()
Inspector for the 'descriptionValue' attribute. |
String |
getEndValue()
Inspector for the 'endValue' attribute. |
protected Map<String,String> |
getMessages(IStageInstance stage)
Returns the list of messages available for the parameter rule |
IParameter<T> |
getParameter(IStageInstance stage)
Inspector for the 'parameter' attribute. |
String |
getParameterName(IStageInstance stage,
String parameterID)
Get's the name of a given parameter from the stage messages. |
List<String> |
getParameters()
Inspector for the 'parameters' attribute. |
String |
getStartValue()
Inspector for the 'startValue' attribute. |
String |
getValue()
Inspector for the 'value' attribute. |
AbstractParameterRule<T> |
init(String parameterID,
String parameters,
ParameterRuleAction action,
String value,
String first,
String last)
Initializer |
void |
setDescriptionEndValue(String descriptionEndValue)
Modifier for the 'descriptionEndValue' attribute. |
void |
setDescriptionStartValue(String descriptionStartValue)
Modifier for the 'descriptionStartValue' attribute. |
void |
setDescriptionValue(String descriptionValue)
Modifier for the 'descriptionValue' attribute. |
AbstractParameterRule<T> |
setEndValue(String endValue)
Modifier for the 'endValue' attribute. |
AbstractParameterRule<T> |
setStartValue(String startValue)
Modifier for the 'startValue' attribute. |
AbstractParameterRule<T> |
setValue(String value)
Modifier for the 'value' attribute. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface pt.digitalis.dif.dem.objects.parameters.rules.IParameterRule |
---|
getValidationResult |
Field Detail |
---|
protected String parameterID
Constructor Detail |
---|
public AbstractParameterRule()
Method Detail |
---|
public ParameterRuleAction getAction()
IParameterRule
getAction
in interface IParameterRule<T>
IParameterRule.getAction()
public String getDescriptionEndValue()
IParameterRule
getDescriptionEndValue
in interface IParameterRule<T>
IParameterRule.getDescriptionEndValue()
public String getDescriptionStartValue()
IParameterRule
getDescriptionStartValue
in interface IParameterRule<T>
IParameterRule.getDescriptionStartValue()
public String getDescriptionValue()
IParameterRule
getDescriptionValue
in interface IParameterRule<T>
IParameterRule.getDescriptionValue()
public String getEndValue()
IParameterRule
getEndValue
in interface IParameterRule<T>
IParameterRule.getEndValue()
protected Map<String,String> getMessages(IStageInstance stage)
stage
- the stage instance that the parameter is associated to
public IParameter<T> getParameter(IStageInstance stage) throws ParameterException
stage
- the stage instance that the parameter is associated to
ParameterException
- if the parameter does not existpublic String getParameterName(IStageInstance stage, String parameterID)
stage
- the parameter's current stageparameterID
- the parameter ID to fetch the name
public List<String> getParameters()
IParameterRule
getParameters
in interface IParameterRule<T>
IParameterRule.getParameters()
public String getStartValue()
IParameterRule
getStartValue
in interface IParameterRule<T>
IParameterRule.getStartValue()
public String getValue()
IParameterRule
getValue
in interface IParameterRule<T>
IParameterRule.getValue()
public AbstractParameterRule<T> init(String parameterID, String parameters, ParameterRuleAction action, String value, String first, String last)
IParameterRule
init
in interface IParameterRule<T>
parameterID
- the rule parameter IDparameters
- the list of parameters relevant for the given rule (besides the current parameter)action
- the action to perform according to the rule activation (valid or invalid)value
- the value for comparisonfirst
- the first value for interval comparisonlast
- the last value for interval comparison
IParameterRule.init(java.lang.String, java.lang.String,
pt.digitalis.dif.dem.objects.parameters.rules.ParameterRuleAction, java.lang.String, java.lang.String,
java.lang.String)
public void setDescriptionEndValue(String descriptionEndValue)
IParameterRule
setDescriptionEndValue
in interface IParameterRule<T>
descriptionEndValue
- the new descriptionEndValue value to setIParameterRule.setDescriptionEndValue(java.lang.String)
public void setDescriptionStartValue(String descriptionStartValue)
IParameterRule
setDescriptionStartValue
in interface IParameterRule<T>
descriptionStartValue
- the new descriptionStartValue value to setIParameterRule.setDescriptionStartValue(java.lang.String)
public void setDescriptionValue(String descriptionValue)
IParameterRule
setDescriptionValue
in interface IParameterRule<T>
descriptionValue
- the new descriptionValue value to setIParameterRule.setDescriptionValue(java.lang.String)
public AbstractParameterRule<T> setEndValue(String endValue)
IParameterRule
setEndValue
in interface IParameterRule<T>
endValue
- the new endValue value to set
IParameterRule.setEndValue(java.lang.String)
public AbstractParameterRule<T> setStartValue(String startValue)
IParameterRule
setStartValue
in interface IParameterRule<T>
startValue
- the new startValue value to set
IParameterRule.setStartValue(java.lang.String)
public AbstractParameterRule<T> setValue(String value)
IParameterRule
setValue
in interface IParameterRule<T>
value
- the new value value to set
IParameterRule.setValue(java.lang.String)
public String toString()
toString
in class Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |