Class AbstractStringOperation

    • Constructor Detail

      • AbstractStringOperation

        public AbstractStringOperation()
    • Method Detail

      • accepts

        public Class[] accepts()
        Returns the class that the consumer accepts.
        Returns:
        String/String[]
      • generates

        public Class[] generates()
        Returns the class of objects that it generates.
        Returns:
        String/String[]
      • process

        protected abstract String process​(String s,
                                          int index)
        Processes the string. If null is returned, this output will be ignored.
        Parameters:
        s - the string to process
        index - the 0-based index of the string currently being processed
        Returns:
        the processed string or null if nothing produced
      • doExecute

        protected String doExecute()
        Executes the flow item.
        Specified by:
        doExecute in class AbstractActor
        Returns:
        null if everything is fine, otherwise error message