|
Luigi Homepage | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.cw.luigi.index.IndexConfigurationImpl
public class IndexConfigurationImpl
Basic implementation of the IndexConfiguration. This class uses an ordinary ChangeEventSupport to fire events
net.cw.connector.event.ChangeEventSupport,
fireIndexChanged()| Constructor Summary | |
|---|---|
IndexConfigurationImpl(File location,
Analyzer analyzer,
EventChannel dispatcher)
Constructor for the IndexConfigurationImpl object |
|
IndexConfigurationImpl(String location,
Analyzer analyzer,
EventChannel dispatcher)
Deprecated. use constructor with File as location parameter |
|
| Method Summary | |
|---|---|
void |
addChangeEventListener(ChangeEventListener listener)
Adds a ChangeEventListener to the IndexConfigurationImpl object |
void |
fireIndexChanged()
fires a ChangeEvent of type CHANGE_EVENT, with this instance as source, and empty (null) values |
Analyzer |
getAnalyzer()
Gets the analyzer attribute of the IndexConfigurationImpl object |
Directory |
getDirectory(boolean deleteContents)
Gets the directory attribute of the IndexConfigurationImpl object |
String |
getIndexName()
Gets the indexName attribute of the IndexConfigurationImpl object |
protected String |
getLocation()
Deprecated. use getLocationAsFile |
protected File |
getLocationAsFile()
Gets the location attribute of the IndexConfigurationImpl object |
protected Directory |
openDirectory(boolean create)
|
void |
removeChangeEventListener(ChangeEventListener listener)
TODO: Description of the Method |
protected void |
setLocation(File value)
Sets the location attribute of the IndexConfigurationImpl object |
protected void |
setLocation(String value)
Deprecated. use setLocationAsFile |
String |
toString()
TODO: Description of the Method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IndexConfigurationImpl(String location,
Analyzer analyzer,
EventChannel dispatcher)
File as location parameter
location - TODO: Description of the Parameteranalyzer - TODO: Description of the Parameterdispatcher - TODO: Description of the Parameter
public IndexConfigurationImpl(File location,
Analyzer analyzer,
EventChannel dispatcher)
location - TODO: Description of the Parameteranalyzer - TODO: Description of the Parameterdispatcher - TODO: Description of the Parameter| Method Detail |
|---|
protected String getLocation()
protected File getLocationAsFile()
protected void setLocation(String value)
value - The new locationprotected void setLocation(File value)
value - The new locationpublic String getIndexName()
getIndexName in interface IndexConfiguration
protected Directory openDirectory(boolean create)
throws IOException
IOException
public Directory getDirectory(boolean deleteContents)
throws IOException
getDirectory in interface IndexConfigurationdeleteContents - if true, will delete any contents of the directory
IOException - TODO: Description of the Exceptionpublic Analyzer getAnalyzer()
getAnalyzer in interface IndexConfigurationpublic void addChangeEventListener(ChangeEventListener listener)
addChangeEventListener in interface IndexConfigurationlistener - The ChangeEventListener to be addedpublic void removeChangeEventListener(ChangeEventListener listener)
removeChangeEventListener in interface IndexConfigurationlistener - TODO: Description of the Parameterpublic void fireIndexChanged()
fireIndexChanged in interface IndexConfigurationpublic String toString()
toString in class Object
|
Luigi Homepage | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||