info.magnolia.freemarker.models
Class BinaryNodeDataModel

java.lang.Object
  extended by info.magnolia.freemarker.models.BinaryNodeDataModel
All Implemented Interfaces:
freemarker.template.AdapterTemplateModel, freemarker.template.TemplateHashModel, freemarker.template.TemplateHashModelEx, freemarker.template.TemplateModel, freemarker.template.TemplateScalarModel

public class BinaryNodeDataModel
extends Object
implements freemarker.template.TemplateHashModelEx, freemarker.template.TemplateScalarModel, freemarker.template.AdapterTemplateModel

TODO : review this !

Version:
$Revision: $ ($Author: $)
Author:
Chris Miner

Field Summary
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Fields inherited from interface freemarker.template.TemplateScalarModel
EMPTY_STRING
 
Method Summary
 NodeData asNodeData()
           
 freemarker.template.TemplateModel get(String key)
           
 Object getAdaptedObject(Class hint)
           
 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
 

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(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 String getAsString()
                   throws freemarker.template.TemplateModelException
Specified by:
getAsString in interface freemarker.template.TemplateScalarModel
Throws:
freemarker.template.TemplateModelException

asNodeData

public NodeData asNodeData()

getAdaptedObject

public Object getAdaptedObject(Class hint)
Specified by:
getAdaptedObject in interface freemarker.template.AdapterTemplateModel


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.