public class TemplateUtil extends Object
Constructor and Description |
---|
TemplateUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
applyTableTemplate(String template,
Properties inputs,
Pattern parameterPattern,
StringBuffer results) |
static String |
applyTemplate(String template,
IRuntimeContext context) |
static String |
applyTemplate(String template,
IRuntimeContext context,
IParameterResolver resolver) |
static String |
applyTemplate(String template,
IRuntimeContext context,
String parameterPatternStr) |
static String |
applyTemplate(String template,
Properties inputs,
IParameterResolver resolver) |
static String |
applyTemplate(String template,
Properties inputs,
Pattern parameterPattern,
IParameterResolver resolver)
Processes a template by processing the parameters declared in the template.
|
static String |
applyTemplate(String template,
String name,
String value) |
static String |
applyTemplate(String template,
String name,
String[] value) |
static String |
getSystemInput(String inputName,
IRuntimeContext context) |
static String |
matchDateRegex(String parameter)
Uses regex matching to see if the input parameter appears to be a date expression
|
static String |
matchDateRegex(String parameter,
Properties inputs)
Uses regex matching to see if the input parameter appears to be a date expression
|
static Properties |
parametersToProperties(IParameterProvider parameterProvider) |
public static String getSystemInput(String inputName, IRuntimeContext context)
public static String applyTemplate(String template, IRuntimeContext context, IParameterResolver resolver)
public static String applyTemplate(String template, IRuntimeContext context)
public static String applyTemplate(String template, IRuntimeContext context, String parameterPatternStr)
public static String applyTemplate(String template, Properties inputs, IParameterResolver resolver)
public static String applyTemplate(String template, Properties inputs, Pattern parameterPattern, IParameterResolver resolver)
template
- the template specification.input
- the input values communicated as a Properties
.locale
- the locale to use for the formatting of date expression. If null, the locale for the thread
is used. If no locale for the thread, then the default locale is used.IllegalArgumentException
- if a date expression is illegalDateMath.calculateDateString(Calendar, String)
,
PentahoSystem#getLocale()
,
PentahoSystem#getDefaultLocale()
public static void applyTableTemplate(String template, Properties inputs, Pattern parameterPattern, StringBuffer results)
public static String matchDateRegex(String parameter)
parameter
- public static String matchDateRegex(String parameter, Properties inputs)
parameter
- public static Properties parametersToProperties(IParameterProvider parameterProvider)
Copyright © 2017 Hitachi Vantara. All rights reserved.