anl.aida.client
Class Keywords

java.lang.Object
  extended by anl.aida.client.Keywords

public class Keywords
extends java.lang.Object

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

keywords

private java.util.Map<java.lang.String,java.util.Set<Keyword>> keywords
Constructor Detail

Keywords

public Keywords()
Method Detail

add

public void add(java.lang.String keywordSet,
                java.lang.String term,
                java.lang.String label)
Adds the specified term to the specified keyword set.

Parameters:
keywordSet - the set to add the keyword to
term - the keyword to add
label - the label of the keyword to add

add

public void add(java.lang.String keywordSet,
                java.lang.String keyword)
Adds the specified keyword to the specified keyword set.

Parameters:
keywordSet - the set to add the keyword to
keyword - the keyword to add

getKeywordSetNames

public java.util.Collection<java.lang.String> getKeywordSetNames()
Gets the names of all the keyword sets in this keywords collection.

Returns:
the names of all the keyword sets in this keywords collection.

getKeywords

public java.util.Collection<Keyword> getKeywords(java.lang.String keywordSet)
Gets all the keywords in the specified set.

Parameters:
keywordSet - the name of the set whose keywords we want to get
Returns:
all the keywords in the specified set.

getAllKeywords

public java.util.Collection<Keyword> getAllKeywords()
Gets all the keywords in every set.


contains

public boolean contains(java.lang.String item)
Gets whether or not this Keywords collection contains the specified string.

Parameters:
item - the string to test
Returns:
true if this Keyword collection contains the string otherwise false.