Class TextStructureHandler

  • All Implemented Interfaces:
    ITextStructureHandler

    public final class TextStructureHandler
    extends 
    implements ITextStructureHandler

    Structure handler implementation, internally used by the engine.

    This class should not be directly used from outside the engine.

    Since:
    3.0.0
    Author:
    Daniel Fernández
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void removeText()
      Instructs the engine to remove the entire event that is being processed.
      void replaceWith​(IModel model, boolean processable)
      Instructs the engine to replace the current event with the specified model (a IModel).
      void reset()
      Resets all actions specified so far for the current processor execution.
      void  text)
      Instructs the engine to set a new text for this Text event.
      • Methods inherited from class java.lang.

        , , , , , , , , , ,
    • Method Detail

      • setText

        public void setText​( text)
        Description copied from interface: ITextStructureHandler

        Instructs the engine to set a new text for this Text event.

        Specified by:
        setText in interface ITextStructureHandler
        Parameters:
        text - the new text
      • replaceWith

        public void replaceWith​(IModel model,
                                boolean processable)
        Description copied from interface: ITextStructureHandler

        Instructs the engine to replace the current event with the specified model (a IModel).

        Specified by:
        replaceWith in interface ITextStructureHandler
        Parameters:
        model - the model to be used as a replacement.
        processable - whether the model should be considered processable or not.