Package it.tidalwave.role
Interface StringRenderable
- All Known Subinterfaces:
HtmlRenderable
,PlainTextRenderable
- 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 HTML markup.- Author:
- Fabrizio Giudici
- Stereotype:
- Role
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionRenders the attached object into aString
.default 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
.
-
Field Details
-
_StringRenderable_
-
-
Method Details
-
render
Renders the attached object into aString
. 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.- Parameters:
args
- optional rendering parameters- Returns:
- the string
-
renderTo
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.- Parameters:
stringBuilder
- theStringBuilder
to append toargs
- optional rendering parameters
-
renderTo
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.- Parameters:
printWriter
- thePrintWriter
to print toargs
- optional rendering parameters
-