Class FeatureProcessors.MonthRange

java.lang.Object
com.sun.speech.freetts.en.us.FeatureProcessors.MonthRange
All Implemented Interfaces:
FeatureProcessor
Enclosing class:
FeatureProcessors

public static class FeatureProcessors.MonthRange extends Object implements FeatureProcessor
Returns true ("1") if the given item is a number between 0 and 32 exclusive, otherwise, returns "0". string) This is a feature processor. A feature processor takes an item, performs some sort of processing on the item and returns an object.
  • Constructor Details

    • MonthRange

      public MonthRange()
  • Method Details

    • process

      public String process(Item item) throws ProcessException
      Performs some processing on the given item.
      Specified by:
      process in interface FeatureProcessor
      Parameters:
      item - the item to process
      Returns:
      returns "1" if the given item is a number between 0 and 32 (exclusive) otherwise returns "0"
      Throws:
      ProcessException - if an exception occurred during the processing