Package org.tentackle.maven
Class TemplateModel
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<java.lang.String,java.lang.Object>
-
- org.tentackle.maven.TemplateModel
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map<java.lang.String,java.lang.Object>
public class TemplateModel extends java.util.HashMap<java.lang.String,java.lang.Object>The freemarker template model.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TemplateModel(org.apache.maven.plugin.logging.Log logger)Creates the template model.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMap(java.util.Map<java.lang.String,java.lang.Object> map)Adds a map to the model.
Keys are translated to camel case.voidaddProperties(java.util.Properties properties)Adds the properties to the model.
Keys are translated to camel case.voidputValue(java.lang.String key, java.lang.Object value)Adds a key-value pair to the model.
The value is converted to a string.
nullis mapped to the empty string.-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
addProperties
public void addProperties(java.util.Properties properties)
Adds the properties to the model.
Keys are translated to camel case.- Parameters:
properties- the properties
-
addMap
public void addMap(java.util.Map<java.lang.String,java.lang.Object> map)
Adds a map to the model.
Keys are translated to camel case.- Parameters:
map- the properties
-
putValue
public void putValue(java.lang.String key, java.lang.Object value)Adds a key-value pair to the model.
The value is converted to a string.
nullis mapped to the empty string.- Parameters:
key- the keyvalue- the value
-
-