Package org.hibernate.validator.constraints.impl.scriptassert

Examples of org.hibernate.validator.constraints.impl.scriptassert.ScriptEvaluator.evaluate()


  public boolean isValid(Object value, ConstraintValidatorContext constraintValidatorContext) {

    ScriptEvaluator scriptEvaluator = ScriptEvaluatorFactory.getInstance()
        .getScriptEvaluatorByLanguageName( languageName );

    return scriptEvaluator.evaluate( script, value, alias );
  }

  private void validateParameters(ScriptAssert constraintAnnotation) {

    if ( constraintAnnotation.script().isEmpty() ) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.