|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanl.aida.client.Keywords
public class Keywords
Stores keyword sets according to a keyword set name (e.g. "BioAgent").
Field Summary | |
---|---|
private java.util.Map<java.lang.String,java.util.Set<Keyword>> |
keywords
|
Constructor Summary | |
---|---|
Keywords()
|
Method Summary | |
---|---|
void |
add(java.lang.String keywordSet,
java.lang.String keyword)
Adds the specified keyword to the specified keyword set. |
void |
add(java.lang.String keywordSet,
java.lang.String term,
java.lang.String label)
Adds the specified term to the specified keyword set. |
boolean |
contains(java.lang.String item)
Gets whether or not this Keywords collection contains the specified string. |
java.util.Collection<Keyword> |
getAllKeywords()
Gets all the keywords in every set. |
java.util.Collection<Keyword> |
getKeywords(java.lang.String keywordSet)
Gets all the keywords in the specified set. |
java.util.Collection<java.lang.String> |
getKeywordSetNames()
Gets the names of all the keyword sets in this keywords collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Map<java.lang.String,java.util.Set<Keyword>> keywords
Constructor Detail |
---|
public Keywords()
Method Detail |
---|
public void add(java.lang.String keywordSet, java.lang.String term, java.lang.String label)
keywordSet
- the set to add the keyword toterm
- the keyword to addlabel
- the label of the keyword to addpublic void add(java.lang.String keywordSet, java.lang.String keyword)
keywordSet
- the set to add the keyword tokeyword
- the keyword to addpublic java.util.Collection<java.lang.String> getKeywordSetNames()
public java.util.Collection<Keyword> getKeywords(java.lang.String keywordSet)
keywordSet
- the name of the set whose keywords we want to get
public java.util.Collection<Keyword> getAllKeywords()
public boolean contains(java.lang.String item)
item
- the string to test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |