public abstract class StringRenderableSupport extends Object implements StringRenderable
Renderable
.StringRenderable
Constructor and Description |
---|
StringRenderableSupport() |
Modifier and Type | Method and Description |
---|---|
abstract String |
render(Object... args)
Renders the attached object into a
String . |
void |
renderTo(PrintWriter printWriter,
Object... args)
Renders the attached object printing to a
PrintWriter . |
void |
renderTo(StringBuilder stringBuilder,
Object... args)
Renders the attached object appending to a
StringBuilder . |
@Nonnull public abstract String render(@Nonnull Object... args)
StringRenderable
String
. 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.render
in interface StringRenderable
args
- optional rendering parameterspublic void renderTo(@Nonnull StringBuilder stringBuilder, @Nonnull Object... args)
StringRenderable
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.renderTo
in interface StringRenderable
stringBuilder
- the StringBuilder
to append toargs
- optional rendering parameterspublic void renderTo(@Nonnull PrintWriter printWriter, @Nonnull Object... args)
StringRenderable
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.renderTo
in interface StringRenderable
printWriter
- the PrintWriter
to print toargs
- optional rendering parametersCopyright © 2009-2013 Tidalwave s.a.s. (http://tidalwave.it). All Rights Reserved.