Class CleanSeparatorProcessor

  • All Implemented Interfaces:
    AnswerProcessor

    public class CleanSeparatorProcessor
    extends java.lang.Object
    implements AnswerProcessor
    Processor that replaces all potential separator markers by ";".
    Recognized separators:
    • foo,bar
    • foo bar
    • foo-bar
    • foo|bar
    • Method Summary

      Modifier and Type Method Description
      Answer process​(Answer answer)
      Modify the entry and store the result in a new Answer object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CleanSeparatorProcessor

        public CleanSeparatorProcessor()
    • Method Detail

      • process

        public Answer process​(Answer answer)
        Description copied from interface: AnswerProcessor
        Modify the entry and store the result in a new Answer object.
        Specified by:
        process in interface AnswerProcessor
        Parameters:
        answer - the given entry
        Returns:
        a new Answer object storing the computed result