Examples of matches()


Examples of org.geomajas.service.TestRecorder.matches()

  @Test
  public void testNormalGood() throws Exception {
    ApplicationContext ac = loadApplicationContext("/org/geomajas/spring/dependencyTestNormalGood.xml");
    TestRecorder recorder = ac.getBean(TestRecorder.class);
    Assert.assertEquals("", recorder.matches(DependencyCheckPostProcessor.GROUP,
        DependencyCheckPostProcessor.VALUE));
  }

  @Test
  public void testNormalBadBackend() throws Exception {

Examples of org.geotools.geometry.iso.topograph2D.IntersectionMatrix.matches()

   */
  public static boolean cRelate(Geometry g1, Geometry g2, String intersectionPatternMatrix) throws UnsupportedDimensionException {
    GeometryImpl geom1 = GeometryImpl.castToGeometryImpl(g1);
    GeometryImpl geom2 = GeometryImpl.castToGeometryImpl(g2);
    IntersectionMatrix tIM = RelateOp.relate((GeometryImpl) geom1, (GeometryImpl) geom2);
    return tIM.matches(intersectionPatternMatrix);
  }
 
  /**
   * Verifies a boolean relation between two geometry objects
   *
 

Examples of org.ggp.base.util.gdl.model.SentenceForm.matches()

          if(rule.arity() == 1) {
            GdlLiteral literal = rule.get(0);
            if(literal instanceof GdlRelation) {
              //Check that it really is the true form
              SentenceForm trueForm = nextForm.withName(GdlPool.getConstant("true"));
              if(trueForm.matches((GdlRelation) literal)) {
                GdlSentence head = rule.getHead();
                GdlSentence body = (GdlSentence) literal;
                //Check that the tuples are the same, and that they
                //consist of distinct variables
                List<GdlTerm> headTuple = GdlUtils.getTupleFromSentence(head);

Examples of org.glassfish.hk2.api.Filter.matches()

                    if (descriptor.getName() == null) continue;
                    if (!descriptor.getName().equals(name)) continue;
                }
            }
           
            if (filter.matches(descriptor)) {
                for (Method method : getAllMethods(clazz)) {
                    if (isFinal(method)) continue;
                   
                    List<MethodInterceptor> interceptors = interceptionService.getMethodInterceptors(method);
                    if (interceptors != null && !interceptors.isEmpty()) {

Examples of org.gradle.api.internal.file.pattern.PatternStep.matches()

                // else, might be a link which points to nothing, or has been removed while we're visiting, or ...
                throw new GradleException(String.format("Could not list contents of '%s'.", file));
            }
            for (File child : children) {
                if (stopFlag.get()) { break; }
                if (step.matches(child.getName())) {
                    relativePath.addLast(child.getName());
                    doVisitDirOrFile(visitor, child, relativePath, segmentIndex + 1, stopFlag);
                    relativePath.removeLast();
                }
            }

Examples of org.grails.plugin.platform.events.ListenerId.matches()

    @Router
    public List<MessageChannel> route(@Header(EventsPublisherGateway.EVENT_OBJECT_KEY) EventMessage eventMessage) {
        List<MessageChannel> messageChannels = new ArrayList<MessageChannel>();
        ListenerId listenerId = new ListenerId(eventMessage.getNamespace(), eventMessage.getEvent());
        for (Map.Entry<ListenerId, MessageChannel> _listener : this.grailsListenerChannels.entrySet()) {
            if (listenerId.matches(_listener.getKey())) {
                messageChannels.add(_listener.getValue());
            }
        }

        return messageChannels;

Examples of org.hamcrest.Matcher.matches()

                    actualMatcher = ((MatcherDecorator)m).getActualMatcher();
                } else {
                    actualMatcher = m;
                }
                //this is very important to only allow VarargMatchers here. If you're not sure why remove it and run all tests.
                if (!(actualMatcher instanceof VarargMatcher) || !actualMatcher.matches(rawArgs[i])) {
                    return false;
                }
            //it's not a vararg (i.e. some ordinary argument before varargs), just do the ordinary check
            } else if (!m.matches(rawArgs[i])){
                return false;

Examples of org.hdiv.regex.PatternMatcher.matches()

    for (StartPage startPage : this.startPages) {

      PatternMatcher m = startPage.getCompiledPattern();

      if (m.matches(target)) {
        if (startPage.isAnyMethod()) {
          return true;
        } else if (startPage.getMethod().equalsIgnoreCase(method)) {
          return true;
        }

Examples of org.hornetq.core.postoffice.Address.matches()

      for (Binding binding : nameMap.values())
      {
         Address addCheck = new AddressImpl(binding.getAddress());

         if (addCheck.matches(add))
         {
            bindings.addBinding(binding);
         }
      }

Examples of org.impalaframework.service.ServiceReferenceFilter.matches()

            //do check against actual implemented types
            typeMatches = matchesTypes(serviceActivityNotifiable, entry);
        }
       
        if (typeMatches && filter.matches(entry)) {
            serviceActivityNotifiable.add(entry);
        }
    }

    private boolean matchesTypes(ServiceActivityNotifiable serviceActivityNotifiable, ServiceRegistryEntry entry) {
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.