Package it.tidalwave.role
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.
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 Summary
Fields inherited from interface it.tidalwave.role.StringRenderable
_StringRenderable_
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
renderTo
(PrintWriter printWriter, Object... args) Renders the attached object printing to aPrintWriter
.default void
renderTo
(StringBuilder stringBuilder, Object... args) Renders the attached object appending to aStringBuilder
.Methods inherited from interface it.tidalwave.role.StringRenderable
render
-
Field Details
-
_PlainTextRenderable_
-
-
Method Details
-
renderTo
Description copied from interface:StringRenderable
Renders the attached object appending to aStringBuilder
. 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 interfaceStringRenderable
- Parameters:
stringBuilder
- theStringBuilder
to append toargs
- optional rendering parameters- Since:
- 3.2-ALPHA-1 (was previously on
Feedback8
-
renderTo
Description copied from interface:StringRenderable
Renders the attached object printing to aPrintWriter
. 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 interfaceStringRenderable
- Parameters:
printWriter
- thePrintWriter
to print toargs
- optional rendering parameters- Since:
- 3.2-ALPHA-1 (was previously on
Feedback8
-