public static class RenderContext.Builder extends Object
| Constructor and Description |
|---|
Builder() |
Builder(RenderContext context) |
| Modifier and Type | Method and Description |
|---|---|
RenderContext |
build() |
RenderContext.Builder |
clearData()
Clears any provided
data. |
RenderContext.Builder |
data(Map<String,Object> value) |
RenderContext.Builder |
hardwrap(boolean value) |
RenderContext.Builder |
hardwrap(Boolean value) |
RenderContext.Builder |
htmlEscape(boolean value) |
RenderContext.Builder |
htmlEscape(Boolean value) |
RenderContext.Builder |
includeHeadingId(boolean value) |
RenderContext.Builder |
includeHeadingId(Boolean value) |
RenderContext.Builder |
urlMode(UrlMode value) |
public Builder()
public Builder(@Nonnull RenderContext context)
@Nonnull public RenderContext build()
@Nonnull public RenderContext.Builder clearData()
data.this@Nonnull public RenderContext.Builder data(@Nonnull Map<String,Object> value)
value - a map containing additional data to make available when rendering, which is appended
to any existing datathis@Nonnull public RenderContext.Builder hardwrap(boolean value)
value - true to convert newlines to breaks; otherwise, false to leave them intactthis@Nonnull public RenderContext.Builder hardwrap(@Nullable Boolean value)
value - TRUE to convert newlines to breaks; FALSE to leave them intact; or
null to use the system-configured defaultthis@Nonnull public RenderContext.Builder htmlEscape(boolean value)
value - true if HTML should be escaped in the input markup; otherwise, false to
retain HTMLthis@Nonnull public RenderContext.Builder htmlEscape(Boolean value)
value - TRUE if HTML should be escaped in the input markup; FALSE to retain HTML;
or null to use the system-configured defaultthis@Nonnull public RenderContext.Builder includeHeadingId(boolean value)
value - true if an ID should be added for each rendered header rendered; otherwise,
false to render headers without IDsthis@Nonnull public RenderContext.Builder includeHeadingId(Boolean value)
value - TRUE if an ID should be added for each rendered header rendered; FALSE to
render headers without IDs; or null to use the system-configured defaultthis@Nonnull public RenderContext.Builder urlMode(@Nonnull UrlMode value)
value - the mode to use when rendering URLsthisCopyright © 2019 Atlassian. All rights reserved.