Package net.didion.jwnl.dictionary.morph
Class DetachSuffixesOperation
- java.lang.Object
-
- net.didion.jwnl.dictionary.morph.AbstractDelegatingOperation
-
- net.didion.jwnl.dictionary.morph.DetachSuffixesOperation
-
- All Implemented Interfaces:
Operation,Createable
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
Fields Modifier and Type Field Description static StringOPERATIONS
-
Constructor Summary
Constructors Constructor Description DetachSuffixesOperation()DetachSuffixesOperation(Map suffixMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute(POS pos, String derivation, BaseFormSet forms)Execute the operation.protected AbstractDelegatingOperationgetInstance(Map params)protected String[]getKeys()MapgetSuffixMap()voidsetSuffixMap(Map suffixMap)-
Methods inherited from class net.didion.jwnl.dictionary.morph.AbstractDelegatingOperation
addDelegate, create, delegate, hasDelegate
-
-
-
-
Field Detail
-
OPERATIONS
public static final String OPERATIONS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DetachSuffixesOperation
public DetachSuffixesOperation()
-
DetachSuffixesOperation
public DetachSuffixesOperation(Map suffixMap)
-
-
Method Detail
-
getInstance
protected AbstractDelegatingOperation getInstance(Map params) throws JWNLException
- Specified by:
getInstancein classAbstractDelegatingOperation- Throws:
JWNLException
-
getKeys
protected String[] getKeys()
- Specified by:
getKeysin classAbstractDelegatingOperation
-
getSuffixMap
public Map getSuffixMap()
-
setSuffixMap
public void setSuffixMap(Map suffixMap)
-
execute
public boolean execute(POS pos, String derivation, BaseFormSet forms) throws JWNLException
Description copied from interface:OperationExecute the operation.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
-
-