net.didion.jwnl.dictionary.morph
Class TokenizerOperation

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

public class TokenizerOperation
extends AbstractDelegatingOperation


Field Summary
static java.lang.String DELIMITERS
          Parameter list that determines the delimiters this operation will use to concatanate tokens.
static java.lang.String PHRASE_OPERATIONS
          Parameter that determines the operations this operation will perform on the phrases.
static java.lang.String TOKEN_OPERATIONS
          Parameter that determines the operations this operation will perform on the tokens.
 
Constructor Summary
TokenizerOperation()
           
TokenizerOperation(java.lang.String[] delimiters)
           
 
Method Summary
 boolean execute(POS pos, java.lang.String lemma, BaseFormSet forms)
          Execute the operation.
protected  AbstractDelegatingOperation getInstance(java.util.Map params)
           
protected  java.lang.String[] getKeys()
           
 
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

TOKEN_OPERATIONS

public static final java.lang.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 java.lang.String PHRASE_OPERATIONS
Parameter that determines the operations this operation will perform on the phrases.

See Also:
Constant Field Values

DELIMITERS

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

See Also:
Constant Field Values
Constructor Detail

TokenizerOperation

public TokenizerOperation()

TokenizerOperation

public TokenizerOperation(java.lang.String[] delimiters)
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

execute

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

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



JWNL homepage.