Examples of validate()


Examples of org.apache.sling.validation.api.Validator.validate()

        }
        for (Map.Entry<Validator, Map<String, String>> validatorEntry : validators.entrySet()) {
            Validator validator = validatorEntry.getKey();
            Map<String, String> arguments = validatorEntry.getValue();
            try {
                String validatorMessage = validator.validate(value, arguments);
                if (validatorMessage != null) {
                    if (validatorMessage.isEmpty()) {
                        validatorMessage = "Property does not contain a valid value for the " + validator
                                .getClass().getName() + " validator";
                    }
View Full Code Here

Examples of org.apache.sqoop.validation.Validator.validate()

    sb.append("\tThreshold Specifier : ")
      .append(threshold.getClass().getName()).append('\n');
    sb.append("\tFailure Handler : ")
      .append(failureHandler.getClass().getName()).append('\n');
    LOG.info(sb.toString());
    validator.validate(validationContext, threshold, failureHandler);
  }
}
View Full Code Here

Examples of org.apache.stratos.cloud.controller.validate.interfaces.PartitionValidator.validate()

           
        }

        PartitionValidator validator = iaas.getPartitionValidator();
        validator.setIaasProvider(iaasProvider);
        validator.validate(partition.getId(),
                           CloudControllerUtil.toJavaUtilProperties(partition.getProperties()));
       
        return true;
    }
View Full Code Here

Examples of org.apache.struts.action.ActionForm.validate()

                form.setServlet(new ActionServlet(){
                    public ServletContext getServletContext() {
                        return ServletActionContext.getServletContext();
                    }
                });
                ActionErrors errors = form.validate(mapping, req);
                strutsFactory.convertErrors(errors, action);               
            }
        }
        return invocation.invoke();
    }
View Full Code Here

Examples of org.apache.struts.action.DynaActionForm.validate()

            reportVO.setSelectedFields(getSelectedFieldsWithNames((String)adHocReportForm.get("contentFields"), (String)adHocReportForm.get("contentOrders"), (String)adHocReportForm.get("contentFieldNames")));
          }
          moduleId = reportVO.getModuleId();
          request.setAttribute("pagedata", reportVO);
        } else { // action is telling us to do something for real, check for errors.
          ActionErrors errors = adHocReportForm.validate(mapping, request);
          if (0 < errors.size()) {
            saveErrors(request, errors);
            reportVO = remote.getAdHocReport(userId, reportId);
            moduleId = reportVO.getModuleId();
            request.setAttribute("pagedata", reportVO);
View Full Code Here

Examples of org.apache.taglibs.standard.lang.support.ExpressionEvaluator.validate()

        } catch (JspException ex) {
            // (using JspException here feels ugly, but it's what EEM uses)
            return ex.getMessage();
        }

        String response = current.validate(att, expr);
        if (response == null) {
            return response;
        } else {
            return "tag = '" + elem + "' / attribute = '" + att + "': "
                    + response;
View Full Code Here

Examples of org.apache.tapestry.FieldValidator.validate()

                overrideMessages,
                locale,
                fv2);

        fv1.validate(value);
        fv2.validate(value);

        replay();

        FieldValidatorDefaultSource fieldValidatorSource = new FieldValidatorDefaultSourceImpl(gen,
                source);
View Full Code Here

Examples of org.apache.tapestry.IPage.validate()

        IPage page = newPage();
        ListenerFixture l = new ListenerFixture();

        // Code path: no listener list

        page.validate(null);

        page.addPageValidateListener(l);

        page.validate(null);
View Full Code Here

Examples of org.apache.tapestry.Validator.validate()

        train_getMessageKey(validator, "key");
        train_getMessageFormatter(messages, "key", formatter);

        train_invokeIfBlank(validator, false);
        train_getValueType(validator, Object.class);
        validator.validate(field, null, formatter, inputValue);

        replay();

        FieldValidatorSource source = new FieldValidatorSourceImpl(messagesSource, coercer, null,
                map);
View Full Code Here

Examples of org.apache.tapestry.form.ValidatableFieldSupport.validate()

       
        SimpleBean match = new SimpleBean(new Integer(1), null, -1);
       
        try
        {
            vfs.validate(component, writer, cycle, match);
        }
        catch (ValidatorException e)
        {
            unreachable();
        }
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.