Examples of findConstraints()


Examples of javax.validation.metadata.PropertyDescriptor.findConstraints()

    //get constraints for each property name
    for(String propertyName : propertySet) {
      PropertyDescriptor property = DescriptorFactory.INSTANCE.getPropertyDescriptor(this.backingReflector, propertyName);
     
      //create finder
      ConstraintFinder finder = property.findConstraints()
        .lookingAt(scope)
        .declaredOn(declaredOnTypes.toArray(new ElementType[]{}))
        .unorderedAndMatchingGroups(matchingGroups.toArray(new Class<?>[]{}));
     
      //find and add to results
View Full Code Here

Examples of javax.validation.metadata.PropertyDescriptor.findConstraints()

      BeanDescriptor bean = this.getConstraintsForClass(beanType);
     
      PropertyDescriptor property = bean.getConstraintsForProperty(propertyName);
     
      //get constraints for beanType.propertyName
      Set<ConstraintDescriptor<?>> constraints  = property.findConstraints().unorderedAndMatchingGroups(groups).getConstraintDescriptors();

      //if no constraints are found using those groups, then we must take additional measures,
      //namely checking to see if it is a group interface instead of a plain group (see JSR-303
      //section 3.4.4. "Implicit Grouping")
      if(constraints == null || constraints.isEmpty()) {
View Full Code Here

Examples of javax.validation.metadata.PropertyDescriptor.findConstraints()

  }

  private boolean isGetterConstrained(Method method, BeanDescriptor beanDescriptor) {
    String propertyName = ReflectionHelper.getPropertyName( method );
    PropertyDescriptor propertyDescriptor = beanDescriptor.getConstraintsForProperty( propertyName );
    return propertyDescriptor != null && propertyDescriptor.findConstraints()
        .declaredOn( ElementType.METHOD )
        .hasConstraints();
  }

  private boolean veto(EnumSet<ExecutableType> classLevelExecutableTypes,
View Full Code Here

Examples of javax.validation.metadata.ReturnValueDescriptor.findConstraints()

        CustomerRepositoryExt.class,
        "baz"
    );

    assertConstraintTypes(
        returnValueDescriptor.findConstraints()
            .lookingAt( Scope.LOCAL_ELEMENT )
            .getConstraintDescriptors(), Min.class
    );
    assertConstraintTypes(
        returnValueDescriptor.findConstraints()
View Full Code Here

Examples of org.apache.catalina.Context.findConstraints()

                                connection.send(packet);
                            }
                        }
                    }

                    SecurityConstraint scon[]=context.findConstraints();
                    if (scon!=null) {
                        for (int x=0; x<scon.length; x++) {
                            SecurityCollection col[]=scon[x].findCollections();
                            if (col!=null) {
                                for (int y=0; y<col.length; y++) {
View Full Code Here

Examples of org.apache.catalina.Context.findConstraints()

                                connection.send(packet);
                            }
                        }
                    }

                    SecurityConstraint scon[]=context.findConstraints();
                    if (scon!=null) {
                        for (int x=0; x<scon.length; x++) {
                            SecurityCollection col[]=scon[x].findCollections();
                            if (col!=null) {
                                for (int y=0; y<col.length; y++) {
View Full Code Here

Examples of org.apache.catalina.Context.findConstraints()

                                connection.send(packet);
                            }
                        }
                    }

                    SecurityConstraint scon[]=context.findConstraints();
                    if (scon!=null) {
                        for (int x=0; x<scon.length; x++) {
                            SecurityCollection col[]=scon[x].findCollections();
                            if (col!=null) {
                                for (int y=0; y<col.length; y++) {
View Full Code Here

Examples of org.apache.catalina.Context.findConstraints()

            Object container = event.getData();           
            if ( container instanceof Context) {
                context = (Context)container;
               
                if ( context != null
                        && context.findConstraints().length == 0
                        && context.findFilterDefs().length == 0 ){
                               
                    contextPath = context.getPath();
                    host = (Host)context.getParent();
                    int[] ports = host.getPorts();
View Full Code Here

Examples of org.apache.catalina.Context.findConstraints()

                                connection.send(packet);
                            }
                        }
                    }

                    SecurityConstraint scon[]=context.findConstraints();
                    if (scon!=null) {
                        for (int x=0; x<scon.length; x++) {
                            SecurityCollection col[]=scon[x].findCollections();
                            if (col!=null) {
                                for (int y=0; y<col.length; y++) {
View Full Code Here

Examples of org.apache.catalina.Context.findConstraints()

                                connection.send(packet);
                            }
                        }
                    }

                    SecurityConstraint scon[]=context.findConstraints();
                    if (scon!=null) {
                        for (int x=0; x<scon.length; x++) {
                            SecurityCollection col[]=scon[x].findCollections();
                            if (col!=null) {
                                for (int y=0; y<col.length; y++) {
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.