Examples of match()


Examples of org.exolab.jms.client.JmsTopic.match()

        if (destination instanceof JmsTopic) {
            JmsTopic topic = (JmsTopic) getDestination();
            if (!topic.isWildCard()) {
                result = super.canConsume(destination);
            } else {
                result = topic.match((JmsTopic) destination);
            }
        }
        return result;
    }

Examples of org.exoplatform.services.jcr.impl.core.JCRPathMatcher.match()

            throw new RepositoryException(e);
         }
         for (int i = 0; invalid && i < constraints.length; i++)
         {
            JCRPathMatcher constrPath = parsePathMatcher(locator, constraints[i]);
            if (constrPath.match(pathVal.getQPath()))
            {
               invalid = false;
            }
         }
      }

Examples of org.exoplatform.services.jcr.impl.core.value.ValueConstraintsMatcher.match()

         new ValueConstraintsMatcher(def.getValueConstraints(), session.getLocationFactory(),
            session.getTransientNodesManager(), session.getWorkspace().getNodeTypesHolder());

      for (ValueData value : newValues)
      {
         if (!constraints.match(value, type))
         {
            String strVal = null;
            try
            {
               if (type != PropertyType.BINARY)

Examples of org.glassfish.jersey.uri.PathPattern.match()

        Router.Continuation result = null;
        final Iterator<Route<PathPattern>> iterator = acceptedRoutes.iterator();
        while (iterator.hasNext()) {
            final Route<PathPattern> acceptedRoute = iterator.next();
            final PathPattern routePattern = acceptedRoute.routingPattern();
            final MatchResult m = routePattern.match(path);
            if (m != null) {
                // Push match result information and rest of path to match
                rc.pushMatchResult(m);
                result = Router.Continuation.of(context, acceptedRoute.next());

Examples of org.gocha.text.regex.Pattern.match()

        Runnable bgRun = new Runnable() {
            @Override
            public void run()
            {
                final Matcher matched = fPattern.match(fSourceText, 0);
                if( !matched.isMatched() )return;

                Runnable awtRun = new Runnable() {
                    @Override
                    public void run()

Examples of org.gwtwidgets.client.util.regex.Pattern.match()

    String test = "05-10-1977";
    _assert(Pattern.matches(pattern, test));
   
    GWT.log("Patter.match(String)", null);
    Pattern regExp = new Pattern(pattern);
    String[] parts = regExp.match(test);
    _assert(parts[1].equals("05"));
    _assert(parts[2].equals("10"));
    _assert(parts[3].equals("1977"));
    GWT.log("Patter.pattern()", null);
    _assert(regExp.pattern().equals(pattern));

Examples of org.hornetq.core.filter.Filter.match()

         {
            return true;
         }
         else
         {
            if (filter.match(message))
            {
               return true;
            }
         }
      }

Examples of org.hyperic.sigar.ptql.ProcessQuery.match()

        //should have eaten some cpu during this test
        String q = "Cpu.Percent.ge=0.01";
        ProcessQuery status = this.qf.getQuery(q);
        long pid = sigar.getPid();
        traceln(q + "=" + status.match(sigar, pid));
    }
}

Examples of org.infinispan.objectfilter.BaseMatcher.match()

               matchCount[0]++;
            }
         }
      });

      matcher.match(obj);
      return matchCount[0] == 1;
   }

   protected boolean match(Query query, Object obj) throws Exception {
      BaseMatcher matcher = createMatcher();

Examples of org.infinispan.objectfilter.Matcher.match()

         public void onFilterResult(Object instance, Object[] projection, Comparable[] sortProjection) {
            matchCount[0]++;
         }
      });

      matcher.match(obj);
      return matchCount[0] == 1;
   }

   protected boolean match(Query query, Object obj) throws Exception {
      Matcher matcher = createMatcher();
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.