|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectno.sesat.search.query.analyser.AnalysisRuleFactory
public final class AnalysisRuleFactory
Responsible for loading and serving all the AnalysisRule instances. These rules consisting of score sets come from the configuration file SearchConstants.ANALYSIS_RULES_XMLFILE. Rules are inherited on a per-rule basis. Global predicates are inherited as well. Inherited global predicates can only be overidden by global predicates. Private predicates does no
| Nested Class Summary | |
|---|---|
static interface |
AnalysisRuleFactory.Context
The context the AnalysisRuleFactory must work against. |
| Field Summary | |
|---|---|
static String |
ANALYSIS_RULES_XMLFILE
Name of the configuration file. |
| Method Summary | |
|---|---|
AnalysisRule |
getRule(String ruleName)
Returns the rule with the name ruleName. |
Map<String,AnalysisRule> |
getRulesMap()
|
static AnalysisRuleFactory |
instanceOf(AnalysisRuleFactory.Context cxt)
Main method to retrieve the correct AnalysisRuleFactory to further obtain AnalysisRule. |
boolean |
remove(Site site)
Remove the factory the maps to the given site. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ANALYSIS_RULES_XMLFILE
| Method Detail |
|---|
public Map<String,AnalysisRule> getRulesMap()
public AnalysisRule getRule(String ruleName)
ruleName.
ruleName - the name of the rule
public static AnalysisRuleFactory instanceOf(AnalysisRuleFactory.Context cxt)
cxt - the contextual needs this factory must use to operate.
public boolean remove(Site site)
SiteKeyedFactory
remove in interface SiteKeyedFactorysite - remove factory corresponding to this site.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||