net.jeremybrooks.knicker.dto
Class Word
java.lang.Object
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()
|
Word
public Word()
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.