Email Answering System
Version 1.0

com.ninecode.email.beans.slave.dictionary
Class Definition

java.lang.Object
  |
  +--com.ninecode.email.beans.slave.dictionary.Definition

public class Definition
extends Object

A basket for word definitions. Holds a word, it's definition and the part(s) of speech.


Field Summary
protected  String mDefinition
          The word definition.
protected  String mPartOfSpeech
          The part(s) of speech.
protected  String mWord
          The word.
 
Constructor Summary
Definition(String word, String part, String definition)
          Create a Definition.
 
Method Summary
 String toString()
          Converts this definition into a representative string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mWord

protected String mWord
The word.


mPartOfSpeech

protected String mPartOfSpeech
The part(s) of speech.


mDefinition

protected String mDefinition
The word definition.

Constructor Detail

Definition

public Definition(String word,
                  String part,
                  String definition)
Create a Definition.

Parameters:
word - The word itself.
part - The part of speech, e.g. n. & adv.
definition - The word definition.
Method Detail

toString

public String toString()
Converts this definition into a representative string.

Overrides:
toString in class Object
Returns:
A string of the form word,conj. & prep. : definition

Email Answering System
Version 1.0

Copyright © 2003 Derrick Oswald. All rights reserved.