Examples of match()


Examples of com.google.appengine.tools.util.ClientCookie.match()

  void checkAuthCookie(URL url) throws ClientLoginException {
    long minExpireTime = System.currentTimeMillis() + 60 * 1000;
    Iterator<ClientCookie> li = cookies.getCookies();
    while (li.hasNext()) {
      final ClientCookie cookie = li.next();
      if (cookie.getExpirationTime() > minExpireTime && cookie.match(url)) {
        return;
      }
    }

    throw new ClientLoginException("This system's clock appears to be set incorrectly. "+

Examples of com.google.collide.client.editor.search.SearchMatchRenderer.Css.match()

  private static final String MATCH_CSS = "match";

  private Resources createMockResource() {
    Resources mockResource = EasyMock.createMock(Resources.class);
    Css mockCss = EasyMock.createMock(Css.class);
    expect(mockCss.match()).andReturn(MATCH_CSS).anyTimes();
    expect(mockResource.searchMatchRendererCss()).andReturn(mockCss).anyTimes();
   
    replay(mockCss, mockResource);
    return mockResource;
  }

Examples of com.google.gwt.query.client.js.JsRegexp.match()

        if (truth(splitRule.allPseudos)) {
          JsRegexp pseudoSplitRegExp = new JsRegexp(
              ":(\\w[\\w\\-]*)(\\(([^\\)]+)\\))?");
          JsRegexp pseudoMatchRegExp = new JsRegexp(
              "(:\\w+[\\w\\-]*)(\\([^\\)]+\\))?", "g");
          JsObjectArray<String> allPseudos = pseudoMatchRegExp.match(splitRule.allPseudos);
          for (int k = 0, kl = allPseudos.length(); k < kl; k++) {
            JsObjectArray<String> pseudo = pseudoSplitRegExp.match(allPseudos.get(k));
            String pseudoClass = truth(pseudo.get(1)) ? pseudo.get(1)
                .toLowerCase() : null;
            String pseudoValue = truth(pseudo.get(3)) ? pseudo.get(3)

Examples of com.hellblazer.slp.Filter.match()

        if (serviceType == null) {
            serviceType = "*";
        }
        Filter filter = new Filter("(" + SERVICE_TYPE + "=" + serviceType + ")");
        for (ServiceReference ref : services.values()) {
            if (filter.match(ref)) {
                return ref;
            }
        }
        return null;
    }

Examples of com.hp.hpl.jena.sparql.engine.optimizer.StatsMatcher.match()

    @Test public void match_01()
    {
        StatsMatcher matcher = matcher("((:x :p ANY) 5)") ;
        Triple t = triple("(:x :p ?v)") ;
        double d = matcher.match(t) ;
        assertEquals(5.0, d, 0) ;
    }
   
    @Test public void match_02()
    {

Examples of com.inspiresoftware.lib.dto.geda.adapter.DtoToEntityMatcher.match()

      final Object dtoItem = dtos.get(dtoKey);

      boolean toAdd = true;
      for (Object orItem : original) {
       
        if (matcher.match(dtoKey, orItem)) {
          assembler = lazyCreateAssembler(assembler, dtoItem, orItem, entityBeanFactory);
          assembler.assembleEntity(dtoItem, orItem, converters, entityBeanFactory);
          toAdd = false;
          break;
        }

Examples of com.jpetrak.gate.stringannotation.extendedgazetteer2.trie3.GazStoreTrie3.match()

   
    gs.addLookup("asdf", info1, keyvals1);
    gs.addLookup("asdf", info1, keyvals1);
    gs.addLookup("asdf", info1, keyvals1);
    // TODO: check we have only added the lookup once!
    Iterator<Lookup> it = gs.match("asdf");
    assertNotNull(it);
    int nrLookups = 0;
    while(it.hasNext()) {
      it.next();
      nrLookups++;

Examples of com.linkedin.helix.model.ClusterConstraints.match()

                      "TestDB",
                      "localhost_0");

    Map<ConstraintAttribute, String> msgAttr =
        ClusterConstraints.toConstraintAttributes(msg1);
    Set<ConstraintItem> matches = constraint.match(msgAttr);
    System.out.println(msg1 + " matches(" + matches.size() + "): " + matches);
    Assert.assertEquals(matches.size(), 5);
    Assert.assertTrue(containsConstraint(matches, constraint0));
    Assert.assertTrue(containsConstraint(matches, constraint1));
    Assert.assertTrue(containsConstraint(matches, constraint2));

Examples of com.linkedin.helix.model.ClusterConstraints.ConstraintItem.match()

        selectedItems.put(key, item);
      }
      else
      {
        ConstraintItem existingItem = selectedItems.get(key);
        if (existingItem.match(item.getAttributes()))
        {
          // item is more specific than existingItem
          selectedItems.put(key, item);
        }
        else if (!item.match(existingItem.getAttributes()))

Examples of com.mdimension.jchronic.handlers.Handler.match()

    Handler handler = new Handler(new DummyHandler(), new TagPattern(Repeater.class));
    List<Token> tokens = new LinkedList<Token>();
    tokens.add(new Token("friday"));
    tokens.get(0).tag(new RepeaterDayName(RepeaterDayName.DayName.FRIDAY));
   
    assertTrue(handler.match(tokens, Handler.definitions()));
   
    tokens.add(new Token("afternoon"));
    tokens.get(1).tag(new EnumRepeaterDayPortion(RepeaterDayPortion.DayPortion.AFTERNOON));
   
    assertFalse(handler.match(tokens, Handler.definitions()));
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.