Uses of Interface
org.webmacro.Template

Packages that use Template
org.webmacro Primarily interfaces defining the core functionality of WebMacro. 
org.webmacro.directive Classes which implement a WebMacro Directive. 
org.webmacro.engine Classes that implement the core functionality of WebMacro. 
org.webmacro.resource Classes that relate to resources made available in the WebMacro system. 
org.webmacro.servlet Classes to support execution of WebMacro in a servlet container. 
org.webmacro.util Classes to simplify evaluation, settings, logging, encoding/decoding and escaping. 
 

Uses of Template in org.webmacro
 

Methods in org.webmacro that return Template
 Template WM.getTemplate(java.lang.String key)
          Retrieve a template from the "template" provider.
 Template URLTemplateLoader.load(java.lang.String query, CacheElement ce)
          Tries to load a template by interpreting query as a path relative to the path set by setPath.
 Template WebMacro.getTemplate(java.lang.String key)
          Retrieve a template from the "template" provider.
 

Uses of Template in org.webmacro.directive
 

Methods in org.webmacro.directive that return Template
protected  Template IncludeDirective.getTemplate(Broker b, java.lang.String name)
          get a Template via the "template" provider known by the specified broker
 

Uses of Template in org.webmacro.engine
 

Classes in org.webmacro.engine that implement Template
 class FileTemplate
          FileTemplate objects read their template data from a text file.
 class StreamTemplate
          StreamTempaltes are constructed with a stream from which they read their data.
 class StringTemplate
          StringTemplate objects read their template data from a string.
 class WMTemplate
          Template objects represent the user defined layout into which the webmacro package will substitute values.
 

Methods in org.webmacro.engine with parameters of type Template
 void BuildContext.mergeConstants(Template t)
          Add #macros and #params from the specified Template to this bulid context
 

Uses of Template in org.webmacro.resource
 

Classes in org.webmacro.resource that implement Template
 class URLTemplate
          FileTemplate objects read their template data from a text file.
 

Methods in org.webmacro.resource that return Template
 Template BrokerTemplateLoader.load(java.lang.String query, CacheElement ce)
           
 Template ClassPathTemplateLoader.load(java.lang.String query, CacheElement ce)
           
 Template FileTemplateLoader.load(java.lang.String query, CacheElement ce)
          Tries to load a template by interpreting query as a path relative to the path set by setPath.
 Template TemplateLoader.load(java.lang.String query, CacheElement ce)
          Try to load a template.
 Template TemplateLoaderHelper.load(java.io.File file, CacheElement ce)
          Load a template from a file.
 Template TemplateLoaderHelper.load(java.net.URL url, CacheElement ce)
          Load a template from an url.
 Template ServletContextTemplateLoader.load(java.lang.String query, CacheElement ce)
           
 Template TemplatePathTemplateLoader.load(java.lang.String query, CacheElement ce)
           
 

Uses of Template in org.webmacro.servlet
 

Methods in org.webmacro.servlet that return Template
protected  Template WMServlet.error(WebContext context, java.lang.String error)
          Create an error template using the built in error handler.
 Template WMServlet.getTemplate(java.lang.String key)
          Retrieve a template from the "template" provider.
abstract  Template WMServlet.handle(WebContext context)
          This method is called to handle the processing of a request.
 Template WMServlet.getErrorTemplate()
          Gets a template for displaying an error message.
 Template Handler.accept(WebContext contextData)
          This is the primary method you override to create a new handler.
 

Methods in org.webmacro.servlet with parameters of type Template
protected  void WMServlet.execute(Template tmpl, WebContext c)
          This method takes a populated context and a template and writes out the interpreted template to the context's output stream.
 

Constructors in org.webmacro.servlet with parameters of type Template
TemplateTool.MacroTemplate(Context c, Template t)
          Constructor
 

Uses of Template in org.webmacro.util
 

Methods in org.webmacro.util that return Template
 Template WMEval.init(java.io.InputStream template)
          Initializes WMEval so that it can perform currentTemplate evaluation on multiple contexts.
 Template WMEval.getCurrentTemplate()
          Gets the current template.
 Template WMEval.parseLocalTemplate(java.lang.String templateName)
          A convenience method to find and parse a template in the local template path.
 

Methods in org.webmacro.util with parameters of type Template
 void WMEval.setCurrentTemplate(Template parsedTemplate)
          Supplies the parsed currentTemplate directly.
 java.lang.String WMEval.eval(Context context, Template template)
          Evaluate the supplied context and template and return the result as a as a string.
 



Copyright © 1999-2006 WebMacro. All Rights Reserved.