net.sf.extjwnl.dictionary.morph
Class LookupIndexWordOperation

java.lang.Object
  extended by net.sf.extjwnl.dictionary.morph.AbstractOperation
      extended by net.sf.extjwnl.dictionary.morph.LookupIndexWordOperation
All Implemented Interfaces:
Operation, Owned

public class LookupIndexWordOperation
extends AbstractOperation

Looks up index words.

Author:
John Didion , Aliaksandr Autayeu

Field Summary
 
Fields inherited from class net.sf.extjwnl.dictionary.morph.AbstractOperation
dictionary
 
Constructor Summary
LookupIndexWordOperation(Dictionary dictionary, Map params)
           
 
Method Summary
 boolean execute(POS pos, String lemma, BaseFormSet baseForms)
          Executes the operation.
 
Methods inherited from class net.sf.extjwnl.dictionary.morph.AbstractOperation
getDictionary, setDictionary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LookupIndexWordOperation

public LookupIndexWordOperation(Dictionary dictionary,
                                Map params)
Method Detail

execute

public boolean execute(POS pos,
                       String lemma,
                       BaseFormSet baseForms)
                throws JWNLException
Description copied from interface: Operation
Executes the operation.

Parameters:
pos - part of speech
lemma - lemma
baseForms - BaseFormSet to which all discovered base forms should be added.
Returns:
true if at least one base form was discovered by the operation and added to baseForms.
Throws:
JWNLException - JWNLException


Copyright © 2011. All Rights Reserved.