Examples of validate()


Examples of org.codehaus.spice.configkit.ConfigValidator.validate()

                throw new IllegalStateException( message );
            }

            final ConfigValidator validator =
                ConfigValidatorFactory.create( inputSource, c_resolver );
            final ValidationResult result = validator.validate( input,
                                                                (ContentHandler)handler );
            processValidationResults( result, logger );
        }
        return handler.getConfiguration();
    }
View Full Code Here

Examples of org.compiere.swing.CDialog.validate()

      ProcessModalDialog dialog = new ProcessModalDialog(m_ctx, Env.getWindow(m_curWindowNo), Env.getHeader(m_ctx, m_curWindowNo),
          this, m_curWindowNo, vButton.getProcess_ID(), table_ID,
          record_ID, startWOasking);
      if (dialog.isValidDialog())
      {
        dialog.validate();
        dialog.pack();
        AEnv.showCenterWindow(Env.getWindow(m_curWindowNo), dialog);
      }
    }
  }  //  actionButton
View Full Code Here

Examples of org.crank.validation.FieldValidator.validate()

        } else {
            oValue = convertIfNeeded(value, type);
        }

        /* Actually validated the field. */
        ValidatorMessage message = (ValidatorMessage) validator.validate(oValue, "none");
        if (!message.hasError()) {
            log.info("VALID");
            writer.print("valid");
        } else {
            log.info("NOT VALID");
View Full Code Here

Examples of org.crank.validation.validators.CompositeValidator.validate()

            List <MessageHolder> vMessageHolders) {

        List<ValidatorMetaData> metaDataList = readMetaData(object.getClass(),
                property);
        CompositeValidator cv = createValidator(metaDataList);
        ValidatorMessageHolder holder = cv.validate(objectProperty, property);
        vMessageHolders.add(new MessageHolder(ValidationContext.getBindingPath(), holder));
    }

    protected abstract boolean shouldFieldBeValidated() ;
View Full Code Here

Examples of org.criticalfailure.torchlight.core.domain.validator.IObjectPropertyValidator.validate()

                logger.trace("validator: " + validator);

                if(validator != null) {
                    logger.debug("invoking validator: " + validator);
                    ObjectPropertyValidationResult result = new ObjectPropertyValidationResult();
                    validator.validate(op, proposedValue, result);

                    return result;
                }
            }
        }
View Full Code Here

Examples of org.csu.idl.xtext.validation.IDLJavaValidator.validate()

 
    TranslationUnit trunit = (TranslationUnit) model.getContents().get(0);
       
    BasicDiagnostic bd = new BasicDiagnostic();
    IDLJavaValidator idlValidator = new IDLJavaValidator();
    idlValidator.validate(trunit, bd, new HashMap<Object,Object>());
    new ShowErrors().show(bd);
   
    if (bd.getSeverity() == Diagnostic.ERROR)
      System.exit(-1);
   
View Full Code Here

Examples of org.data2semantics.platform.domain.Domain.validate()

      List<?> couples = (List <?>) module.get("couple");
   
     
      List<String> errors = new ArrayList<String>();
     
      if(!domain.validate(source, errors)){
        throw new InconsistentWorkflowException(errors);
      }
     
      parseInputAndCouples(builder, moduleName, domain, sourceTail, inputMap, couples);
     
View Full Code Here

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

                    }

                    if (validator != null)
                    {
                        boolean validated = (mapping.internalName != null ?
                                validator.validate(mapping.internalName, value) :
                                    validator.validate(propertyName, value));
                        if (!validated)
                        {
                            throw new IllegalArgumentException(LOCALISER.msg("008012", propertyName, value));
                        }
View Full Code Here

Examples of org.datanucleus.state.StateManager.validate()

                    putObjectIntoCache(sm);
                }

                try
                {
                    sm.validate();
                }
                catch (NucleusObjectNotFoundException onfe)
                {
                    // Object doesn't exist, so remove from L1 cache
                    removeObjectFromCache(sm.getInternalObjectId());
View Full Code Here

Examples of org.datanucleus.store.rdbms.table.TableImpl.validate()

                }

                if (validateTables && !columnsValidated) // Table not just created and validation requested
                {
                    // Check down to the column structure where required
                    t.validate(getCurrentConnection(), validateColumns, false, autoCreateErrors);
                }
                else if (!columnsValidated)
                {
                    // Validation not requested but allow initialisation of the column information
                    String initInfo = getStringProperty("datanucleus.rdbms.initializeColumnInfo");
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.