Examples of validate()


Examples of edu.uci.ics.jung.visualization.GraphDraw.validate()

    gd.setGraphLayout(new ISOMLayout(g));
    //gd.setLayout(SpringLayout.)
    gd.addNotify();
    gd.setSize((int) (Math.log(g.numVertices()) * 180), (int) (Math.log(g
        .numVertices()) * 180.0));
    gd.validate();
    PipedOutputStream out = new PipedOutputStream();
    PipedInputStream pipedIn;
    try {
      pipedIn = new PipedInputStream(out);
      response.setBody(pipedIn);
View Full Code Here

Examples of edu.yale.its.tp.cas.client.ProxyTicketValidator.validate()

      pv = new ProxyTicketValidator();
      pv.setCasValidateUrl(validateUrl);
      pv.setServiceTicket(ticket);
      pv.setService(validateService);
      pv.setRenew(false);
      pv.validate();
      if (pv.isAuthenticationSuccesful()) {
      String tmpUserId = pv.getUser();
      logger.debug("CAS User:" + tmpUserId);
      if userId==null || !userId.equals(tmpUserId)) {
          logger.warn("Proxy and application users are not the same [" + userId + "-"
View Full Code Here

Examples of efrei.ngo.entity.User.validate()

    } else {
      temp = new User("", logUNOrEM);
    }
    DatabaseAccess.connectToDB();
    try {
      if (temp.validate(logPassword)) {
        jObResponse.accumulate("result", true);
      } else {
        jObResponse.accumulate("result", false);
      }
    } catch (JSONException e) {
View Full Code Here

Examples of eu.admire.clienttoolkit.core.Gateway.validate()

      //SSLClientSettings.setKeystores(keystore);
      //SSLClientSettings.disableHostnameVerification();

      Gateway gw = GatewayFactory.get(url);

      ValidationResult validationResult = gw.validate(Util
          .getFileContentAsString(dispel.getLocation().toString()));

      if (validationResult.getSubmittedGraphs().size() > 0) {

        graph = validationResult.getSubmittedGraphs().get(0);
View Full Code Here

Examples of eu.irmosproject.pes.common.PredictionResponseHanlder.validate()

            }
            System.out.println("status= " + status);
            //here we have a complete job
            response = resource.retrieveEstimationResult();

            if (response!=null && respHandler.validate(response, predictionRespSchema)) {
                System.out.println("Response Validated OK!!");
            }


            return response;
View Full Code Here

Examples of eu.maydu.gwt.validation.client.DefaultValidationProcessor.validate()

    proc.addValidators("test", val);
    proc.addValidators("test2", val2);
   
    assertEquals("Two validators were added!", 2, proc.getValidatorCount());
   
    proc.validate();
   
    assertEquals("1 validation invocation occured!", 1, val.validationInvocationCount);
    assertEquals("1 validation invocation occured!", 1, val2.validationInvocationCount);
    assertEquals("0 action invocation occured!", 0, val.actionInvocationCount);
    assertEquals("0 action invocation occured!", 0, val2.actionInvocationCount);
View Full Code Here

Examples of eu.maydu.gwt.validation.client.ValidationProcessor.validate()

    proc.addValidators("test", val);
    proc.addValidators("test2", val2);
   
    assertEquals("Two validators were added!", 2, proc.getValidatorCount());
   
    proc.validate();
   
    assertEquals("1 validation invocation occured!", 1, val.validationInvocationCount);
    assertEquals("1 validation invocation occured!", 1, val2.validationInvocationCount);
    assertEquals("0 action invocation occured!", 0, val.actionInvocationCount);
    assertEquals("0 action invocation occured!", 0, val2.actionInvocationCount);
View Full Code Here

Examples of eu.maydu.gwt.validation.client.validators.datetime.algorithms.TimeValidatorAlgorithm.validate()

    assertNotNull("23:57 is a correct time, seconds required", result);
   
    result = algorithm.validate("1a:30");
    assertNotNull("1a:30 is a correct time, seconds required", result);
   
    result = algorithm.validate("12:30:20");
    assertNull("12:30:20 is a correct time, seconds required", result);
   
    result = algorithm.validate("12:30:59");
    assertNull("12:30:59 is a correct time, seconds required", result);
   
View Full Code Here

Examples of eu.maydu.gwt.validation.client.validators.strings.algorithms.EmailValidatorAlgorithm.validate()

 
  public void testValidEmails() {
   
    EmailValidatorAlgorithm algorithm = new EmailValidatorAlgorithm();
   
    ValidatorAlgorithmResult result = algorithm.validate("test@test.com");
    assertNull("test@test.com is a valid email address", result);
   
    result = algorithm.validate("Test.Test@test.com");
    assertNull("Test.Test@test.com is a valid email address", result);
   
View Full Code Here

Examples of eu.planets_project.pp.plato.validators.ITreeValidator.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
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.