cmu.tawc.data
Class DictionaryStub

java.lang.Object
  extended by cmu.tawc.data.DictionaryStub
All Implemented Interfaces:
Dictionary

public class DictionaryStub
extends java.lang.Object
implements Dictionary


Constructor Summary
DictionaryStub()
           
 
Method Summary
 void addCategory(Category category)
          Generally, assumes that these come in in some sort of order.
 void addWord(Word word)
          Adds a word to the dictionary, writing over whatever was previously there
 java.util.List<Category> getCategories()
           
 java.util.List<Word> getWords()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DictionaryStub

public DictionaryStub()
Method Detail

getCategories

public java.util.List<Category> getCategories()
Specified by:
getCategories in interface Dictionary

getWords

public java.util.List<Word> getWords()
Specified by:
getWords in interface Dictionary

addWord

public void addWord(Word word)
Adds a word to the dictionary, writing over whatever was previously there


addCategory

public void addCategory(Category category)
Generally, assumes that these come in in some sort of order. It's not necessary, but it doesn't sort them here.

Parameters:
index -
name -

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object