pt.digitalis.dif.dem.objects.parameters.rules
Class ParameterRuleExclusive<T>
java.lang.Object
pt.digitalis.dif.dem.objects.parameters.rules.AbstractParameterRule<T>
pt.digitalis.dif.dem.objects.parameters.rules.ParameterRuleExclusive<T>
- Type Parameters:
T
- the parameter base type
- All Implemented Interfaces:
- IParameterRule<T>
public class ParameterRuleExclusive<T>
- extends AbstractParameterRule<T>
Exclusive parameter rule. Validates if the given parameter is not selected along with other exclusive fill parameter.
Only one can have a filled value.
- Author:
- Pedro Viegas pviegas@digitalis.pt
- Created on:
- Mar 31, 2009
Methods inherited from class pt.digitalis.dif.dem.objects.parameters.rules.AbstractParameterRule |
getAction, getDescriptionEndValue, getDescriptionStartValue, getDescriptionValue, getEndValue, getMessages, getParameter, getParameterName, getParameters, getStartValue, getValue, init, setDescriptionEndValue, setDescriptionStartValue, setDescriptionValue, setEndValue, setStartValue, setValue, toString |
ParameterRuleExclusive
public ParameterRuleExclusive()
getValidationResult
public ParameterRuleResult getValidationResult(IStageInstance stage,
T value,
boolean initializationInProgress,
AbstractParameter<T> parameter)
throws ParameterException
- Gets the validation result for the present parameter
- Parameters:
stage
- the current stagevalue
- the value to validateinitializationInProgress
- T if called within the dif parameter initializationparameter
- the parameter for validation
- Returns:
- the validation rule validation result
- Throws:
ParameterException
- if the parameter does not exist
Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.