Examples of validateParameters()


Examples of org.apache.cxf.validation.ValidationProvider.validateParameters()

       
        if (isValidateServiceObject()) {
            theProvider.validateBean(serviceObject);
        }
       
        theProvider.validateParameters(serviceObject, m, params.toArray());
       
        Object response = super.invoke(exchange, serviceObject, m, params);
       
        if (response instanceof MessageContentsList) {
            MessageContentsList list = (MessageContentsList)response;
View Full Code Here

Examples of org.eclipse.birt.report.engine.api.IRunAndRenderTask.validateParameters()

      }
     
      IRunAndRenderTask task = engine.createRunAndRenderTask(design);         
      task.setRenderOption(renderOption);
      task.setParameterValues(parameters);     
      task.validateParameters();
     
      if (input.getLocale() != null)
      {
        task.setLocale(input.getLocale());
      }
View Full Code Here

Examples of org.eclipse.birt.report.engine.api.IRunAndRenderTask.validateParameters()

    }
    logger.debug("SetUp resourcePath:"+resourcePath);
    reportParams.put("SBI_RESOURCE_PATH", resourcePath);

    task.setParameterValues(reportParams);
    task.validateParameters();

    String templateFileName = request.getParameter("template_file_name");
    logger.debug("templateFileName -- [" + templateFileName + "]");
    if (templateFileName == null || templateFileName.trim().equals(""))
      templateFileName = "report";
View Full Code Here

Examples of org.eclipse.birt.report.engine.api.IRunTask.validateParameters()

    IRunTask CSVtask = birtReportEngine.createRunTask(design);
     
    //**** Set parameters for the report **** 
     
    CSVtask.setParameterValues(reportParams);
    CSVtask.validateParameters();
    
    //************************************
    
    UUIDGenerator uuidGen  = UUIDGenerator.getInstance();
    UUID uuid_local = uuidGen.generateTimeBasedUUID();
View Full Code Here

Examples of org.hibernate.validator.MethodValidator.validateParameters()

  public Object validateMethodInvocation(ProceedingJoinPoint pjp) throws Throwable {
    Object result;
    MethodSignature signature = (MethodSignature) pjp.getSignature();
    MethodValidator methodValidator = validator.unwrap( MethodValidator.class );

    Set<MethodConstraintViolation<Object>> parametersViolations = methodValidator.validateParameters(
        pjp.getTarget(), signature.getMethod(), pjp.getArgs()
    );
    if ( !parametersViolations.isEmpty() ) {
      throw new MethodConstraintViolationException( parametersViolations );
    }
View Full Code Here

Examples of org.hibernate.validator.MethodValidator.validateParameters()

  public Object invoke(MethodInvocation invocation) throws Throwable {

    MethodValidator validator = validatorFactory.getValidator().unwrap(
      MethodValidator.class);

    Set<MethodConstraintViolation<Object>> violations = validator
      .validateParameters(
        invocation.getThis(), invocation.getMethod(),
        invocation.getArguments());

    if (!violations.isEmpty()) {
View Full Code Here

Examples of org.hibernate.validator.MethodValidator.validateParameters()

  public Object validateMethodInvocation(InvocationContext ctx) throws Exception {

    MethodValidator validator = validatorFactory.getValidator().unwrap(
      MethodValidator.class);

    Set<MethodConstraintViolation<Object>> violations = validator
      .validateParameters(
        ctx.getTarget(), ctx.getMethod(), ctx.getParameters());

    if (!violations.isEmpty()) {
      throw new MethodConstraintViolationException(violations);
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.