Package net.sourceforge.fullsync.rules.filefilter

Examples of net.sourceforge.fullsync.rules.filefilter.FileNameFileFilterRule


        if (patternsType.equals("RegExp")) {
          if (!ignorePattern.equals("") && (takePattern.equals(""))) {
            fileFilter = new FileFilter();
            fileFilter.setMatchType(FileFilter.MATCH_ALL);
            fileFilter.setFilterType(FileFilter.EXCLUDE);
            FileFilterRule[] rules = new FileFilterRule[] { new FileNameFileFilterRule(new TextValue(ignorePattern),
                FileNameFileFilterRule.OP_MATCHES_REGEXP) };
            fileFilter.setFileFilterRules(rules);
            useFilter = true;
          }
          if (ignorePattern.equals("") && (!takePattern.equals(""))) {
            fileFilter = new FileFilter();
            fileFilter.setMatchType(FileFilter.MATCH_ALL);
            fileFilter.setFilterType(FileFilter.INCLUDE);
            FileFilterRule[] rules = new FileFilterRule[] { new FileNameFileFilterRule(new TextValue(takePattern),
                FileNameFileFilterRule.OP_MATCHES_REGEXP) };
            fileFilter.setFileFilterRules(rules);
            useFilter = true;
          }
          if (!ignorePattern.equals("") && (!takePattern.equals(""))) {
            fileFilter = new FileFilter();
            fileFilter.setMatchType(FileFilter.MATCH_ALL);
            fileFilter.setFilterType(FileFilter.EXCLUDE);
            FileFilterRule[] rules = new FileFilterRule[] {
                new FileNameFileFilterRule(new TextValue(ignorePattern), FileNameFileFilterRule.OP_MATCHES_REGEXP),
                new FileNameFileFilterRule(new TextValue(takePattern), FileNameFileFilterRule.OP_DOESNT_MATCHES_REGEXP) };
            fileFilter.setFileFilterRules(rules);
            useFilter = true;
          }
        }
        else {
View Full Code Here

TOP

Related Classes of net.sourceforge.fullsync.rules.filefilter.FileNameFileFilterRule

Copyright © 2018 www.massapicom. 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.