public final class ParameterTemplate extends Object
Modifier and Type | Method and Description |
---|---|
static ParameterTemplate |
parameter(String name,
String def)
Returns a template for single constant string value.
|
static ParameterTemplate |
parse(String template)
Returns the value of this template using the content request.
|
String |
toString(Map<String,String> map)
Resolves this template using the specified content request.
|
static ParameterTemplate |
value(String value)
Returns a template for single constant string value.
|
public String toString(Map<String,String> map)
map
- A map of values to use.public static ParameterTemplate parse(String template)
template
- The template to parse.public static ParameterTemplate value(String value)
Use this method when you know that the template is made of a single plain value and does not require to be parsed.
value
- The value.public static ParameterTemplate parameter(String name, String def)
Use this method when you know that the template is made of a single plain value and does not require to be parsed.
name
- The value.def
- The default value for the parameter (optional)Copyright © 2016 Allette Systems. All rights reserved.