PlaceholderRenderService

Service that renders various PlaceholderLiteral s, as presented with the UI.

API

PlaceholderRenderService.java
interface PlaceholderRenderService {
  String asText(PlaceholderLiteral placeholderLiteral, Map<String, String> vars)     (1)
  String asText(PlaceholderLiteral placeholderLiteral)
  String asHtml(PlaceholderLiteral placeholderLiteral, Map<String, String> vars)     (2)
  String asHtml(PlaceholderLiteral placeholderLiteral)
  String interpolate(String raw, Map<String, String> vars)
  PlaceholderRenderService fallback()
}
1 asText(PlaceholderLiteral, Map)

Textual representation of given PlaceholderLiteral , as used for eg. titles and choice drop-downs.

2 asHtml(PlaceholderLiteral, Map)

HTML representation of given PlaceholderLiteral , as used for rendering with the UI (when appropriate).

Members

asText(PlaceholderLiteral, Map)

Textual representation of given PlaceholderLiteral , as used for eg. titles and choice drop-downs.

asHtml(PlaceholderLiteral, Map)

HTML representation of given PlaceholderLiteral , as used for rendering with the UI (when appropriate).

Implementation

The Core Runtime Services module provides a default of this service, namely PlaceholderRenderServiceDefault.