Examples of validate()


Examples of com.ecyrd.jspwiki.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 com.elastisys.scale.commons.net.smtp.SmtpServerSettings.validate()

    public void validate() throws CloudAdapterException {
      try {
        SmtpServerSettings settings = new SmtpServerSettings(
            getSmtpHost(), getSmtpPort(), getAuthentication(),
            isUseSsl());
        settings.validate();
      } catch (Exception e) {
        throw new CloudAdapterException(format(
            "failed to validate mailServerSettings: %s",
            e.getMessage()), e);
      }
View Full Code Here

Examples of com.emitrom.lienzo.client.core.AttributeType.validate()

                {
                    ctx.addInvalidAttributeError(type);
                }
                else
                {
                    atyp.validate(aobj.get(attrName), ctx);
                }
                ctx.pop(); // attrName
            }
        }
        ctx.pop(); // attributes
View Full Code Here

Examples of com.espertech.esper.view.HistoricalEventViewable.validate()

        {
            HistoricalEventViewable historicalEventViewable = historicalEventViewables[stream];
            if (historicalEventViewable == null) {
                continue;
            }
            historicalEventViewable.validate(services.getEngineImportService(),
                    typeService,
                    statementContext.getMethodResolutionService(),
                    statementContext.getTimeProvider(),
                    statementContext.getVariableService(), evaluatorContextStmt,
                    services.getConfigSnapshot(), services.getSchedulingService(), services.getEngineURI(),
View Full Code Here

Examples of com.esri.gpt.catalog.schema.Schema.validate()

  // un-bind editor values, validate the input
  UiContext uiContext = new UiContext();
  schema.unBind(uiContext,editorForm);

  try {
    if (!asDraft) schema.validate();
  } catch (ValidationException e) {
    for (ValidationError error: e.getValidationErrors()) {
      if (error.getSection() != null) {
        if (!error.getSection().getOpen()) {
          error.getSection().forceOpen(editorForm);
View Full Code Here

Examples of com.esri.gpt.catalog.search.SearchConfig.validate()

    sCfg.setAllowTemporalSearch(Val.chkBool(xpath.evaluate("@allowTemporalSearch",ndSearch),false));
    sCfg.setJsfSuffix(Val.chkStr(xpath.evaluate(
        "@jsfSuffix", ndSearch)));
    sCfg.setGptToCswXsltPath(xpath.evaluate("@gpt2cswXslt", ndSearch));
    sCfg.setMapViewerUrl(Val.chkStr(xpath.evaluate("@mapViewerUrl", ndSearch),""));
    sCfg.validate();
  }


  NodeList nodes = (NodeList) xpath.evaluate(
      "catalog/search/repositories/repository",
View Full Code Here

Examples of com.esri.gpt.control.webharvest.validator.IValidator.validate()

* @return <code>true</code> if data is valid
*/
public boolean validate(MessageBroker mb) {
  ValidatorFactory factory = ValidatorFactory.getInstance();
  IValidator validator = factory.getValidator(_harvestRepository);
  return validator!=null? validator.validate(new MessageCollectorAdaptor(mb)): true;
}

/**
* Gets string representation of the object.
* @return string representation
View Full Code Here

Examples of com.et.ar.validators.UniqueCreateValidator.validate()

            Unique v_unique = f.getAnnotation(Unique.class);
            if (v_unique != null){
                UniqueCreateValidator ucv = new UniqueCreateValidator(clasz,orm.table,f.getName(),v_unique);
                try{
                    Object value = f.get(this);
                    if (ucv.validate(value) == false){
                        errors.add(ucv.getMessage());
                    }
                }
                catch(IllegalAccessException e){
                    throw new ValidateException(e);
View Full Code Here

Examples of com.et.ar.validators.UniqueUpdateValidator.validate()

            Unique v_unique = f.getAnnotation(Unique.class);
            if (v_unique != null){
                try{
                    Object idValue = OrmInfo.getFieldValue(clasz,orm.id,this);
                    UniqueUpdateValidator uuv = new UniqueUpdateValidator(clasz,orm.table,f.getName(),orm.id,idValue,v_unique);
                    if (uuv.validate(f.get(this)) == false){
                        errors.add(uuv.getMessage());
                    }
                }
                catch(Exception e){
                    throw new ValidateException(e);
View Full Code Here

Examples of com.eviware.soapui.impl.support.definition.DefinitionCache.validate()

      try
      {
        DefinitionCache cache = iface == null ? new StandaloneDefinitionCache<T>()
            : new InterfaceConfigDefinitionCache<T>( iface );

        if( !cache.validate() )
        {
          monitor.setProgress( 1, "Caching Definition from url [" + url + "]" );

          currentLoader = getDefinitionLoader();
          currentLoader.setProgressMonitor( monitor, 2 );
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.