org.qi4j.library.rest.server.restlet.freemarker
Class ValueCompositeTemplateModel

java.lang.Object
  extended by org.qi4j.library.rest.server.restlet.freemarker.ValueCompositeTemplateModel
All Implemented Interfaces:
freemarker.template.TemplateHashModel, freemarker.template.TemplateHashModelEx, freemarker.template.TemplateModel, freemarker.template.TemplateScalarModel

public class ValueCompositeTemplateModel
extends java.lang.Object
implements freemarker.template.TemplateHashModelEx, freemarker.template.TemplateScalarModel

TODO


Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Fields inherited from interface freemarker.template.TemplateScalarModel
EMPTY_STRING
 
Constructor Summary
ValueCompositeTemplateModel(ValueComposite composite, freemarker.template.ObjectWrapper wrapper)
           
 
Method Summary
 freemarker.template.TemplateModel get(java.lang.String key)
           
 java.lang.String getAsString()
           
 boolean isEmpty()
           
 freemarker.template.TemplateCollectionModel keys()
           
 int size()
           
 freemarker.template.TemplateCollectionModel values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueCompositeTemplateModel

public ValueCompositeTemplateModel(ValueComposite composite,
                                   freemarker.template.ObjectWrapper wrapper)
Method Detail

size

public int size()
         throws freemarker.template.TemplateModelException
Specified by:
size in interface freemarker.template.TemplateHashModelEx
Throws:
freemarker.template.TemplateModelException

keys

public freemarker.template.TemplateCollectionModel keys()
                                                 throws freemarker.template.TemplateModelException
Specified by:
keys in interface freemarker.template.TemplateHashModelEx
Throws:
freemarker.template.TemplateModelException

values

public freemarker.template.TemplateCollectionModel values()
                                                   throws freemarker.template.TemplateModelException
Specified by:
values in interface freemarker.template.TemplateHashModelEx
Throws:
freemarker.template.TemplateModelException

get

public freemarker.template.TemplateModel get(java.lang.String key)
                                      throws freemarker.template.TemplateModelException
Specified by:
get in interface freemarker.template.TemplateHashModel
Throws:
freemarker.template.TemplateModelException

isEmpty

public boolean isEmpty()
                throws freemarker.template.TemplateModelException
Specified by:
isEmpty in interface freemarker.template.TemplateHashModel
Throws:
freemarker.template.TemplateModelException

getAsString

public java.lang.String getAsString()
                             throws freemarker.template.TemplateModelException
Specified by:
getAsString in interface freemarker.template.TemplateScalarModel
Throws:
freemarker.template.TemplateModelException