Interface PlainTextRenderable

  • All Superinterfaces:
    StringRenderable
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface PlainTextRenderable
    extends StringRenderable
    The role of an object that can be rendered into a String as plain text. Note that while it has a method with the same signature as StringRenderable, it has modified semantics since it guarantees that the returned string is a plain text.
    Author:
    Fabrizio Giudici
    Stereotype:
    Role
    • Field Detail

      • _PlainTextRenderable_

        static final java.lang.Class<PlainTextRenderable> _PlainTextRenderable_
    • Method Detail

      • renderTo

        default void renderTo​(@Nonnull
                              java.lang.StringBuilder stringBuilder,
                              @Nonnull
                              java.lang.Object... args)
        Description copied from interface: StringRenderable
        Renders the attached object appending to a StringBuilder. The method accepts optional parameters that can be used to control the format of the rendering; they are usually specific of the object attached to this role.
        Specified by:
        renderTo in interface StringRenderable
        Parameters:
        stringBuilder - the StringBuilder to append to
        args - optional rendering parameters
        Since:
        3.2-ALPHA-1 (was previously on Feedback8
      • renderTo

        default void renderTo​(@Nonnull
                              java.io.PrintWriter printWriter,
                              @Nonnull
                              java.lang.Object... args)
        Description copied from interface: StringRenderable
        Renders the attached object printing to a PrintWriter. The method accepts optional parameters that can be used to control the format of the rendering; they are usually specific of the object attached to this role.
        Specified by:
        renderTo in interface StringRenderable
        Parameters:
        printWriter - the PrintWriter to print to
        args - optional rendering parameters
        Since:
        3.2-ALPHA-1 (was previously on Feedback8