com.paragon.open.dictionary.api
Class Morphology

java.lang.Object
  extended by com.paragon.open.dictionary.api.Morphology

public final class Morphology
extends java.lang.Object

Class to work with the morphology module.

Allows to get base forms of the words. See getBaseForms() below.

Author:
Sergey Solomatin (Sergey_Solomatin@penreader.com)

Nested Class Summary
static class Morphology.BaseForm
          Class describes the base form of the word.
static interface Morphology.BaseFormsListener
          Callback interface for base forms requests.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 void getBaseForms(java.lang.String word, Morphology.BaseFormsListener listener)
          Async method to get base forms of the word.
 Language getLanguage()
          Get the language of the morphology module.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getBaseForms

public void getBaseForms(java.lang.String word,
                         Morphology.BaseFormsListener listener)
Async method to get base forms of the word.

Parameters:
word -
listener - callback interface to handle the result or error
Throws:
java.lang.IllegalArgumentException

getLanguage

public Language getLanguage()
Get the language of the morphology module.

Returns:
Language

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

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