net.sf.extjwnl.dictionary.morph
Class TokenizerOperation

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

public class TokenizerOperation
extends AbstractDelegatingOperation

Tokenizer operation.

Author:
Aliaksandr Autayeu , John Didion

Field Summary
static String DELIMITERS
          Parameter list that determines the delimiters this operation will use to concatenate tokens.
static String PHRASE_OPERATIONS
          Parameter that determines the operations this operation will perform on the phrases.
static String TOKEN_OPERATIONS
          Parameter that determines the operations this operation will perform on the tokens.
 
Fields inherited from class net.sf.extjwnl.dictionary.morph.AbstractDelegatingOperation
params
 
Fields inherited from class net.sf.extjwnl.dictionary.morph.AbstractOperation
dictionary
 
Constructor Summary
TokenizerOperation(Dictionary dictionary, Map<String,Param> params)
           
 
Method Summary
 boolean execute(POS pos, String lemma, BaseFormSet forms)
          Executes the operation.
protected  String[] getKeys()
           
 
Methods inherited from class net.sf.extjwnl.dictionary.morph.AbstractDelegatingOperation
addDelegate, delegate, hasDelegate
 
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
 

Field Detail

TOKEN_OPERATIONS

public static final String TOKEN_OPERATIONS
Parameter that determines the operations this operation will perform on the tokens.

See Also:
Constant Field Values

PHRASE_OPERATIONS

public static final String PHRASE_OPERATIONS
Parameter that determines the operations this operation will perform on the phrases.

See Also:
Constant Field Values

DELIMITERS

public static final String DELIMITERS
Parameter list that determines the delimiters this operation will use to concatenate tokens.

See Also:
Constant Field Values
Constructor Detail

TokenizerOperation

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

getKeys

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

execute

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

Parameters:
pos - part of speech
lemma - lemma
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 - JWNLException


Copyright © 2011. All Rights Reserved.