Class ToneNumberPluginMatcher

java.lang.Object
ca.phon.phonex.plugins.ToneNumberPluginMatcher
All Implemented Interfaces:
PhoneMatcher

public class ToneNumberPluginMatcher extends Object implements 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 Details

    • ToneNumberPluginMatcher

      public ToneNumberPluginMatcher(ToneNumber[] toneNumbers, ToneNumber[] notToneNumbers)
  • Method Details

    • matches

      public boolean matches(IPAElement p)
      Description copied from interface: PhoneMatcher
      Perform test on given phone.
      Specified by:
      matches in interface PhoneMatcher
    • 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 interface PhoneMatcher