net.jeremybrooks.knicker.dto
Class Word

java.lang.Object
  extended by net.jeremybrooks.knicker.dto.Word
All Implemented Interfaces:
Serializable

public class Word
extends Object
implements Serializable

Represents word data returned by a call to the Wordnik lookup API.

Author:
Jeremy Brooks
See Also:
Serialized Form

Constructor Summary
Word()
           
 
Method Summary
 void addSuggestion(String suggestion)
           
 String getCanonicalForm()
           
 String getOriginalWord()
           
 List<String> getSuggestions()
           
 String getWord()
           
 void setCanonicalForm(String canonicalForm)
           
 void setOriginalWord(String originalWord)
           
 void setWord(String word)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Word

public Word()
Method Detail

getWord

public String getWord()
Returns:
the word

setWord

public void setWord(String word)
Parameters:
word - the word to set

getSuggestions

public List<String> getSuggestions()
Returns:
the suggestions

addSuggestion

public void addSuggestion(String suggestion)

getCanonicalForm

public String getCanonicalForm()
Returns:
the canonicalForm

setCanonicalForm

public void setCanonicalForm(String canonicalForm)
Parameters:
canonicalForm - the canonicalForm to set

toString

public String toString()
Overrides:
toString in class Object

getOriginalWord

public String getOriginalWord()
Returns:
the originalWord

setOriginalWord

public void setOriginalWord(String originalWord)
Parameters:
originalWord - the originalWord to set


Copyright © 2012. All Rights Reserved.