public class PutAttributeFMModel extends Object implements freemarker.template.TemplateDirectiveModel
Put an attribute in enclosing attribute container tag.
Enclosing attribute container tag can be :
PutAttributeTagParent
interface. Exception is thrown if no appropriate tag can be found.
Put tag can have following atributes :
Value can also come from tag body. Tag body is taken into account only if value is not set by one of the tag attributes. In this case Attribute type is "string", unless tag body define another type.
Constructor and Description |
---|
PutAttributeFMModel(PutAttributeModel model)
Constructor.
|
public PutAttributeFMModel(PutAttributeModel model)
model
- The template model.public void execute(freemarker.core.Environment env, Map params, freemarker.template.TemplateModel[] loopVars, freemarker.template.TemplateDirectiveBody body) throws freemarker.template.TemplateException, IOException
execute
in interface freemarker.template.TemplateDirectiveModel
freemarker.template.TemplateException
IOException
Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.