|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.weborganic.berlioz.content.ParameterTemplate
public final class ParameterTemplate
Defines a simple template for parameter values.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |