pt.digitalis.dif.dem.objects.parameters.constraints.impl.date
Class ParameterConstraintDateInFutureImpl

java.lang.Object
  extended by pt.digitalis.dif.dem.objects.parameters.constraints.AbstractParameterConstraint
      extended by pt.digitalis.dif.dem.objects.parameters.constraints.impl.date.ParameterConstraintDateImpl
          extended by pt.digitalis.dif.dem.objects.parameters.constraints.impl.date.ParameterConstraintDateInFutureImpl
All Implemented Interfaces:
IParameterConstraint

public class ParameterConstraintDateInFutureImpl
extends ParameterConstraintDateImpl

Date in Future parameter constraint implementation.
Will validate if the given date is in the future as it is mandatory.

Author:
Pedro Viegas pviegas@digitalis.pt
Created on:
2010/09/14

Constructor Summary
ParameterConstraintDateInFutureImpl()
           
 
Method Summary
 boolean validateConstraint(Object value, IStageInstance stageInstance)
          Validates the parameter value passed in it's native type
 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.date.ParameterConstraintDateImpl
configureConstraint, getErrorMessageValues, getJavaScriptValidationCondition, isSupportedClass
 
Methods inherited from class pt.digitalis.dif.dem.objects.parameters.constraints.AbstractParameterConstraint
getErrorIDs, getMessages, getValidationResult, validationErrorMessage, validationErrorMessage, validationErrorMessage, validationErrorMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterConstraintDateInFutureImpl

public ParameterConstraintDateInFutureImpl()
Method Detail

validateConstraint

public boolean validateConstraint(Object value,
                                  IStageInstance stageInstance)
Description copied from interface: IParameterConstraint
Validates the parameter value passed in it's native type

Specified by:
validateConstraint in interface IParameterConstraint
Overrides:
validateConstraint in class ParameterConstraintDateImpl
Parameters:
value - the value to validate
stageInstance - the current stage in execution
Returns:
T if the validation succeeded
See Also:
ParameterConstraintDateImpl.validateConstraint(java.lang.Object, pt.digitalis.dif.dem.interfaces.IStageInstance)

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 ParameterConstraintDateImpl
Parameters:
value - the value to validate
stageInstance - the current stage in execution
Returns:
T if the validation succeded
See Also:
ParameterConstraintDateImpl.validateConstraint(java.lang.String, pt.digitalis.dif.dem.interfaces.IStageInstance)


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.