public final class FreemarkerUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
getAsObject(freemarker.template.TemplateModel model,
Class<T> type,
T defaultValue)
Unwraps a TemplateModel to extract an object.
|
public static <T> T getAsObject(freemarker.template.TemplateModel model, Class<T> type, T defaultValue)
model
- The TemplateModel to unwrap.defaultValue
- The default value, as specified in the template
model, or null if not specified.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.