Package org.hibernate.validator.metadata.location

Examples of org.hibernate.validator.metadata.location.MethodConstraintLocation


   */
  public MethodMetaConstraint(
      ConstraintDescriptorImpl<A> constraintDescriptor, Method method,
      int parameterIndex) {

    super( constraintDescriptor, new MethodConstraintLocation( method, parameterIndex ) );
  }
View Full Code Here


   * @param method The method hosting this constraint.
   */
  public MethodMetaConstraint(
      ConstraintDescriptorImpl<A> constraintDescriptor, Method method) {

    super( constraintDescriptor, new MethodConstraintLocation( method ) );
  }
View Full Code Here

   *
   * @return Returns itself for method chaining.
   */
  public ParameterConstraintMappingContext valid() {
    mapping.addMethodCascadeConfig(
        new MethodConstraintLocation(
            method, parameterIndex
        )
    );
    return this;
  }
View Full Code Here

    );
  }

  public static <A extends Annotation> ConfiguredConstraint<A, MethodConstraintLocation> forParameter(ConstraintDef<?, A> constraint, Method method, int parameterIndex) {
    return new ConfiguredConstraint<A, MethodConstraintLocation>(
        constraint, new MethodConstraintLocation( method, parameterIndex )
    );
  }
View Full Code Here

    );
  }

  public static <A extends Annotation> ConfiguredConstraint<A, MethodConstraintLocation> forReturnValue(ConstraintDef<?, A> constraint, Method method) {
    return new ConfiguredConstraint<A, MethodConstraintLocation>(
        constraint, new MethodConstraintLocation( method )
    );
  }
View Full Code Here

   * Marks the current property as cascadable.
   *
   * @return Returns itself for method chaining.
   */
  public ReturnValueConstraintMappingContext valid() {
    mapping.addMethodCascadeConfig( new MethodConstraintLocation( method ) );
    return this;
  }
View Full Code Here

TOP

Related Classes of org.hibernate.validator.metadata.location.MethodConstraintLocation

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.