Examples of StringMatcher


Examples of com.aptana.shared_core.string.StringMatcher

        public void setFilter(String pattern) {
            setFilter(pattern, true, false);
        }

        private void setFilter(String pattern, boolean ignoreCase, boolean ignoreWildCards) {
            fMatcher = new StringMatcher(pattern + '*', ignoreCase, ignoreWildCards);
            this.lastPattern = pattern;
        }
View Full Code Here

Examples of com.aptana.shared_core.string.StringMatcher

        public void setFilter(String pattern) {
            setFilter(pattern, true, false);
        }

        private void setFilter(String pattern, boolean ignoreCase, boolean ignoreWildCards) {
            fMatcher = new StringMatcher(pattern + '*', ignoreCase, ignoreWildCards);
            this.lastPattern = pattern;
        }
View Full Code Here

Examples of com.aptana.shared_core.string.StringMatcher

    private class DefaultFilterMatcher implements FilterMatcher {
        private StringMatcher fMatcher;

        public void setFilter(String pattern, boolean ignoreCase, boolean ignoreWildCards) {
            fMatcher = new StringMatcher(pattern + '*', ignoreCase, ignoreWildCards);
        }
View Full Code Here

Examples of com.foreach.cuke.core.util.StringMatcher

@Configuration
public class CwbCoreConfiguration
{
  @Bean
  StringMatcher stringMatcher( @Value("${string.ignore.case}") Boolean ignoreCase ) {
    return ignoreCase != null ? new StringMatcher( ignoreCase ) : new StringMatcher();
  }
View Full Code Here

Examples of com.jitlogic.zorka.common.util.StringMatcher

public class StringMatcherUnitTest {

    @Test
    public void testMatchCasesWithExcludeRules() throws Exception {
        StringMatcher m = new StringMatcher(null,
                Arrays.asList("aaa", "bbb", "~cc.*cc", "~ddd"));

        assertFalse(m.matches("aaa"));
        assertTrue(m.matches("aa"));
        assertFalse(m.matches("bbb"));
        assertTrue(m.matches("ccaac"));
        assertFalse(m.matches("ccaacc"));
        assertFalse(m.matches("ddd"));
    }
View Full Code Here

Examples of com.jitlogic.zorka.common.util.StringMatcher

    }


    @Test
    public void testMatchWithIncludeRules() throws Exception {
        StringMatcher m = new StringMatcher(
                Arrays.asList("~a.*"),
                Arrays.asList("aaa", "bbb"));

        assertTrue(m.matches("aa"));
        assertFalse(m.matches("aaa"));
        assertFalse(m.matches("bbb"));
        assertFalse(m.matches("ccc"));
    }
View Full Code Here

Examples of com.jitlogic.zorka.common.util.StringMatcher

    private StringMatcher matcher;


    public StringMatcherProcessor(String srcField, List<String> includes, List<String> excludes) {
        this.srcField = srcField;
        matcher = new StringMatcher(includes, excludes);
    }
View Full Code Here

Examples of com.jitlogic.zorka.common.util.StringMatcher

        return ZorkaUtil.strClock(clock);
    }


    public StringMatcher stringMatcher(List<String> includes, List<String> excludes) {
        return new StringMatcher(includes, excludes);
    }
View Full Code Here

Examples of net.sf.swtbot.matcher.StringMatcher

  public SWTBotViewMenu menu(String label, int index) throws WidgetNotFoundException {
    List l = getViewMenuFinder().findMenus((IViewReference) view, new MnemonicTextMatcher(label), true);

    if ((l == null) || (l.size() < 1)) {
      CommandFinder finder = new CommandFinder();
      l = finder.findCommand(new StringMatcher(label));
    }

    if ((l == null) || (l.size() < 1))
      throw new WidgetNotFoundException("Unable to find the menu item " + label + " in this view");
View Full Code Here

Examples of org.cfeclipse.cfml.images.StringMatcher

      final ArrayList<?> contents) {
    images.clear();
    if ((this.pattern == null) || (this.pattern.trim().length() == 0)) {
      images.addAll(contents);
    } else {
      final StringMatcher ma = new StringMatcher("*" + this.pattern + "*", true, false);
      for (final Object o : contents) {
        if (o instanceof ItemGroup) {
          final ItemGroup ga = (ItemGroup) o;

          if (ma.match(ga.getName())) {
            images.add(o);
          } else {
            final ArrayList<IImageEntry> z = new ArrayList<IImageEntry>();
            for (int a = 0; a < ga.getChildCount(); a++) {
              final IImageEntry image = ga.getImage(a);
              if (ma.match(image.getName())) {
                z.add(image);
              }
            }
            if (!z.isEmpty()) {
              images.add(new ItemGroup(ga.getName(), z));
View Full Code Here
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.