public class ResultToolkit
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static FrameSeparator |
DEFAULT_SEPARATOR |
private static java.util.regex.Pattern |
TEMPLATE_PATTERN |
Constructor and Description |
---|
ResultToolkit() |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
encodeIfNeeded(java.lang.String input,
boolean shouldEncode) |
private static TypedPreference<?> |
getPreferenceById(IRule rule,
java.lang.String identifier) |
private static TypedResult<?> |
getResultById(IRule rule,
java.lang.String identifier) |
static java.lang.String |
populateMessage(IResult result,
java.lang.String string,
boolean withHtml)
Populates the result message with result data.
|
private static final java.util.regex.Pattern TEMPLATE_PATTERN
private static final FrameSeparator DEFAULT_SEPARATOR
public static java.lang.String populateMessage(IResult result, java.lang.String string, boolean withHtml)
result
- the result to get the data fromstring
- the message to populateprivate static java.lang.String encodeIfNeeded(java.lang.String input, boolean shouldEncode)
private static TypedResult<?> getResultById(IRule rule, java.lang.String identifier)
private static TypedPreference<?> getPreferenceById(IRule rule, java.lang.String identifier)