net.didion.jwnl.dictionary.morph
Class TokenizerOperation

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

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.
 
Methods inherited from class net.didion.jwnl.dictionary.morph.AbstractDelegatingOperation
addDelegate, create
 
Methods inherited from class java.lang.Object
equals, 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

execute

public boolean execute(POS pos,
                       java.lang.String lemma,
                       BaseFormSet forms)
                throws JWNLException
Description copied from interface: Operation
Execute 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