net.didion.jwnl.dictionary.morph
Class DetachSuffixesOperation

java.lang.Object
  extended bynet.didion.jwnl.dictionary.morph.AbstractDelegatingOperation
      extended bynet.didion.jwnl.dictionary.morph.DetachSuffixesOperation
All Implemented Interfaces:
Createable, Operation

public class DetachSuffixesOperation
extends AbstractDelegatingOperation

Remove all aplicable suffixes from the word(s) and do a look-up. This class accepts parameters in the form of:


  

 
where suffix is the {suffix} to convert from, and {stemmed suffix} is the suffix to convert to.


Field Summary
static java.lang.String OPERATIONS
           
 
Constructor Summary
DetachSuffixesOperation()
           
DetachSuffixesOperation(java.util.Map suffixMap)
           
 
Method Summary
 boolean execute(POS pos, java.lang.String derivation, BaseFormSet forms)
          Execute the operation.
protected  AbstractDelegatingOperation getInstance(java.util.Map params)
           
protected  java.lang.String[] getKeys()
           
 java.util.Map getSuffixMap()
           
 void setSuffixMap(java.util.Map suffixMap)
           
 
Methods inherited from class net.didion.jwnl.dictionary.morph.AbstractDelegatingOperation
addDelegate, create, delegate, hasDelegate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPERATIONS

public static final java.lang.String OPERATIONS
See Also:
Constant Field Values
Constructor Detail

DetachSuffixesOperation

public DetachSuffixesOperation()

DetachSuffixesOperation

public DetachSuffixesOperation(java.util.Map suffixMap)
Method Detail

getInstance

protected AbstractDelegatingOperation getInstance(java.util.Map params)
                                           throws JWNLException
Specified by:
getInstance in class AbstractDelegatingOperation
Throws:
JWNLException

getKeys

protected java.lang.String[] getKeys()
Specified by:
getKeys in class AbstractDelegatingOperation

getSuffixMap

public java.util.Map getSuffixMap()

setSuffixMap

public void setSuffixMap(java.util.Map suffixMap)

execute

public boolean execute(POS pos,
                       java.lang.String derivation,
                       BaseFormSet forms)
                throws JWNLException
Description copied from interface: Operation
Execute the operation.

Parameters:
pos -
derivation -
forms - 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



JWNL homepage.