Package org.jdrupes.vmoperator.util
Class DtoTemplateModel
java.lang.Object
freemarker.template.WrappingTemplateModel
org.jdrupes.vmoperator.util.DtoTemplateModel
- All Implemented Interfaces:
WrapperTemplateModel
,TemplateHashModel
,TemplateModel
public class DtoTemplateModel
extends WrappingTemplateModel
implements WrapperTemplateModel, TemplateHashModel
Wraps a DTO in a
TemplateHashModel
.-
Field Summary
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
-
Constructor Summary
ConstructorDescriptionDtoTemplateModel
(ObjectWrapper objectWrapper, Dto dto) Instantiates a new DTO template model. -
Method Summary
Methods inherited from class freemarker.template.WrappingTemplateModel
getDefaultObjectWrapper, getObjectWrapper, setDefaultObjectWrapper, setObjectWrapper, wrap
-
Constructor Details
-
DtoTemplateModel
Instantiates a new DTO template model.- Parameters:
objectWrapper
- the object wrapperdto
- the dto
-
-
Method Details
-
get
- Specified by:
get
in interfaceTemplateHashModel
- Throws:
TemplateModelException
-
isEmpty
- Specified by:
isEmpty
in interfaceTemplateHashModel
- Throws:
TemplateModelException
-
getWrappedObject
- Specified by:
getWrappedObject
in interfaceWrapperTemplateModel
-