Package javax.validation

Examples of javax.validation.ConstraintTarget


  private ConstraintType determineConstraintType(Member member,
      ElementType elementType,
      boolean hasGenericValidators,
      boolean hasCrossParameterValidator,
      ConstraintType externalConstraintType) {
    ConstraintTarget constraintTarget = (ConstraintTarget) attributes.get( ConstraintHelper.VALIDATION_APPLIES_TO );
    ConstraintType constraintType;
    boolean isExecutable = isExecutable( elementType );

    //target explicitly set to RETURN_VALUE
    if ( constraintTarget == ConstraintTarget.RETURN_VALUE ) {
View Full Code Here


  private ConstraintType determineConstraintType(Member member,
      ElementType elementType,
      boolean hasGenericValidators,
      boolean hasCrossParameterValidator,
      ConstraintType externalConstraintType) {
    ConstraintTarget constraintTarget = (ConstraintTarget) attributes.get( ConstraintHelper.VALIDATION_APPLIES_TO );
    ConstraintType constraintType;
    boolean isExecutable = isExecutable( elementType );

    //target explicitly set to RETURN_VALUE
    if ( constraintTarget == ConstraintTarget.RETURN_VALUE ) {
View Full Code Here

        );
      }
      if ( method.getReturnType() != ConstraintTarget.class ) {
        throw log.getValidationAppliesToParameterMustHaveReturnTypeConstraintTargetException( annotationType.getName() );
      }
      ConstraintTarget defaultValue = (ConstraintTarget) method.getDefaultValue();
      if ( defaultValue != ConstraintTarget.IMPLICIT ) {
        throw log.getValidationAppliesToParameterMustHaveDefaultValueImplicitException( annotationType.getName() );
      }
    }
    else if ( method != null ) {
View Full Code Here

   */
  private ConstraintType determineConstraintType(Member member,
                           ElementType elementType,
                           boolean hasGenericValidators,
                           boolean hasCrossParameterValidator) {
    ConstraintTarget constraintTarget = (ConstraintTarget) attributes.get( ConstraintHelper.VALIDATION_APPLIES_TO );
    ConstraintType constraintType;
    boolean isExecutable = isExecutable( elementType );

    //target explicitly set to RETURN_VALUE
    if ( constraintTarget == ConstraintTarget.RETURN_VALUE ) {
View Full Code Here

        );
      }
      if ( method.getReturnType() != ConstraintTarget.class ) {
        throw log.getValidationAppliesToParameterMustHaveReturnTypeConstraintTargetException( annotationType.getName() );
      }
      ConstraintTarget defaultValue = (ConstraintTarget) method.getDefaultValue();
      if ( defaultValue != ConstraintTarget.IMPLICIT ) {
        throw log.getValidationAppliesToParameterMustHaveDefaultValueImplicitException( annotationType.getName() );
      }
    }
    else if ( method != null ) {
View Full Code Here

        );
      }
      if ( method.getReturnType() != ConstraintTarget.class ) {
        throw log.getValidationAppliesToParameterMustHaveReturnTypeConstraintTargetException( annotationType.getName() );
      }
      ConstraintTarget defaultValue = (ConstraintTarget) method.getDefaultValue();
      if ( defaultValue != ConstraintTarget.IMPLICIT ) {
        throw log.getValidationAppliesToParameterMustHaveDefaultValueImplicitException( annotationType.getName() );
      }
    }
    else if ( method != null ) {
View Full Code Here

TOP

Related Classes of javax.validation.ConstraintTarget

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.