Class ToneNumberPluginProvider
java.lang.Object
ca.phon.phonex.plugins.ToneNumberPluginProvider
- All Implemented Interfaces:
PluginProvider
@PhonexPlugin(name="tn",
description="Match tone number",
arguments="toneNumberList")
public class ToneNumberPluginProvider
extends Object
implements PluginProvider
Plugin provider for tone number matcher.
Usage: tn("<list of tone numbers>")
E.g., Look for a phone that has tone number 214
\c:tn("214")
or look for a phone that has tone number 214 or 51
\c:tn("214,51")
or look for a phone that does not have tone number 214
\c:tn("-214")
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateMatcher
(List<String> args) Create a new matcher for the given input string.
-
Constructor Details
-
ToneNumberPluginProvider
public ToneNumberPluginProvider()
-
-
Method Details
-
createMatcher
Description copied from interface:PluginProvider
Create a new matcher for the given input string.- Specified by:
createMatcher
in interfacePluginProvider
- Returns:
- PhoneMatcher
- Throws:
IllegalArgumentException
- if there was a problem creating the plug-in matcher
-