Examples of check()


Examples of anvil.script.expression.Expression.check()

    int n = _size;
    for(int i=0; i<n; i++) {
      Parameter param = params[i];
      Expression expr = param.expression;
      if (expr != null) {
        expr.check(context);
        if (expr.isConstant()) {
          param.value = expr.eval();
        } else {
          context.error(expr.getLocation(), "Default value for parameter '"+param.name+"' is not a constant");
        }
View Full Code Here

Examples of bnGUI.venn.AllParameters.check()

    checking = true;

    commitFields();

    AllParameters params = getParameters();
    boolean checkres = params.check();
    if (! checkres) userSeen = false;
    setParameters(params);

    checking = false;
   
View Full Code Here

Examples of br.com.caelum.seleniumdsl.Form.check()

        .form("form");
    form.field("login")
        .type("myLogin");
    form.field("password")
        .type("myPassword");
    form.check("remember");

    form.submit();

    // logged successfuly
    Assert.assertEquals("Main Page", browser.currentPage()
View Full Code Here

Examples of cec.taxud.fiscalis.vies.common.vat.ValidationRoutine.check()

    int i = 0;
    for (; i < vat.length(); ++i) {
      String prefix = vat.substring(0, i);
      ValidationRoutine routine = (ValidationRoutine) VALIDATORS.get(prefix);
      if (routine != null) {
        return routine.check(vat.substring(i));
      }
    }
    return false;
  }
View Full Code Here

Examples of ch.entwine.weblounge.common.impl.content.page.PageSecurityContext.check()

    // Deny all
    context.allow(publish, editor);

    // Test (publish, editor) - expected: success
    if (!context.check(publish, editor)) {
      fail("Check for permission " + publish + " and role " + editor + " failed while it shouldn't");
    }
  }

  /**
 
View Full Code Here

Examples of ch.ethz.inf.vs.californium.observe.ObserveRelation.check()

          LOGGER.fine("Response has error code "+response.getCode()+" and must be sent as CON");
          response.setType(Type.CON);
          relation.cancel();
        } else {
          // Make sure that every now and than a CON is mixed within
          if (relation.check()) {
            LOGGER.fine("The observe relation requires the notification to be sent as CON");
            response.setType(Type.CON);
          // By default use NON, but do not override resource decision
          } else if (response.getType()==null) {
            response.setType(Type.NON);
View Full Code Here

Examples of classycle.dependency.DependencyChecker.check()

                                                getDependencyDefinitions(),
                                                properties,
                                                getRenderer());
      printWriter = _reportFile == null ? new PrintWriter(System.out)
                                        : new PrintWriter(new FileWriter(_reportFile));
      ok = dependencyChecker.check(printWriter);
      printWriter.flush();
      printWriter.close();
    } catch (BuildException e)
    {
      throw e;
View Full Code Here

Examples of cn.edu.zju.acm.onlinejudge.form.LogSearchForm.check()

       
        LogSearchForm searchForm = (LogSearchForm) form;
        if (searchForm.getTimeStart() == null) {
          searchForm.setTimeStart(Utility.toTimestamp(new Date(System.currentTimeMillis() - 24 * 3600 * 1000)));
        }
      ActionMessages errors = searchForm.check();
      if (errors.size() > 0) {
        context.setAttribute("logs", new ArrayList<AccessLog>());
            return handleFailure(mapping, context, errors);
      }
       
View Full Code Here

Examples of cn.edu.zju.acm.onlinejudge.form.SubmissionSearchForm.check()

        if (forward != null) {
            return forward;
        }

        SubmissionSearchForm serachForm = (SubmissionSearchForm) form;
        ActionMessages errors = serachForm.check();
        if (errors.size() > 0) {

            // TODO
            context.setAttribute("runs", new ArrayList<Submission>());
            return this.handleFailure(mapping, context, errors);
View Full Code Here

Examples of com.agiletec.plugins.jpavatar.aps.system.utils.ImageInfo.check()

      }
      ImageInfo imageInfo = new ImageInfo();
      try {
        FileInputStream fis = new FileInputStream(this.getAvatar());
        imageInfo.setInput(fis);
        if (imageInfo.check()) {
          int width = imageInfo.getWidth();
          int heigth = imageInfo.getHeight();
          if (width != this.getImageWidth() || heigth != this.getImageHeight()) {
            String[] args = new String[4];
            args[0] = new Integer(this.getImageWidth()).toString();
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.