pt.digitalis.dif.dem.objects.parameters.constraints.impl
Class ParameterConstraintEmailImpl

java.lang.Object
  extended by pt.digitalis.dif.dem.objects.parameters.constraints.AbstractParameterConstraint
      extended by pt.digitalis.dif.dem.objects.parameters.constraints.impl.ParameterConstraintRegexImpl
          extended by 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

Field Summary
 
Fields inherited from class pt.digitalis.dif.dem.objects.parameters.constraints.impl.ParameterConstraintRegexImpl
REGEXP_COMMA, REGEXP_LIST_END, REGEXP_LIST_SEPARATOR, REGEXP_LIST_START
 
Constructor Summary
ParameterConstraintEmailImpl()
           
 
Method Summary
 void configureConstraint(String configurationString)
          Configures the constraint.
protected  Map<String,String> getErrorMessageValues(boolean parseValues)
          Compiles all values to be parsed in the error message to be generated on request
 boolean validateConstraint(String value, IStageInstance stageInstance)
          Validates the parameter value passed as a String
 
Methods inherited from class pt.digitalis.dif.dem.objects.parameters.constraints.impl.ParameterConstraintRegexImpl
getJavaScriptValidationCondition, isSupportedClass
 
Methods inherited from class pt.digitalis.dif.dem.objects.parameters.constraints.AbstractParameterConstraint
getErrorIDs, getMessages, getValidationResult, validateConstraint, validationErrorMessage, validationErrorMessage, validationErrorMessage, validationErrorMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterConstraintEmailImpl

public ParameterConstraintEmailImpl()
Method Detail

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 validate
stageInstance - 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.