|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.fh_mannheim.mm.dms.framework.StopwordManager
This class organizes all stopwords.
| Constructor Summary | |
StopwordManager(Config cfg)
Constructor. |
|
| Method Summary | |
boolean |
addStopword(Stopword word)
Add a new stopword. |
int |
addStopwordList(java.lang.String[] strWords,
int nLanguage)
Adds stopwords. |
boolean |
deleteStopword(java.lang.String strStopword)
Delete stopword. |
boolean |
existsStopword(java.lang.String strStopword)
Check if stopword exists. |
boolean |
exportStopwords(java.lang.String strFilename)
Export stopwords to xml file. |
boolean |
exportStopwordsToTextfile(java.lang.String strFilename,
int nLanguage)
Save all stopwords in a textfile. |
StopwordList |
getAllStopwords()
Get all names of stopwords. |
StopwordList |
getAllStopwords(int nLanguage)
Get all names of stopwords. |
Stopword |
getStopword(java.lang.String strStopword)
Get a stopword by name. |
int |
getStopwordNum()
Count all stopwords. |
int |
importStopwords(java.lang.String strFilename)
Import stopwords from xml file.. |
int |
importStopwordsFromTextfile(java.lang.String strFilename,
int nLanguage)
Adds stopwords from a textfile. |
org.w3c.dom.Document |
produceReport()
Generate xml document. |
org.w3c.dom.Element |
toElement(org.w3c.dom.Document doc)
Write information of stopwords in a xml element. |
org.w3c.dom.Element |
toElement(org.w3c.dom.Element element,
org.w3c.dom.Document doc)
Write information of stopwords in a xml element. |
boolean |
updateStopword(Stopword editedStopword)
Update an existing stopword. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.fh_mannheim.mm.dms.framework.IElement |
toString |
| Constructor Detail |
public StopwordManager(Config cfg)
cfg - Config| Method Detail |
public boolean addStopword(Stopword word)
throws DuplicateStopwordException
word - Stopword
DuplicateStopwordException
public int addStopwordList(java.lang.String[] strWords,
int nLanguage)
strWords - List with some stopwordsnLanguage - Language of stopwords
public boolean deleteStopword(java.lang.String strStopword)
strStopword - Stopword
public boolean existsStopword(java.lang.String strStopword)
strStopword - Name of stopword
public boolean exportStopwords(java.lang.String strFilename)
throws java.io.IOException
strFilename - Filename of xml file
java.io.IOException - When file could not be saved
public boolean exportStopwordsToTextfile(java.lang.String strFilename,
int nLanguage)
throws java.io.IOException
strFilename - FilenamenLanguage - Language of stopwords
java.io.IOException - When file could not be savedpublic StopwordList getAllStopwords()
public StopwordList getAllStopwords(int nLanguage)
nLanguage - Language of stopwords
public Stopword getStopword(java.lang.String strStopword)
strStopword - Name of stopwordpublic int getStopwordNum()
public int importStopwords(java.lang.String strFilename)
strFilename - Filename of xmlfile
public int importStopwordsFromTextfile(java.lang.String strFilename,
int nLanguage)
strFilename - Filename of stopwordfilenLanguage - Language of stopwords
public org.w3c.dom.Document produceReport()
produceReport in interface IProducerpublic org.w3c.dom.Element toElement(org.w3c.dom.Document doc)
toElement in interface IElementdoc - XML Document
public org.w3c.dom.Element toElement(org.w3c.dom.Element element,
org.w3c.dom.Document doc)
toElement in interface IElementelement - Root elementdoc - XML Document
public boolean updateStopword(Stopword editedStopword)
editedStopword - Stopword, which should be edited
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||