net.sf.extjwnl.dictionary.morph
Class LookupExceptionsOperation

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

public class LookupExceptionsOperation
extends AbstractOperation

Looks up the word in the exceptions file of the given part-of-speech.

Author:
John Didion , Aliaksandr Autayeu

Field Summary
 
Fields inherited from class net.sf.extjwnl.dictionary.morph.AbstractOperation
dictionary
 
Constructor Summary
LookupExceptionsOperation(Dictionary dictionary, Map<String,Param> params)
           
 
Method Summary
 boolean execute(POS pos, String derivation, BaseFormSet form)
          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

LookupExceptionsOperation

public LookupExceptionsOperation(Dictionary dictionary,
                                 Map<String,Param> params)
                          throws JWNLException
Throws:
JWNLException
Method Detail

execute

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

Parameters:
pos - part of speech
derivation - lemma
form - 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.