net.sf.extjwnl.dictionary.morph
Class AbstractDelegatingOperation

java.lang.Object
  extended by net.sf.extjwnl.dictionary.morph.AbstractOperation
      extended by net.sf.extjwnl.dictionary.morph.AbstractDelegatingOperation
All Implemented Interfaces:
Operation, Owned
Direct Known Subclasses:
DetachSuffixesOperation, TokenizerOperation

public abstract class AbstractDelegatingOperation
extends AbstractOperation

Base class for operations.

Author:
John Didion , Aliaksandr Autayeu

Field Summary
protected  Map<String,Param> params
           
 
Fields inherited from class net.sf.extjwnl.dictionary.morph.AbstractOperation
dictionary
 
Constructor Summary
AbstractDelegatingOperation(Dictionary dictionary, Map<String,Param> params)
           
 
Method Summary
 void addDelegate(String key, Operation[] operations)
           
protected  boolean delegate(POS pos, String lemma, BaseFormSet forms, String key)
           
protected abstract  String[] getKeys()
           
protected  boolean hasDelegate(String key)
           
 
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
 
Methods inherited from interface net.sf.extjwnl.dictionary.morph.Operation
execute
 

Field Detail

params

protected Map<String,Param> params
Constructor Detail

AbstractDelegatingOperation

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

addDelegate

public void addDelegate(String key,
                        Operation[] operations)

getKeys

protected abstract String[] getKeys()

hasDelegate

protected boolean hasDelegate(String key)

delegate

protected boolean delegate(POS pos,
                           String lemma,
                           BaseFormSet forms,
                           String key)
                    throws JWNLException
Throws:
JWNLException


Copyright © 2011. All Rights Reserved.