Examples of validate()


Examples of org.objectstyle.wolips.wodclipse.core.completion.WodParserCache.validate()

            progressMonitor.subTask("Building WO " + cache.getWodEntry().getFile().getName() + " ...");
          }
        }
        cache.clearParserCache();
        cache.parse();
        cache.validate(true, false);
      }
      catch (Throwable t) {
        t.printStackTrace();
      }
      // System.out.println("WodBuilder._validateComponent: done with " +
View Full Code Here

Examples of org.odftoolkit.odfdom.utils.ErrorHandlerStub.validate()

      Assert.fail(ex.toString());
    }
    handler1.validate();
    handler2.validate();
    handler3.validate();
    handler4.validate();
  }
}
View Full Code Here

Examples of org.ogce.schemas.gfac.validator.SchemaValidator.validate()

        try {
            ServiceMapType serviceMap = ServiceMapDocument.Factory.parse(serviceMapAsStr)
                    .getServiceMap();
           // FIXME: Already validated when you create service map.
            SchemaValidator validator = new SchemaValidator(serviceMap);
            validator.validate();
            QName serviceQname = new QName(serviceMap.getService().getServiceName()
                    .getTargetNamespace(), serviceMap.getService().getServiceName().getStringValue());
            WSDLGenerator wsdlGenerator = new WSDLGenerator();
            Hashtable serviceTable = wsdlGenerator.generateWSDL(null, serviceQname, null, serviceMap,
                    true);
View Full Code Here

Examples of org.olat.core.gui.components.form.flexible.elements.DateChooser.validate()

   
    if (dateElem.isEmpty()) {
      return !dateElem.isMandatory() || !dateElem.isEmpty("new.form.mandatory");
    }
    List<ValidationStatus> validation = new ArrayList<ValidationStatus>();
    dateElem.validate(validation);
    if (validation.size()==0){
      return true;
    }else{
      // errorkey should be set by dateElem.validate formItem.setErrorKey(i18nFormElementLabelKey()+ ".error", null);   
      return false;     
View Full Code Here

Examples of org.openbravo.base.validation.PropertyValidator.validate()

        throw ve;
      }

      final PropertyValidator v = getValidator();
      if (v != null) {
        final String msg = v.validate(value);
        if (msg != null) {
          final ValidationException ve = new ValidationException();
          ve.addMessage(this, msg);
          throw ve;
        }
View Full Code Here

Examples of org.openbravo.service.system.DatabaseValidator.validate()

   */
  public void testSystemValidation() {
    setUserContext("0");
    final DatabaseValidator databaseValidator = new DatabaseValidator();
    databaseValidator.setDatabase(createDatabaseObject());
    final SystemValidationResult result = databaseValidator.validate();
    printResult(result);
  }

  private Database createDatabaseObject() {
    final Properties props = OBPropertiesProvider.getInstance().getOpenbravoProperties();
View Full Code Here

Examples of org.openbravo.service.system.ModuleValidator.validate()

   * Performs module validation using the {@link ModuleValidator}.
   */
  public void testModulesValidation() {
    setUserContext("0");
    final ModuleValidator moduleValidator = new ModuleValidator();
    final SystemValidationResult result = moduleValidator.validate();
    printResult(result);
  }

  private void printResult(SystemValidationResult result) {
    for (SystemValidationType validationType : result.getWarnings().keySet()) {
View Full Code Here

Examples of org.openbravo.wad.validation.WADValidator.validate()

      TabsData[] tabsData = td.toArray(new TabsData[0]);
      log4j.info(tabsData.length + " tabs to compile.");

      log4j.info("Verifing tabs...");
      WADValidator validator = new WADValidator(wad.pool, tabsData);
      WADValidationResult validationResult = validator.validate();
      validationResult.printLog();
      if (validationResult.hasErrors() && failOnErrorVerification) {
        throw new Exception("Tabs verification has errors");
      }
View Full Code Here

Examples of org.opencustomer.util.logon.Logon.validate()

                if(log.isDebugEnabled())
                    log.debug("do ldap login");
                logon = new LdapLogon();         
            }
           
            UserVO user = logon.validate(form.getLogin(), form.getPassword(), request.getRemoteAddr(), Logon.Type.WEBAPP, errors);
           
            if((user == null || !errors.isEmpty()) && SystemConfiguration.getInstance().getBooleanValue(SystemConfiguration.Key.LDAP_AUTHENTICATION_ENABLED) && !LdapUtil.getInstance().testLdapConnection()) {
                errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("module.common.login.error.noLdapConnection"));
            }
           
View Full Code Here

Examples of org.openengsb.core.api.validation.FieldValidator.validate()

        }

        @Override
        protected void onValidate(IValidatable<T> validatable) {
            FieldValidator validator = this.attribute.getValidator();
            SingleAttributeValidationResult validationResult = validator.validate(validatable.getValue().toString());
            if (!validationResult.isValid()) {
                error(validatable, validationResult.getErrorMessageId());
            }
        }
    }
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.