|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.components.search.components.impl.AnalyzerManagerImpl
public class AnalyzerManagerImpl
Implementation of the Analyzer Component
Field Summary | |
---|---|
static java.lang.String |
ANALYZER_ELEMENT
The analyzer element |
static java.lang.String |
CLASSNAME_ATT
the analyzer class name |
static java.lang.String |
CONFIG_ATT
(optional) a file to configure the analyzer |
static java.lang.String |
CONFIGCHECK_ATT
Automatic update or not the analyzer when the config file changes |
static java.lang.String |
ID_ATT
the id of the analyzer |
Fields inherited from interface org.apache.cocoon.components.search.components.AnalyzerManager |
---|
ROLE |
Constructor Summary | |
---|---|
AnalyzerManagerImpl()
|
Method Summary | |
---|---|
void |
configure(org.apache.avalon.framework.configuration.Configuration configuration)
|
boolean |
exist(java.lang.String id)
Is this analyzer exist |
org.apache.lucene.analysis.Analyzer |
getAnalyzer(java.lang.String id)
Return the analyzer |
java.lang.String[] |
getAnalyzersID()
Return all analyzer IDs |
void |
put(java.lang.String id,
org.apache.lucene.analysis.Analyzer analyzer)
Add a lucene analyser |
void |
remove(java.lang.String id)
Remove a analyzer |
void |
service(org.apache.avalon.framework.service.ServiceManager manager)
|
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ANALYZER_ELEMENT
public static final java.lang.String ID_ATT
public static final java.lang.String CLASSNAME_ATT
public static final java.lang.String CONFIG_ATT
public static final java.lang.String CONFIGCHECK_ATT
Constructor Detail |
---|
public AnalyzerManagerImpl()
Method Detail |
---|
public boolean exist(java.lang.String id)
AnalyzerManager
exist
in interface AnalyzerManager
id
- String the analyzer id
public void configure(org.apache.avalon.framework.configuration.Configuration configuration) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.configuration.ConfigurationException
public void put(java.lang.String id, org.apache.lucene.analysis.Analyzer analyzer)
AnalyzerManager
put
in interface AnalyzerManager
id
- the id of the analyzeranalyzer
- the analyzer to addpublic void remove(java.lang.String id)
AnalyzerManager
remove
in interface AnalyzerManager
id
- the analyzer IDpublic java.lang.String[] getAnalyzersID()
AnalyzerManager
getAnalyzersID
in interface AnalyzerManager
public org.apache.lucene.analysis.Analyzer getAnalyzer(java.lang.String id) throws org.apache.avalon.framework.configuration.ConfigurationException
AnalyzerManager
getAnalyzer
in interface AnalyzerManager
id
- analyzer ID
org.apache.avalon.framework.configuration.ConfigurationException
Analyzer
public void service(org.apache.avalon.framework.service.ServiceManager manager) throws org.apache.avalon.framework.service.ServiceException
service
in interface org.apache.avalon.framework.service.Serviceable
org.apache.avalon.framework.service.ServiceException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |