Examples of validate()


Examples of org.apache.uima.simpleserver.config.ServerSpec.validate()

      assertTrue(false);
    } catch (XmlException e) {
      e.printStackTrace();
      assertTrue(false);
    }
    List<SimpleServerException> exc = serverSpec.validate(cas.getTypeSystem());
    if (exc.size() > 0) {
      exc.get(0).printStackTrace();
      assertTrue(false);
    }
    ResultExtractor ex = new ResultExtractor();
View Full Code Here

Examples of org.apache.uima.simpleserver.config.xml.UimaSimpleServerSpecDocument.UimaSimpleServerSpec.validate()

    // Do validation. If XML is not valid, throw first error.
    ArrayList<XmlError> validationErrors = new ArrayList<XmlError>();
    XmlOptions validationOptions = new XmlOptions();
    validationOptions.setErrorListener(validationErrors);
    boolean isValid = specBean.validate(validationOptions);
    if (!isValid) {
      Iterator<XmlError> iter = validationErrors.iterator();
      if (iter.hasNext()) {
        throw new XmlException(iter.next());
      }
View Full Code Here

Examples of org.apache.webbeans.container.BeanManagerImpl.validate()

                //Check injection points
                if (injectionPoints != null) {
                    for (InjectionPoint injectionPoint : injectionPoints) {
                        if (!injectionPoint.isDelegate()) {
                            manager.validate(injectionPoint);
                        } else {
                            if (!bean.getBeanClass().isAnnotationPresent(javax.decorator.Decorator.class)
                                    && !webBeansContext.getBeanManagerImpl().containsCustomDecoratorClass(bean.getBeanClass())) {
                                throw new WebBeansConfigurationException(
                                        "Delegate injection points can not defined by beans that are not decorator. Injection point : "
View Full Code Here

Examples of org.apache.webbeans.util.WebBeansUtil.validate()

                {
                    final BaseProducerProducer producerProducer = BaseProducerProducer.class.cast(producer);
                    final Set<InjectionPoint> disposalIPs = producerProducer.getDisposalIPs();
                    if (disposalIPs != null && !producerProducer.isAnyDisposal()) // any can be ambiguous but that's not an issue
                    {
                        webBeansUtil.validate(disposalIPs, bean);
                    }
                } // else?
            }
        }
    }
View Full Code Here

Examples of org.apache.wicket.markup.html.form.FormComponent.validate()

    final FormComponent formComponent = getFormComponent();

    try
    {
      formComponent.inputChanged();
      formComponent.validate();
      if (formComponent.hasErrorMessage())
      {
        formComponent.invalid();

        onError(target, null);
View Full Code Here

Examples of org.apache.wicket.markup.html.form.TextField.validate()

    {
      private static final long serialVersionUID = 1L;

      protected void onEvent(AjaxRequestTarget target)
      {
        text.validate();
        submit.setEnabled(text.isValid());
        target.addComponent(submit);
      }
    });
    form.add(text);
View Full Code Here

Examples of org.apache.wicket.markup.html.form.validation.IFormValidator.validate()

      if (isActiveStep())
      {
        for (Iterator i = validators.iterator(); i.hasNext();)
        {
          IFormValidator v = (IFormValidator)i.next();
          v.validate(form);
        }
      }
    }

    /**
 
View Full Code Here

Examples of org.apache.wicket.validation.IValidator.validate()

        "read@my.info", "my @email.com", "my@ email.com", "\"John Doe\"@email.com",
        "no@domain", "german@m�dchen.de", "another.german@�m��l.com" };
    for (String emailAddress : validEmails)
    {
      Validatable validatable = new Validatable(emailAddress);
      validator.validate(validatable);
      assertTrue(emailAddress + " wasn't valid but should be", validatable.isValid());
    }
  }

View Full Code Here

Examples of org.apache.wiki.ui.InputValidator.validate()

            session.addMessage( SESSION_MESSAGES, rb.getString("security.error.createprofilebeforelogin") );
        }

        validator.validateNotNull( profile.getLoginName(), rb.getString("security.user.loginname") );
        validator.validateNotNull( profile.getFullname(), rb.getString("security.user.fullname") );
        validator.validate( profile.getEmail(), rb.getString("security.user.email"), InputValidator.EMAIL );

        // If new profile, passwords must match and can't be null
        if ( !m_engine.getAuthenticationManager().isContainerAuthenticated() )
        {
            String password = profile.getPassword();
View Full Code Here

Examples of org.apache.woden.wsdl20.validation.Assertion.validate()

        //Check WSDL 2.0 assertions
        List wsdlAsserts = (List)fWsdlAsserts.get(targetClass);
        if (wsdlAsserts != null) {
            for (Iterator i = wsdlAsserts.iterator(); i.hasNext();) {
                a = (Assertion) i.next();
                a.validate(target, fWodenCtx);
            }
        }
        //Check extension assertions (get them from ExtensionRegistry)
        List extAsserts = (List)fExtAsserts.get(targetClass);
        if (extAsserts != null) {
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.