Examples of validate()


Examples of org.jitterbit.integration.data.location.ldap.LdapLocationValidator.validate()

    @Override
    public void collectValidationMessages(ValidationMessageCollector collector) {
        super.collectValidationMessages(collector);
        LdapLocationValidator validator = new LdapLocationValidator(this, collector);
        validator.validate();
    }

    @Override
    public ExportableProperty[] getExportableProperties() {
        return new ExportableProperty[] {
View Full Code Here

Examples of org.jitterbit.integration.data.location.tempstore.TemporaryStorageLocationValidator.validate()

    @Override
    public void collectValidationMessages(ValidationMessageCollector collector) {
        super.collectValidationMessages(collector);
        TemporaryStorageLocationValidator validator = new TemporaryStorageLocationValidator(this, collector);
        validator.validate();
    }

    @Override
    public ExportableProperty[] getExportableProperties() {
        return new ExportableProperty[] {
View Full Code Here

Examples of org.jitterbit.integration.data.script.ScriptValidator.validate()

    private boolean validate() {
        model.setDebugMessage("");
        ScriptValidator validator = new ScriptValidator();
        validator.setSourceDataElementContainer(model.getSourceDataElementContainer());
        String expression = model.getExpressionToTest();
        ScriptStatus status = validator.validate(expression);
        if (status.isInvalid()) {
            model.setDebugMessage(status.getMessage());
            return false;
        }
        return true;
View Full Code Here

Examples of org.jitterbit.integration.data.structure.text.TextStructureValidator.validate()

        }
    }

    private void validateFields(Iterable<Field> fields, TextValidatorFactory validatorFactory) {
        TextStructureValidator validator = validatorFactory.createFieldValidator(fields);
        for (ValidationIssue issue : validator.validate()) {
            fatal(issue.getDescription());
        }
    }

    private void validateComplexStructure(ComplexTextStructure structure, TextValidatorFactory validatorFactory) {
View Full Code Here

Examples of org.jitterbit.util.file.WindowsFileNameValidator.validate()

        doDefaultValidation(trimmed);
        WindowsFileNameValidator validator = new WindowsFileNameValidator();
        validator.setIllegalCharactersMessagePattern(
                        "A project name may not contain any of the following characters: {0}");
        validator.setReservedNameMessage(getReservedNameMessage(trimmed));
        validator.validate(trimmed);
        doDotValidation(trimmed);
        doSpaceValidation(trimmed);
    }

    private void doDefaultValidation(String name) throws IllegalNameException {
View Full Code Here

Examples of org.jivesoftware.openfire.session.Session.validate()

    public boolean isActiveRoute(String username, String resource) {
        boolean hasRoute = false;
        Session session = routingTable.getClientRoute(new JID(username, serverName, resource));
        // Makes sure the session is still active
        if (session != null && !session.isClosed()) {
            hasRoute = session.validate();
        }

        return hasRoute;
    }
View Full Code Here

Examples of org.joda.beans.PropertyDefinition.validate()

  private static boolean nullable(MetaProperty<?> property) {
    if (property.propertyType().isPrimitive()) {
      return false;
    } else {
      PropertyDefinition definitionAnnotation = property.annotation(PropertyDefinition.class);
      return !definitionAnnotation.validate().equals("notNull");
    }
  }
}
View Full Code Here

Examples of org.joget.apps.form.model.FormValidator.validate()

        boolean result = true;
        if (element.continueValidation(formData)) {
            FormValidator validator = (FormValidator) element.getValidator();
            if (validator != null) {
                String[] values = FormUtil.getElementPropertyValues(element, formData);
                result = validator.validate(element, formData, values) && result;
            }
            result = element.selfValidate(formData) && result;
           
            Collection<Element> children = element.getChildren(formData);
            if (children != null) {
View Full Code Here

Examples of org.jpedal.examples.simpleviewer.objects.SignData.validate()

          SignWizardModel signer = new SignWizardModel(signData, commonValues.getSelectedFile(), commonValues.getInputDir());
          Wizard signWizard = new Wizard((Frame) currentGUI.getFrame(), signer);

          if(signWizard.showModalDialog()!= JOptionPane.OK_OPTION) break;

          if(!signData.validate()) {
            currentGUI.showMessageDialog(signData.toString());
            break;
          }

          int response = JOptionPane.showConfirmDialog(currentGUI.getFrame(),
View Full Code Here

Examples of org.jpox.properties.PersistencePropertyValidator.validate()

                    }

                    if (validator != null)
                    {
                        boolean validated = (mapping.internalName != null ?
                                validator.validate(mapping.internalName, value) :
                                    validator.validate(name, value));
                        if (!validated)
                        {
                            throw new IllegalArgumentException(LOCALISER.msg("008012", name, value));
                        }
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.