All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Entity.Definition

java.lang.Object
   |
   +----java.util.Dictionary
           |
           +----java.util.Hashtable
                   |
                   +----Entity.Definition

public class Definition
extends Hashtable
The class for obtaining word definitions from the dictionary


Constructor Index

 o Definition(String)
The constructor for Definition This will construct a new dictionary based on the passed primary language

Method Index

 o addWord(String, String)
This method will Add a new word and its definition to the dictionary
 o getDefinition(String)
This method will return the primary language definition of given word
 o noWords()
This method will Return true if there are no words in the dictionary
 o numberWords()
This method will Return the count of words in the dictionary

Constructors

 o Definition
 public Definition(String plang)
The constructor for Definition This will construct a new dictionary based on the passed primary language

Parameters:
String - The primary language
Returns:
none

Methods

 o getDefinition
 public String getDefinition(String word)
This method will return the primary language definition of given word

Parameters:
String - the word to be translated
Returns:
String the definition in the primary language
 o addWord
 public void addWord(String pword,
                     String pdef)
This method will Add a new word and its definition to the dictionary

Parameters:
String - The primary language word
String - The definition in primary language
Returns:
none
 o numberWords
 public int numberWords()
This method will Return the count of words in the dictionary

Returns:
int Number of words
 o noWords
 public boolean noWords()
This method will Return true if there are no words in the dictionary

Returns:
boolean No words

All Packages  Class Hierarchy  This Package  Previous  Next  Index