dbpackage
Class KeywordAdder

java.lang.Object
  extended bydbpackage.KeywordAdder
All Implemented Interfaces:
Pos

public class KeywordAdder
extends java.lang.Object
implements Pos


Field Summary
 
Fields inherited from interface naturalpackage.Pos
ADJ, adjexceptions, ADV, ALL_S, ART, ARTS, CONJ, CONJS, DET, DETS, HOW, MEASUREMENT, NOUN, NP, NUM_S, NUMBER, PP, PREP, PREPS, PRON, PRONS, UNKNOWN, VERB, VP, WHAT, WHEN, WHERE, WHO, WHY
 
Constructor Summary
KeywordAdder()
           
 
Method Summary
 boolean addAKeyword(java.lang.String key, java.lang.Object possibles)
           
 boolean blankFiles()
          This method just blanks out the keyword hash
 boolean checkForKeyword(java.lang.String key)
           
 java.lang.String[] getAllKeywords()
          This method just returns an arry of all the keywords
 void printKeywords()
          Prints all the keywords
 java.lang.String[] returnCommon(java.lang.String key)
          This method returns an arry of common associations with that keyword
 void saveAllHashs()
          Saves all the keyword hashes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeywordAdder

public KeywordAdder()
Method Detail

addAKeyword

public boolean addAKeyword(java.lang.String key,
                           java.lang.Object possibles)
Parameters:
key - the key you want to add to the hash
possibles - represents an array of possible assoiciated words
Returns:
boolean returns a true if successful and false if not

checkForKeyword

public boolean checkForKeyword(java.lang.String key)
Parameters:
key - the key you want to check y
Returns:
boolean returns a true if successful and false if not

printKeywords

public void printKeywords()
Prints all the keywords

Returns:
void

getAllKeywords

public java.lang.String[] getAllKeywords()
This method just returns an arry of all the keywords

Returns:
String [] returns an array of all the keywords

saveAllHashs

public void saveAllHashs()
Saves all the keyword hashes

Returns:
void

returnCommon

public java.lang.String[] returnCommon(java.lang.String key)
This method returns an arry of common associations with that keyword

Parameters:
key - the key you want to add to the hash
Returns:
String [] This is the array containing common associations

blankFiles

public boolean blankFiles()
This method just blanks out the keyword hash

Returns:
boolean returns a true if successful and false if not