Class ToneNumberPluginMatcher
java.lang.Object
ca.phon.phonex.plugins.ToneNumberPluginMatcher
- All Implemented Interfaces:
PhoneMatcher
Provides tone number matching functionality. This matcher
matches if the tone number of a phone is in the list of allowed
tone numbers and not in the list of unallowed tone numbers.
null values for either list may be provided and will match appropriately
if no tone is specified for a phone.
-
Constructor Summary
ConstructorsConstructorDescriptionToneNumberPluginMatcher
(ToneNumber[] toneNumbers, ToneNumber[] notToneNumbers) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Perform test on given phone.boolean
Does this matcher match anything? Used at runtime to help determine proper backtracking paths.
-
Constructor Details
-
ToneNumberPluginMatcher
-
-
Method Details
-
matches
Description copied from interface:PhoneMatcher
Perform test on given phone.- Specified by:
matches
in interfacePhoneMatcher
-
matchesAnything
public boolean matchesAnything()Description copied from interface:PhoneMatcher
Does this matcher match anything? Used at runtime to help determine proper backtracking paths.- Specified by:
matchesAnything
in interfacePhoneMatcher
-