org.apache.turbine.services.freemarker
Class DynamicURIModel

java.lang.Object
  |
  +--org.apache.turbine.services.freemarker.DynamicURIModel
All Implemented Interfaces:
freemarker.template.TemplateMethodModel, freemarker.template.TemplateModel

public class DynamicURIModel
extends java.lang.Object
implements freemarker.template.TemplateMethodModel

Creates a TEXTAREA html tag. The rows, columns, and wrap attribute can be passed in through a list. Extension of FreeMarker.

Version:
$Id: DynamicURIModel.java,v 1.2 2002/06/07 21:22:45 henning Exp $
Author:
John D. McNally

Constructor Summary
DynamicURIModel(RunData data)
          Deprecated. Constructor.
 
Method Summary
 freemarker.template.TemplateModel exec(java.util.List args)
          Deprecated. Method called by FreeMarker during template parsing.
 boolean isEmpty()
          Deprecated. Required method in TemplateMethodModel, not implemented.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicURIModel

public DynamicURIModel(RunData data)
Deprecated. 
Constructor.
Parameters:
data - Turbine information.
Method Detail

exec

public freemarker.template.TemplateModel exec(java.util.List args)
                                       throws freemarker.template.TemplateModelException
Deprecated. 
Method called by FreeMarker during template parsing. A list of strings are passed in from the template. The first string can specify https or http or be the only required String which sets the template parameter. Any additional String pairs are taken to be pathInfo data. An "&" String can be used to specify query data which should then be followed by pairs of Strings. E.g (in a template where the DynamicURIModel has been stored under the key "links": ${links("http", "/subdir/directions.html", "from", "LA", "&", "to", "SF")}
Specified by:
exec in interface freemarker.template.TemplateMethodModel
Parameters:
args - A List of Strings passed from the template.
Returns:
A TemplateModel with a String representation of the DynamicURI.
Throws:
TemplateModelException. -  

isEmpty

public boolean isEmpty()
Deprecated. 
Required method in TemplateMethodModel, not implemented.
Specified by:
isEmpty in interface freemarker.template.TemplateModel
Returns:
Always false.


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.