Examples of matches()


Examples of org.apache.sirona.configuration.predicate.PredicateEvaluator.matches()

            "prefix:sirona," +
            "prefix:!excluded," +
            "suffix:tiger," +
            "suffix:Cat", ",");

        assertTrue(evaluator.matches("AnythingFoo"));
        assertFalse(evaluator.matches("Foo"));
        assertTrue(evaluator.matches("Bar"));
        assertTrue(evaluator.matches("Barcedc"));
        assertFalse(evaluator.matches("azdphdBar"));
        assertFalse(evaluator.matches("fooasf"));

Examples of org.apache.solr.search.DocList.matches()

      } else if (val instanceof DocList) {
        DocList docList = (DocList) val;
        int sz = docList.size();
        IdxInfo idxInfo = new IdxInfo(request.getSchema(), request
            .getSearcher(), response.getReturnFields());
        DocListInfo info = new DocListInfo(docList.matches(), docList.size(),docList.offset(),
            docList.maxScore());
        DocIterator iterator = docList.iterator();
        if (responseWriter.isStreamingDocs()) {
          responseWriter.startDocumentList(name,info);
          for (int j = 0; j < sz; j++) {

Examples of org.apache.solr.search.DocSlice.matches()

    //TODO: Handle group by results
    Object docs = response.getValues().get("response");
    if (docs != null) {
      if (docs instanceof DocSlice) {
        DocSlice doc_slice = (DocSlice) docs;
        results_found = doc_slice.matches();
        start = doc_slice.offset();
      } else {
        SolrDocumentList doc_list = (SolrDocumentList) docs;
        results_found = doc_list.getNumFound();
        start = doc_list.getStart();

Examples of org.apache.synapse.config.xml.SwitchCase.matches()

            } else {
                for (Iterator iter = cases.iterator(); iter.hasNext();) {
                    SwitchCase swCase = (SwitchCase) iter.next();

                    if (swCase != null) {
                        if (swCase.matches(sourceText)) {
                            if (traceOrDebugOn) {
                                traceOrDebug(traceOn, "Matching case found : " + swCase.getRegex());
                            }
                            return swCase.mediate(synCtx);
                        }

Examples of org.apache.tapestry.ioc.IdMatcher.matches()

        for (String id : _dependencyNodesById.keySet())
        {
            if (sourceId.equals(id)) continue;

            if (matcher.matches(id)) result.add(_dependencyNodesById.get(id));
        }

        return result;
    }

Examples of org.apache.tapestry.runtime.ComponentEvent.matches()

        replay();

        ComponentEvent event = new ComponentEventImpl("eventType", "someId", context, handler, null);

        assertTrue(event.matches("eventType", "someId", 0));
        assertFalse(event.matches("foo", "someId", 0));

        verify();
    }

Examples of org.apache.tapestry.util.RegexpMatcher.matches()

    public void testMatch()
    {
        RegexpMatcher m = new RegexpMatcher();

        assertTrue(m.matches("[a-z]+", "c"));
        assertTrue(m.matches("foo|foot", "foo"));
    }

    public void testNonmatch()
    {

Examples of org.apache.tapestry5.ioc.IdMatcher.matches()

    for (String id : idToDependencyNode.keySet())
    {
      if (sourceId.equals(id)) continue;

      if (matcher.matches(id)) result.add(idToDependencyNode.get(id));
    }

    return result;
  }

Examples of org.apache.tapestry5.runtime.ComponentEvent.matches()

        {
            public void advise(ComponentMethodInvocation invocation)
            {
                ComponentEvent event = (ComponentEvent) invocation.getParameter(0);

                if (event.matches(eventType, "", minContextValues))
                {
                    event.setMethodDescription(methodDescription);

                    handler.handleEvent(invocation.getInstance(), event);

Examples of org.apache.tomcat.bayeux.ChannelImpl.matches()

            if (wildcard) {
                List<Channel> channels = getTomcatBayeux().getChannels();
                Iterator<Channel> it = channels.iterator();
                while (it.hasNext()) {
                    ChannelImpl ch = (ChannelImpl)it.next();
                    if (ch.matches(subscription)) {
                        ch.unsubscribe(client);
                        unsubscribed = true;
                    }
                }
            }else {
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.