Examples of matches()


Examples of com.aicontest.visualizer.js.tasks.EventExecutionUnit.matches()

    lock.lock();
    try {
      Iterator<EventExecutionUnit> it = immediate.iterator();
      while (it.hasNext()) {
        EventExecutionUnit eeu = it.next();
        if (eeu.matches(task))
          it.remove();
      }
      immediate.offer(task);
      available.signalAll();
    } finally {

Examples of com.alexgilleran.icesoap.xpath.elements.XPathElement.matches()

        complexXPath3.toString());

    XPathElement xpathToMatch = XPathFactory.getInstance().compile("/xpath1/xpath2[@pred3=\"value3\"]/xpath3")
        .keySet().iterator().next();

    assertTrue(xpathToMatch.matches(complexXPath3));

    XPathElement xpathToNotMatch = XPathFactory.getInstance().compile("/xpath1/xpath2[@pred3=\"value4\"]/xpath3")
        .keySet().iterator().next();

    assertFalse(xpathToNotMatch.matches(complexXPath3));

Examples of com.alibaba.citrus.webx.util.RequestURIFilter.matches()

        replay(request, response, filterChain);

        if (internal) {
            assertFalse(filter.isExcluded(getResourcePath(request)));
        } else {
            assertEquals(excluded, excludes.matches(requestURI));
        }

        if (excluded && !internal) {
            filter.doFilter(request, response, filterChain); // 对excluded request调用doFilter,应该立即返回
            assertTrue(filter.isExcluded(getResourcePath(request)));

Examples of com.btaz.util.reader.xml.xmlpath.XmlPath.matches()

            if(node instanceof XmlStartElement) {
                XmlStartElement startElement = (XmlStartElement) node;
                Element element = new Element(startElement.getLocalName());
                element.addAttributes(startElement.getAttributes());
                currentPath.addLast(element);
                if(xmlPath.matches(currentPath)) {
                    nodeQueue.push(node);
                    currentPath.removeLast();
                    return true;
                }
            } else if(node instanceof XmlEndElement) {

Examples of com.btaz.util.xml.xmlpath.XmlPath.matches()

            if(node instanceof XmlStartElement) {
                XmlStartElement startElement = (XmlStartElement) node;
                Element element = new Element(startElement.getLocalName());
                element.addAttributes(startElement.getAttributes());
                currentPath.addLast(element);
                if(xmlPath.matches(currentPath)) {
                    nodeQueue.push(node);
                    currentPath.removeLast();
                    return true;
                }
            } else if(node instanceof XmlEndElement) {

Examples of com.calclab.emite.xtesting.matchers.IsPacketLike.matches()

  }

  public boolean hasSent(final XMLPacket packet) {
    final IsPacketLike matcher = new IsPacketLike(packet);
    for (final XMLPacket stanza : sent) {
      if (matcher.matches(stanza, System.out))
        return true;
    }
    return false;
  }

Examples of com.caucho.util.CharBuffer.matches()

    if (ch != ';') {
      addText('&');
      addText(cb.close());
    }
    else if (cb.matches("lt")) {
      addText('<');
      return read();
    }
    else if (cb.matches("gt")) {
      addText('>');

Examples of com.caucho.util.CharSegment.matches()

      CharSegment name = _headerKeys[i];

      int j;
      for (j = 0; j < names.size(); j++) {
        String oldName = names.get(j);
        if (name.matches(oldName))
          break;
      }
      if (j == names.size())
        names.add(j, name.toString());
    }

Examples of com.cloudera.cdk.morphline.shaded.com.google.code.regexp.Matcher.matches()

        }       
        int numMatches = 0;
        for (Object value : values) {
          matcher.reset(value.toString());
          if (!findSubstrings) {
            if (matcher.matches()) {
              numMatches++;
              if (numMatches > maxMatches) {
                LOG.debug("grok failed because it found too many matches for values: {} for grok command: {}",
                          values, renderedConfig);
                return false;

Examples of com.cloudera.cdk.morphline.shaded.org.apache.hadoop.fs.GlobPattern.matches()

public class GlobPatternTest {
  private void assertMatch(boolean yes, String glob, String...input) {
    GlobPattern pattern = new GlobPattern(glob);

    for (String s : input) {
      boolean result = pattern.matches(s);
      assertTrue(glob +" should"+ (yes ? "" : " not") +" match "+ s,
                 yes ? result : !result);
    }
  }
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.