Examples of validate()


Examples of grails.validation.ConstrainedProperty.validate()

        for (int i = 0; i < groupCount; i++) {
            lastGroup = m.group(i + 1);
            // if null optional.. ignore
            if (i == groupCount - 1 && hasOptionalExtension) {
                ConstrainedProperty cp = constraints[constraints.length-1];
                cp.validate(this, lastGroup, errors);

                if (errors.hasErrors()) {
                    return null;
                }
View Full Code Here

Examples of in.partake.model.dto.EventTicket.validate()

                        TicketReservationEnd.safeValueOf(reservationEndDateTypes[i]), Integer.parseInt(reservationEndHourBeforeApplications[i]), TimeUtil.parseForEvent(customReservationEndDates[i]),
                        TicketPriceType.safeValueOf(priceTypes[i]), Integer.parseInt(prices[i]),
                        TicketAmountType.safeValueOf(amountTypes[i]), Integer.parseInt(amounts[i]),
                        TimeUtil.getCurrentDateTime(), TimeUtil.getCurrentDateTime());

                if (!ticket.validate())
                    return renderInvalid(UserErrorCode.INVALID_ARGUMENT);

                tickets.add(ticket);
            }
        } catch (NumberFormatException e) {
View Full Code Here

Examples of include.auth.Validation.validate()

    System.out.println("RID: " + rid);
    System.out.println("SID: "+ sid);
    System.out.println("ACTION: "+portletAction);
    Validation v = new Validation();
    String login = v.validate(sid);
    System.out.println("LOGIN: "+login);
    response.setContentType("text/xml");

    if (rid==null || portletAction == null)
      return;
View Full Code Here

Examples of interfaceFeature.xbean.fixedAttrBean.purchaseOrder.PurchaseOrderDocument.validate()

            t.printStackTrace(System.err);
            System.exit(-1);
        }


        assertTrue(!poDoc.validate());
    }

}
View Full Code Here

Examples of io.airlift.configuration.ConfigurationValidator.validate()

            }
        }

        // Validate configuration
        ConfigurationValidator configurationValidator = new ConfigurationValidator(configurationFactory, warningsMonitor);
        List<Message> messages = configurationValidator.validate(modules);

        // at this point all config file properties should be used
        // so we can calculate the unused properties
        final TreeMap<String, String> unusedProperties = Maps.newTreeMap();
        unusedProperties.putAll(requiredProperties);
View Full Code Here

Examples of io.undertow.servlet.api.DeploymentInfo.validate()

        if (deploymentInfo.getServletStackTraces() == ServletStackTraces.ALL) {
            UndertowServletLogger.REQUEST_LOGGER.servletStackTracesAll(deploymentInfo.getDeploymentName());
        }

        deploymentInfo.validate();
        final DeploymentImpl deployment = new DeploymentImpl(this, deploymentInfo, servletContainer);
        this.deployment = deployment;

        final ServletContextImpl servletContext = new ServletContextImpl(servletContainer, deployment);
        deployment.setServletContext(servletContext);
View Full Code Here

Examples of it.hotel.controller.booking.validation.BookingValidator.validate()

 
  BookingValidator book = new BookingValidator();
 
  Errors error = null;
 
  book.validate(booking, error);

}


public void testValidateNotNullone() throws SecurityException, NoSuchMethodException{
View Full Code Here

Examples of it.hotel.controller.pricelist.validation.PriceListValidator.validate()

         errors.reject("errors.dateAsStirng.noCorrectFormat","errors.dateAsStirng.noCorrectFormat");
        
        
    replay(errors);
   
    priceListValidator.validate(priceListDTO, errors);
   
    verify(errors);
   
     
  }
View Full Code Here

Examples of it.hotel.controller.user.validation.UserValidator.validate()

    expectLastCall().anyTimes();
   
    replay(errors);
    org.easymock.classextension.EasyMock.replay(userManager1);
       
    userValidator.validate(user1, errors);
   
    verify(errors);
    org.easymock.classextension.EasyMock.verify(userManager1);
     
  }
View Full Code Here

Examples of jade.content.schema.ObjectSchema.validate()

      // Validate the content against the ontology
      ObjectSchema schema = onto.getSchema(content.getTypeName());
      if (schema == null) {
        throw new OntologyException("No schema found for type "+content.getTypeName());
      }
      schema.validate(content, onto);
    }
  }
 
  private void encode(ACLMessage msg, AbsContentElement content, Codec codec, Ontology onto) throws CodecException, OntologyException {
    if (codec instanceof ByteArrayCodec)
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.