Examples of Match


Examples of org.sikuli.script.Match

    Point point = null;
    String actualImageName = imageResolver.getImagePath(imageName);
    Finder finder = getCurrentScreenFinder(device);
    finder.find(actualImageName, 0.7);
    if (finder.hasNext()) {
      Match match = finder.next();
      point = new Point(match.x + (match.w / 2), match.y + (match.h / 2));
    }
    return point;
  }
View Full Code Here

Examples of org.springframework.extensions.webscripts.Match

    webScriptUriRegistry.registerWebScript(webScript);
  }

  @Test
  public void testWebScriptRegistration() {
    final Match match = webScriptUriRegistry.findWebScript("GET", "/test");
    assertNotNull(match);
    assertNotSame(webScript, match.getWebScript());
    assertSame(webScript.getDescription(), match.getWebScript().getDescription());
    assertSame(webScript, ((WebScriptProxy) match.getWebScript()).getWrappedWebScript());
  }
View Full Code Here

Examples of org.springmodules.cache.regex.Match

        PROPERTY_DELIMITER);

    int propertyCount = propertiesAsText.length;
    for (int i = 0; i < propertyCount; i++) {
      String property = propertiesAsText[i];
      Match match = KEY_VALUE_REGEX.match(property);

      if (!match.isSuccessful()) {
        String message = "The String " + StringUtils.quote(property)
            + " should match the regular expression pattern "
            + StringUtils.quote(KEY_VALUE_REGEX.getPattern());
        throw new IllegalArgumentException(message);
      }

      String[] groups = match.getGroups();
      String key = groups[1].trim();
      String value = groups[2].trim();

      if (properties.containsKey(key)) {
        throw new IllegalArgumentException("The property "
View Full Code Here

Examples of org.tei.comparator.web.client.Match

      String match = docContainer.getElementAsStringFor(link.getCurrentDerivedId(),DocumentContainer.DERIVED);
      String highlighted = new XMLHighlighter(new EEBOPreprocessing()).produceHighlightedText(match, original);
      List<TCNote> notes = DBManager.getInstance().getNotesFor(TCNote.TYPE_PARAGRAPH, link.getCurrentDerivedId());
      List<TCNote> linkNotes = DBManager.getInstance().getNotesFor(TCNote.TYPE_LINK, link.getCurrentDerivedId());
      notes.addAll(linkNotes);
      foundMatches.add(new Match(highlighted, link, notes));
    }
   
    return foundMatches;
  }
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.