Package cdc.issues.impl
Class RulesCatalogImpl
- java.lang.Object
-
- cdc.issues.impl.RulesCatalogImpl
-
- All Implemented Interfaces:
RulesCatalog
public class RulesCatalogImpl extends Object implements RulesCatalog
Default implementation ofRulesCatalog.- Author:
- Damien Carbonne
-
-
Constructor Summary
Constructors Constructor Description RulesCatalogImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getDomains()Set<IssuesDetector.Factory<?>>getFactories()<T> Set<IssuesDetector.Factory<T>>getFactories(Class<T> dataClass)<T> Optional<IssuesDetector.Factory<T>>getFactory(Rule rule, Class<T> dataClass)Optional<Rule>getRule(RuleId id)Set<Rule>getRules()Set<Rule>getRules(String domain)<T> RulesCatalogImplregister(IssuesDetector.Factory<T> factory)RulesCatalogImplregister(Rule rule)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface cdc.issues.rules.RulesCatalog
apply, apply, apply, createIssuesDetector, hasDescriptor, hasDomain, hasRule, hasRule
-
-
-
-
Method Detail
-
register
public RulesCatalogImpl register(Rule rule)
-
register
public <T> RulesCatalogImpl register(IssuesDetector.Factory<T> factory)
-
getDomains
public Set<String> getDomains()
- Specified by:
getDomainsin interfaceRulesCatalog
-
getRules
public Set<Rule> getRules()
- Specified by:
getRulesin interfaceRulesCatalog
-
getRules
public Set<Rule> getRules(String domain)
- Specified by:
getRulesin interfaceRulesCatalog
-
getRule
public Optional<Rule> getRule(RuleId id)
- Specified by:
getRulein interfaceRulesCatalog
-
getFactories
public Set<IssuesDetector.Factory<?>> getFactories()
- Specified by:
getFactoriesin interfaceRulesCatalog
-
getFactories
public <T> Set<IssuesDetector.Factory<T>> getFactories(Class<T> dataClass)
- Specified by:
getFactoriesin interfaceRulesCatalog
-
getFactory
public <T> Optional<IssuesDetector.Factory<T>> getFactory(Rule rule, Class<T> dataClass)
- Specified by:
getFactoryin interfaceRulesCatalog
-
-