Package org.tentackle.maven
Class TemplateModel
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
The freemarker template model.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionTemplateModel(org.apache.maven.plugin.logging.Log logger) Creates the template model. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a map to the model.
Keys are translated to camel case.voidaddProperties(Properties properties) Adds the properties to the model.
Keys are translated to camel case.voidAdds 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, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
TemplateModel
public TemplateModel(org.apache.maven.plugin.logging.Log logger) Creates the template model.- Parameters:
logger- the maven logger
-
-
Method Details
-
addProperties
Adds the properties to the model.
Keys are translated to camel case.- Parameters:
properties- the properties
-
addMap
Adds a map to the model.
Keys are translated to camel case.- Parameters:
map- the properties
-
putValue
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
-