Package net.didion.jwnl.dictionary.morph
Class TokenizerOperation
- java.lang.Object
-
- net.didion.jwnl.dictionary.morph.AbstractDelegatingOperation
-
- net.didion.jwnl.dictionary.morph.TokenizerOperation
-
- All Implemented Interfaces:
Operation,Createable
public class TokenizerOperation extends AbstractDelegatingOperation
-
-
Field Summary
Fields Modifier and Type Field Description static StringDELIMITERSParameter list that determines the delimiters this operation will use to concatanate tokens.static StringPHRASE_OPERATIONSParameter that determines the operations this operation will perform on the phrases.static StringTOKEN_OPERATIONSParameter that determines the operations this operation will perform on the tokens.
-
Constructor Summary
Constructors Constructor Description TokenizerOperation()TokenizerOperation(String[] delimiters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute(POS pos, String lemma, BaseFormSet forms)Execute the operation.protected AbstractDelegatingOperationgetInstance(Map params)protected String[]getKeys()-
Methods inherited from class net.didion.jwnl.dictionary.morph.AbstractDelegatingOperation
addDelegate, create, delegate, hasDelegate
-
-
-
-
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 concatanate tokens.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TokenizerOperation
public TokenizerOperation()
-
TokenizerOperation
public TokenizerOperation(String[] delimiters)
-
-
Method Detail
-
getInstance
protected AbstractDelegatingOperation getInstance(Map params) throws JWNLException
- Specified by:
getInstancein classAbstractDelegatingOperation- Throws:
JWNLException
-
getKeys
protected String[] getKeys()
- Specified by:
getKeysin classAbstractDelegatingOperation
-
execute
public boolean execute(POS pos, String lemma, 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
-
-