cmu.tawc.data
Class Word.WordStub

java.lang.Object
  extended by cmu.tawc.data.Word.WordStub
All Implemented Interfaces:
Word
Direct Known Subclasses:
Word.ComboWord, Word.PlainWord, Word.RegexpWord
Enclosing interface:
Word

public abstract static class Word.WordStub
extends java.lang.Object
implements Word


Nested Class Summary
 
Nested classes/interfaces inherited from interface cmu.tawc.data.Word
Word.ComboWord, Word.DashWord, Word.PlainWord, Word.RegexpWord, Word.WordStub
 
Constructor Summary
Word.WordStub(java.lang.String word, java.util.Vector<Category> categories)
           
 
Method Summary
 java.util.List<Category> getCategories()
          Categories that this Word is in.
 java.lang.String getWord()
          Returns a text description of the word.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface cmu.tawc.data.Word
getWordPublicName, matchesWord, matchesWord
 

Constructor Detail

Word.WordStub

public Word.WordStub(java.lang.String word,
                     java.util.Vector<Category> categories)
Method Detail

getWord

public java.lang.String getWord()
Description copied from interface: Word
Returns a text description of the word. This should only be used for the GUI or rendering.

Specified by:
getWord in interface Word
Returns:

getCategories

public java.util.List<Category> getCategories()
Description copied from interface: Word
Categories that this Word is in.

Specified by:
getCategories in interface Word
Returns:
a List of Category

toString

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