pt.digitalis.dif.dem.objects.parameters.constraints.impl
Class ParameterConstraintEmailImpl
java.lang.Object
pt.digitalis.dif.dem.objects.parameters.constraints.AbstractParameterConstraint
pt.digitalis.dif.dem.objects.parameters.constraints.impl.ParameterConstraintRegexImpl
pt.digitalis.dif.dem.objects.parameters.constraints.impl.ParameterConstraintEmailImpl
- All Implemented Interfaces:
- IParameterConstraint
public class ParameterConstraintEmailImpl
- extends ParameterConstraintRegexImpl
- Author:
- Galaio da Silva jgalaio@digitalis.pt
- Created on:
- Jul 27, 2010
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParameterConstraintEmailImpl
public ParameterConstraintEmailImpl()
configureConstraint
public void configureConstraint(String configurationString)
- Description copied from interface:
IParameterConstraint
- Configures the constraint. Optional. The maximum value for max, or maskString for mask.
- Specified by:
configureConstraint
in interface IParameterConstraint
- Overrides:
configureConstraint
in class ParameterConstraintRegexImpl
- See Also:
ParameterConstraintRegexImpl.configureConstraint(java.lang.String)
getErrorMessageValues
protected Map<String,String> getErrorMessageValues(boolean parseValues)
- Description copied from class:
AbstractParameterConstraint
- Compiles all values to be parsed in the error message to be generated on request
- Overrides:
getErrorMessageValues
in class ParameterConstraintRegexImpl
- Parameters:
parseValues
- if T will replace the current parameter value in the message. Otherwise return the untouched message
for custom parsing
- Returns:
- the list of key/values to replace in the error message
- See Also:
ParameterConstraintRegexImpl.getErrorMessageValues(boolean)
validateConstraint
public boolean validateConstraint(String value,
IStageInstance stageInstance)
- Description copied from interface:
IParameterConstraint
- Validates the parameter value passed as a String
- Specified by:
validateConstraint
in interface IParameterConstraint
- Overrides:
validateConstraint
in class ParameterConstraintRegexImpl
- Parameters:
value
- the value to validatestageInstance
- the current stage in execution
- Returns:
- T if the validation succeded
- See Also:
ParameterConstraintRegexImpl.validateConstraint(java.lang.String,
pt.digitalis.dif.dem.interfaces.IStageInstance)
Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.