Examples of validate()


Examples of eu.planets_project.pp.plato.validators.TreeValidator.validate()

     */
    public boolean validate(boolean showValidationErrors) {
        // make sure that the sum of all subnodes/leaves of each node is 1.0
        ITreeValidator validator = new TreeValidator();
        // We don't need the last parameter because all nodes are expanded anyway
        return validator.validate(selectedPlan.getTree().getRoot(), this, null, showValidationErrors);

    }

    /**
     * @see INodeValidator#validateNode(TreeNode, List, List)
View Full Code Here

Examples of eu.planets_project.services.validation.odfvalidator.utils.CoreOdfValidator.validate()

    File inputOdfFile = DigitalObjectUtils.toFile(digitalObject);
    inputOdfFile.deleteOnExit();
   
    CoreOdfValidator odfValidator = new CoreOdfValidator();
   
    OdfValidatorResult result = odfValidator.validate(inputOdfFile, parameters);
   
    ValidateResult vr = null;
   
    if(result.documentIsValid()) {
      vr = new ValidateResult.Builder(format,
View Full Code Here

Examples of eu.scape_project.planning.utils.SchematronValidator.validate()

       
        StringWriter reportWriter = new StringWriter();

        URIResolver resolver = new LocalURIResolver().addHrefBase("iso_schematron_skeleton_for_xslt1.xsl", "schematron/iso_schematron_skeleton_for_xslt1.xsl");
       
        validator.validate(new StreamSource(getClass().getClassLoader().getResourceAsStream("qld/sample_measures1.xml")),
            new StreamSource(getClass().getClassLoader().getResourceAsStream("qld/sample_qld1.xml")), new StreamResult(reportWriter), resolver);
       
       
    }
View Full Code Here

Examples of flex2.compiler.css.StylesContainer.validate()

                if (rootStylesContainer != null)
                {
                    // Swap in root's Logger, so warnings get associated correctly.
                    Logger originalLogger = ThreadLocalToolkit.getLogger();
                    ThreadLocalToolkit.setLogger(u.getSource().getLogger());
                    rootStylesContainer.validate(symbolTable, nameMappings, u.getStandardDefs(),
                                                 compilerConfiguration.getThemeNames(), null);
                    ThreadLocalToolkit.setLogger(originalLogger);
                }

                Source source = u.getSource();
View Full Code Here

Examples of fr.imag.adele.apam.maven.plugin.validation.Validator.validate()

       
            ErrorReport validatorResult = new ErrorReport(getLog());
           
      for (ComponentDeclaration component : components) {
        if (component instanceof SpecificationDeclaration) {
          validator.validate(component, validatorResult);
        }
      }

      for (ComponentDeclaration component : components) {
        if (component instanceof AtomicImplementationDeclaration) {
View Full Code Here

Examples of fr.insalyon.citi.golo.runtime.adapters.AdapterDefinition.validate()

      Map<String, MethodHandle> overrides = (Map<String, MethodHandle>) configuration.get("overrides");
      for (Map.Entry<String, MethodHandle> override : overrides.entrySet()) {
        definition.overridesMethod(override.getKey(), override.getValue());
      }
    }
    definition.validate();
    Class<?> adapterClass = adapterGenerator.generateIntoDefinitionClassloader(definition);
    return new Maker(definition, adapterClass);
  }
}
View Full Code Here

Examples of games.stendhal.server.core.account.MinLengthValidator.validate()

   * Tests for emptyString.
   */
  @Test
  public void testEmptyString() {
    final MinLengthValidator validator = new MinLengthValidator("", 4);
    Assert.assertNotNull(validator.validate());
  }

  /**
   * Tests for shortString.
   */
 
View Full Code Here

Examples of games.stendhal.server.core.account.NameCharacterValidator.validate()

   * Tests for specialCharcter.
   */
  @Test
  public void testSpecialCharcter() {
    final NameCharacterValidator validator = new NameCharacterValidator("asdf_");
    Assert.assertNotNull(validator.validate());
  }

  /**
   * Tests for startingWithNumber.
   */
 
View Full Code Here

Examples of games.stendhal.server.entity.mapstuff.game.movevalidator.MoveValidator.validate()

   */
  public void onTokenMoved(Player player, BoardToken token) {
    int xIndex = getXIndex(token.getX());
    int yIndex = getYIndex(token.getY());
    MoveValidator validator = new TicTacToeMovementValidatorChain();
    if (!validator.validate(this, player, token, xIndex, yIndex)) {
      token.undoMove();
      return;
    }
 
    completeMove(xIndex, yIndex, token);
View Full Code Here

Examples of gov.nist.scap.xccdf.document.XCCDFDocument.validate()

    validateOptions(options);

    XCCDFDocument document = XCCDFDocumentFactory.getInstance(checklist, options.getTailoringInstance());

        log.debug("validating XCCDF content");
      if (!document.validate()) {
        throw new ValidationException("invalid xccdf document: "+document.getId());
      }

     
      ResultContext resultContext;
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.