Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setDefaultRule (0.1 sec)

  1. fess-crawler/src/main/java/org/codelibs/fess/crawler/rule/impl/RegexRule.java

        public void addRule(final String key, final Pattern pattern) {
            regexMap.put(key, pattern);
        }
    
        public boolean isDefaultRule() {
            return defaultRule;
        }
    
        public void setDefaultRule(final boolean defaultRule) {
            this.defaultRule = defaultRule;
        }
    
        public boolean isAllRequired() {
            return allRequired;
        }
    
        public void setAllRequired(final boolean allRequired) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/RuleManagerImplTest.java

            sitemapsRule.addRule("url", ".*sitemap.*");
            ruleManager.addRule(sitemapsRule);
    
            RegexRule fileRule = container.getComponent("fileRule");
            fileRule.setRuleId("fileRule");
            fileRule.setDefaultRule(true);
            ruleManager.addRule(fileRule);
        }
    
        public void test_getRule() {
            final Rule rule = ruleManager.getRule(new ResponseData());
            assertNotNull(rule);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top