Package javax.validation

Examples of javax.validation.ConstraintDeclarationException


  public void initialize(DecimalMax maxValue) {
    try {
      this.maxValue = new BigDecimal( maxValue.value() );
    }
    catch ( NumberFormatException nfe ) {
      throw new ConstraintDeclarationException( maxValue.value() + " does not represent a valid BigDemcimal formt" );
    }
  }
View Full Code Here


    try {
      ScriptEvaluatorFactory evaluatorFactory = ScriptEvaluatorFactory.getInstance();
      scriptEvaluator = evaluatorFactory.getScriptEvaluatorByLanguageName( languageName );
    }
    catch ( ScriptException e ) {
      throw new ConstraintDeclarationException( e );
    }

    try {
      evaluationResult = scriptEvaluator.evaluate( script, value, alias );
    }
View Full Code Here

    @Override
    public ExecutableMetaData build() {
      ExecutableElement executableElement = location.getExecutableElement();

      ConstraintDeclarationException constraintDeclarationException = checkParameterConstraints();
      if ( constraintDeclarationException == null ) {
        constraintDeclarationException = checkReturnValueConfiguration();
      }

      return new ExecutableMetaData(
View Full Code Here

TOP

Related Classes of javax.validation.ConstraintDeclarationException

Copyright © 2018 www.massapicom. 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.