|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.scheisseichfindemalkeinen.keywords.KeywordManager
public class KeywordManager
Class which holds the Keywords
| Field Summary | |
|---|---|
static int |
MATCH_ALL
All keywords found |
static int |
MATCH_ALL_STRICT
All keywords found, but strict search |
static int |
MATCH_ONLY_EXACT
Only exact matches |
static int |
MATCHED_ALL_KEYWORDS
All keywords found |
static int |
MATCHED_EXACT
Exact match |
static int |
MATCHED_NOT
No match |
static int |
MATCHED_SOME_KEYWORDS
Some keywords found |
static java.lang.String[] |
MATCHED_T
Strings for kind of matches |
| Method Summary | |
|---|---|
void |
addKeyword(Keyword k,
boolean commitDatabase)
Add a Keyword We can specifie if we want the method to commit the database. |
void |
addKeywords(java.util.Vector<Keyword> keywords)
Add Keywords to the array |
java.util.Vector<Keyword> |
getKeywords()
Returns an array containing the Keywords |
static KeywordManager |
instance()
Returns the instance |
void |
saveKeywords()
Save Keywords to the database This method does commit the database |
void |
setKeywords(java.util.Vector<Keyword> keywords)
Sets the Keywords Attention: This method replaces the whole array! |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MATCHED_NOT
public static final int MATCHED_EXACT
public static final int MATCHED_ALL_KEYWORDS
public static final int MATCHED_SOME_KEYWORDS
public static final java.lang.String[] MATCHED_T
public static final int MATCH_ONLY_EXACT
public static final int MATCH_ALL_STRICT
public static final int MATCH_ALL
| Method Detail |
|---|
public static KeywordManager instance()
public java.util.Vector<Keyword> getKeywords()
public void setKeywords(java.util.Vector<Keyword> keywords)
keywords - Vector mit Keywordspublic void addKeywords(java.util.Vector<Keyword> keywords)
keywords - Keywords
public void addKeyword(Keyword k,
boolean commitDatabase)
k - KeywordcommitDatabase - Commit Databasepublic void saveKeywords()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||