Examples of validate()


Examples of syberiada.SyberiadaFrame.validate()

                    gra.setBounds(thisPanel.getBounds());
                    gra.init(opcjaDo);
                    gra.setAlpha(0);
                    parent.add(gra);
                    parent.setComponentZOrder(gra, 0);
                    sFrame.validate();
                    sFrame.repaint();
                    gra.appear(1f, 100, 200); //1000, 200
                }
                @Override
                public void mousePressed(MouseEvent e) {
View Full Code Here

Examples of thrift.test.StructB.validate()

    StructA valid = new StructA("valid");
    StructA invalid = new StructA();

    StructB b = new StructB();
    try {
      b.validate();
      fail();
    } catch (TException e) {
      // expected
    }
View Full Code Here

Examples of tk.eclipse.plugin.htmleditor.ICustomTagValidator.validate()

            HashMap<String, String> attrMap = new HashMap<String, String>();
            FuzzyXMLAttribute[] attrs = element.getAttributes();
            for(int i=0;i<attrs.length;i++){
              attrMap.put(attrs[i].getName(),attrs[i].getValue());
            }
            validator.validate(this, attrMap,element,info);
            return;
          }
        }
        if(!prefix.equals("jsp")){
          TLDInfo tld = getTLDInfo(prefix);
View Full Code Here

Examples of uk.ac.ebi.pride.tools.GenericSchemaValidator.validate()

        genericValidator.setSchema(new URI("http://www.psidev.info/files/mzIdentML1.1.0.xsd"));

        ErrorHandlerIface handler = new ValidationErrorHandler();
        genericValidator.setErrorHandler(handler);
        BufferedReader br = new BufferedReader(new FileReader(mzidFile));
        genericValidator.validate(br);

        //noinspection unchecked
        List<String> errorMsgs = handler.getErrorMessages();
        if (!errorMsgs.isEmpty()) {
            int errorCount = 0;
View Full Code Here

Examples of uk.co.o2.json.schema.JsonSchema.validate()

    @Test
    public void validateSchema_shouldWorkFromADifferentPackage() throws Exception {
        JsonSchema schema = schemaFactory.getSchema(getClass().getClassLoader().getResource("sample-json-schema.json"));
        JsonNode json = jsonFactory.createJsonParser(getClass().getClassLoader().getResource("valid-json-document.json")).readValueAsTree();

        List<ErrorMessage> errors = schema.validate(json);

        assertTrue(errors.isEmpty());
    }

}
View Full Code Here

Examples of uk.gov.nationalarchives.droid.gui.filter.domain.GenericMetadata.validate()

                // get meta data object from the selected string.
                GenericMetadata metadata = filterDialog.getFilterDomain()
                        .getMetaDataFromFieldType(firstComboBoxSelectedItem);

                // Validate the values.
                metadata.validate(freeTextAtRow);
            } catch (FilterValidationException filterValidationException) {
                errorStrings.add(filterValidationException.getMessage());
            }
            FilterCriterionImpl filterCriteria = filterDialog.getFilterContext().getFilterCriterion(i);
            filterCriteria.setValueFreeText(freeTextAtRow);
View Full Code Here

Examples of util.ui.ChannelLabel.validate()

      else {
        Channel[] channels = mModel.getChannels();
        width = UiUtilities.getChannelIconWidth();
        for (Channel channel : channels) {
          ChannelLabel label = new ChannelLabel(channel);
          label.validate();
          width = Math.max(width, (int)label.getPreferredSize().getWidth());
        }
        column.setPreferredWidth(width);
        column.setMaxWidth(250);
        column.setMinWidth(UiUtilities.getChannelIconWidth());
View Full Code Here

Examples of validation.visitor.XMLVisitAndValidate.validate()

    // visite du xml et generation du fichier de contrainte
    XMLVisitAndValidate xvv = new XMLVisitAndValidate(name,path,format,solver);
    if (all)
      xvv.validateAll(timeout);
    else
      xvv.validate(timeout);
  }


  public String toString() {
    String s = "bench name : " + name;
View Full Code Here

Examples of xint.test.PositionDocument.validate()

    public static void testOutOfRange() throws Exception
    {
        PositionDocument doc = PositionDocument.Factory.parse("<position xmlns='java:int.test'><lat>43</lat><lon>037</lon></position>");
        Assert.assertEquals(43, doc.getPosition().getLat());
        Assert.assertEquals(37, doc.getPosition().getLon());
        Assert.assertTrue(doc.validate());
       
        doc = PositionDocument.Factory.parse("<position xmlns='java:int.test'><lat>443</lat><lon>737</lon></position>");
        Assert.assertEquals(443, doc.getPosition().getLat());
        Assert.assertEquals(737, doc.getPosition().getLon());
        Assert.assertTrue(!doc.validate());
View Full Code Here

Examples of xnap.util.prefs.Validator.validate()

    {
  if (validate) {
      Validator v = (Validator)validatorsByKey.get(namespace + key);
      if (v != null) {
    try {
        v.validate(newValue);
    }
    catch (IllegalArgumentException e) {
        logger.debug("invalid value: " + namespace + key + " = "
         + newValue, e);
        return;
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.