Examples of validate()


Examples of org.zanata.webtrans.shared.model.ValidationAction.validate()

        if (tft != null) {
            ValidationAction action =
                    ValidationFactoryProvider.getFactoryInstance()
                            .getValidationAction(validationId);
            List<String> errorList =
                    action.validate(tft.getTextFlow().getContents().get(0), tft
                            .getContents().get(0));
            return !errorList.isEmpty();
        }
        return null;
    }
View Full Code Here

Examples of org.zkoss.zss.model.Range.validate()

    }
    if (_inCallback) { //skip validation check
      return true;
    }
    final Range rng = Ranges.range(sheet, row, col);
    final DataValidation dv = rng.validate(txt);
    if (dv != null) {
      if (dv.getShowErrorBox()) {
        String errTitle = dv.getErrorBoxTitle();
        String errText = dv.getErrorBoxText();
        if (errTitle == null) {
View Full Code Here

Examples of org.zkoss.zul.Constraint.validate()

    final Constraint constr = getConstraint();
    if (constr != null) { //then _auxinf must be non-null
      //Bug 1698190: contructor might be zscript
      Scopes.beforeInterpret(this);
      try {
        constr.validate(this, value);
        if (!_auxinf.checkOnly && (constr instanceof CustomConstraint)) {
          try {
            ((CustomConstraint)constr).showCustomError(this, null);
            //not call thru showCustomError(Wrong...) for better performance
          } catch (Throwable ex) {
View Full Code Here

Examples of pdp.scrabble.game.Board.validate()

  }

  System.out.println("Clear board and validate it");
  board.clear();
  try {
      board.validate(true);
      System.out.println("Board check ignored, because no new letter added");
  }
  catch (BoardWrongWordPlace ex) {
      fail("BoardWrongWordPlace was not expected");
  }
View Full Code Here

Examples of pl.net.bluesoft.rnd.processtool.ui.basewidgets.xml.jaxb.WidgetsDefinitionElement.validate()

            public void buttonClick(Button.ClickEvent event) {
                try {
                    String value = (String) rawText.getValue();
                    WidgetsDefinitionElement unmarshall = (WidgetsDefinitionElement) definitionLoader.unmarshall(value);
                    hierarchyEditor.processXml(value);
                    List<XmlValidationError> xmlValidationErrors = unmarshall.validate();
                    if (xmlValidationErrors != null && !xmlValidationErrors.isEmpty()) {
                        getApplication().getMainWindow().showNotification(getLocalizedMessage("validation-errors"),
                                joinValidationErrors(xmlValidationErrors),
                                Window.Notification.TYPE_ERROR_MESSAGE);
                    } else {
View Full Code Here

Examples of prePostFeature.xbean.readOnlyBean.purchaseOrder.PurchaseOrderDocument.validate()

        it[0].setPrice(10);

        assertEquals(sExpected, poDoc.xmlText());

        assertTrue(!poDoc.validate());
    }
}
View Full Code Here

Examples of prefuse.Display.validate()

        Dimension size = new Dimension( (int) bounds.getWidth(), (int) bounds.getHeight() );
        display.setSize( size );

        if( !display.isValid() )
        {
            display.validate();
        }
    }

    /* package */ void zoomOut()
    {
View Full Code Here

Examples of ptolemy.actor.IOPort.validate()

                        // Force all dependents to re-evaluate.
                        // This makes the parameters in the actors of
                        // the refinement take on new values immediately
                        // after the action is committed.
                        destination.validate();

                        if (_debugging) {
                            _debug(getFullName() + " variable: "
                                    + destination.getName() + ", value: "
                                    + token);
View Full Code Here

Examples of ptolemy.actor.gt.GTIngredientList.validate()

            GTIngredient incredient = _createIngredientFromRow(row);
            ingredientList.add(incredient);
        }

        try {
            ingredientList.validate();
        } catch (ValidationException e) {
            String message = e.getMessage()
                    + "\nPress Edit to return to modify the criterion or "
                    + "operation, or press Revert to revert to its previous "
                    + "value.";
View Full Code Here

Examples of ptolemy.data.expr.Parameter.validate()

                    Token result = _parseTreeEvaluator.evaluateParseTree(
                            _parseTree, _scope);
                    parameter.setToken(result);
                    // Validate the parameter to ensure that any value
                    // dependents are notified.
                    parameter.validate();
                }
            } catch (Exception ex) {
                throw new PtalonRuntimeException("Trouble making connections",
                        ex);
            }
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.