Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

freemarker.testcase.models
Class TransformHashWrapper  view TransformHashWrapper download TransformHashWrapper.java

java.lang.Object
  extended byfreemarker.testcase.models.TransformHashWrapper
All Implemented Interfaces:
freemarker.template.TemplateHashModel, freemarker.template.TemplateModel, freemarker.template.TemplateScalarModel

public class TransformHashWrapper
extends java.lang.Object
implements freemarker.template.TemplateHashModel, freemarker.template.TemplateScalarModel

Part of the TestTransform testcase suite.

Version:
$Id: TransformHashWrapper.java,v 1.15 2005/06/16 18:13:59 ddekany Exp $

Field Summary
private  freemarker.template.SimpleHash m_cHashModel
           
 
Fields inherited from interface freemarker.template.TemplateModel
NOTHING
 
Fields inherited from interface freemarker.template.TemplateScalarModel
EMPTY_STRING
 
Constructor Summary
TransformHashWrapper()
          Creates new TransformHashWrapper
 
Method Summary
 freemarker.template.TemplateModel get(java.lang.String key)
          Gets a TemplateModel from the hash.
 java.lang.String getAsString()
          Returns the scalar's value as a String.
 boolean isEmpty()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_cHashModel

private freemarker.template.SimpleHash m_cHashModel
Constructor Detail

TransformHashWrapper

public TransformHashWrapper()
Creates new TransformHashWrapper

Method Detail

get

public freemarker.template.TemplateModel get(java.lang.String key)
                                      throws freemarker.template.TemplateModelException
Gets a TemplateModel from the hash.

Specified by:
get in interface freemarker.template.TemplateHashModel

isEmpty

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

getAsString

public java.lang.String getAsString()
Returns the scalar's value as a String.

Specified by:
getAsString in interface freemarker.template.TemplateScalarModel