|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.activity.indexedfiles.AddAndIndexFileActivityConfiguration
This class processes a configuration document for the AddAndIndexFileActivity. The configuration document has the following format:
Elementconfiguration - root element which contains
one or more of the following:
fileIndexer - definition of the classes used for indexing
a certain filetype
filetype - a name for the type of flat file. This name
is the identifier used in the perform document. File types are not case sensitive.
implementation - a class implementing the
uk.org.ogsadai.activity.indexedfiles.FlatFileIndexWriter
interface for this particular flat file type.
analyzer - a class which extends
org.apache.lucene.analysis.Analyzer and
which will be used for indexing this particular flat file type.
<configuration>
<fileIndexer implementation="uk.org.ogsadai.activity.indexedfiles.SwissProtIndexWriter"
filetype="SwissProt"
analyzer="org.apache.lucene.analysis.standard.StandardAnalyzer" />
<fileIndexer implementation="uk.org.ogsadai.activity.indexedfiles.OMIMIndexWriter"
filetype="OMIM"
analyzer="org.apache.lucene.analysis.standard.StandardAnalyzer" />
</configuration>
| Constructor Summary | |
AddAndIndexFileActivityConfiguration()
Constructor - calls superclass constructor. |
|
| Method Summary | |
java.lang.String |
getAnalyzer(java.lang.String filetype)
Returns the analyzer that is associated with this file type. |
java.lang.String |
getIndexHelperClass(java.lang.String filetype)
Returns the class name of the helper class used for indexing this file type. |
void |
initialise(org.w3c.dom.Document document)
Initialises the activity configuration and parses the configuration document. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AddAndIndexFileActivityConfiguration()
| Method Detail |
public void initialise(org.w3c.dom.Document document)
throws ActivityConfigurationException
initialise in interface ActivityConfigurationdocument - The Document containing the activity
configuration information.
ActivityConfigurationException - If there is a problem initialising the
ActivityConfiguration object. This may be
caused by the document containing invalid information, or
perhaps by a system problem within the initialisation code.ActivityConfiguration.initialise(org.w3c.dom.Document)public java.lang.String getAnalyzer(java.lang.String filetype)
filetype - A String that identifies the flat file type (case insensitive).
public java.lang.String getIndexHelperClass(java.lang.String filetype)
filetype - A String that identifies the flat file type (case insensitive)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||