Examples of validate()


Examples of net.sf.jiga.xtended.ui.InstructionsPane.validate()

            pane.addStepComponent(step, new JLabel(color_options.get(aKey).getValue(Action.NAME).toString()));
            pane.addStepComponent(step, sw_color_option.get(aKey));
        }
        sw_zoom.setValue(100);
// Applet may be visible so validate in swing EDT
        pane.validate();
    }
}
View Full Code Here

Examples of net.sf.launch4j.config.Config.validate()

   * @return Output file path.
   */
  public File build() throws BuilderException {
    final Config c = ConfigPersister.getInstance().getConfig();
    try {
      c.validate();
    } catch (InvariantViolationException e) {
      throw new BuilderException(e.getMessage());
    }
    File rc = null;
    File ro = null;
View Full Code Here

Examples of net.sf.oval.Validator.validate()

                }
            }
        }

        //perform validation
        List<ConstraintViolation> violations = validator.validate(action);
        addValidationErrors(violations.toArray(new ConstraintViolation[violations.size()]), action, valueStack, null);
    }

  private void addValidationErrors(ConstraintViolation[] violations, Object action, ValueStack valueStack, String parentFieldname) {
    if (violations != null) {
View Full Code Here

Examples of net.sf.robocode.repository.items.RobotItem.validate()

              tested = true;
              break;
            }
          }

          if (tested || robot.validate()) {
            battlingRobotsList.add(robot.createRobotSpecification(null, teamId));
          }
        }
      } else {
        final RobotItem robot = (RobotItem) item;
View Full Code Here

Examples of net.sf.saxon.s9api.SchemaValidator.validate()

        SchemaValidator validator = manager.newSchemaValidator();
        validator.setDestination(destination);

        dumpTree(document, "Input");

        validator.validate(document.asSource());

        XdmNode valid = destination.getXdmNode();

        dumpTree(valid, "Output");
    }
View Full Code Here

Examples of net.sourceforge.annovalidator.builtin.validators.ValidateCompositeDate.CompositeDateValidator.validate()

            throws ReportedValidationException {
        ThreePartDateDMY testObject = new ThreePartDateDMY("04", "1", "2008");
        CompositeDateValidator validator = new CompositeDateValidator();
        CompositeDatePart[] dateParts = testObject.getClass().getAnnotation(
                ValidateCompositeDate.class).dateParts();
        assertTrue(validator.validate(testObject, dateParts, ""));
    }

    @Test
    public void testValidationMethodPassWithTwoDigitMonth()
            throws ReportedValidationException {
View Full Code Here

Examples of net.sourceforge.annovalidator.builtin.validators.ValidateDateCompare.DateComparisonValidator.validate()

                : TestObjectForComparisonTypes.class.getDeclaredFields()) {
            ValidateDateCompare annotation =
                (ValidateDateCompare) ReflectionUtil.getAnnotation(
                        field, ValidateDateCompare.class);
            if (annotation != null) {
                assertTrue(validator.validate(
                        (DateSource) ReflectionUtil.
                            determineAnnotationParameterValue(
                                    annotation, "firstDate"),
                        (DateSource) ReflectionUtil.
                            determineAnnotationParameterValue(
View Full Code Here

Examples of net.sourceforge.chaperon.grammar.Grammar.validate()

        SAXGrammarGenerator grammargenerator = new SAXGrammarGenerator();
        SourceUtil.toSAX(_grammarSource, grammargenerator, this.manager);

        Grammar grammar = grammargenerator.getGrammar();
        SyntaxErrorException see = grammar.validate();
        if (see!=null)
        {
          getLogger().error("Grammar is not correct", see);
          throw new ProcessingException("Grammar is not correct", see);
        }
View Full Code Here

Examples of net.sourceforge.cruisecontrol.Publisher.validate()

        ValidationHelper.assertTrue(publishers.size() > 0,
            "conditional publishers should have at least one nested publisher");

        for (Iterator iterator = publishers.iterator(); iterator.hasNext();) {
            Publisher publisher = (Publisher) iterator.next();
            publisher.validate();
        }
    }

    /**
     * Adds a nested publisher
View Full Code Here

Examples of net.sourceforge.cruisecontrol.buildloggers.MergeLogger.validate()

        project.setLogXmlEncoding("ISO-8859-1");
        project.getLog().validate();

        MergeLogger logger = new MergeLogger();
        logger.setFile(TEST_DIR + File.separator + "_auxLog1.xml");
        logger.validate();
        project.getLog().addLogger(logger);

        logger = new MergeLogger();
        logger.setDir(TEST_DIR + File.separator + "_auxLogs");
        logger.validate();
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.