Package docking.widgets.filter
Class AbstractRegexBasedTermSplitter
- java.lang.Object
-
- docking.widgets.filter.AbstractRegexBasedTermSplitter
-
- All Implemented Interfaces:
TermSplitter
- Direct Known Subclasses:
CharacterTermSplitter
public abstract class AbstractRegexBasedTermSplitter extends java.lang.Object implements TermSplitter
Allows the user to split a string using a regex as the delimiter.
-
-
Constructor Summary
Constructors Constructor Description AbstractRegexBasedTermSplitter(java.lang.String delimiter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]
split(java.lang.String input)
Returns a given string an array of terms.
-
-
-
Method Detail
-
split
public java.lang.String[] split(java.lang.String input)
Description copied from interface:TermSplitter
Returns a given string an array of terms.- Specified by:
split
in interfaceTermSplitter
- Parameters:
input
- the string to split- Returns:
- array of terms
-
-