org.alfresco.service.cmr.repository
Interface TemplateProcessor

All Superinterfaces:
org.alfresco.processor.Processor
All Known Implementing Classes:
FreeMarkerProcessor, XSLTProcessor

public interface TemplateProcessor
extends org.alfresco.processor.Processor

Interface to be implemented by template engine wrapper classes. The developer is responsible for interfacing to an appropriate template engine, using the supplied data model as input to the template and directing the output to the Writer stream.


Method Summary
 void process(java.lang.String template, java.lang.Object model, java.io.Writer out)
          Process a template against the supplied data model and write to the out.
 void processString(java.lang.String template, java.lang.Object model, java.io.Writer out)
          Process a string template against the supplied data model and write to the out.
 
Methods inherited from interface org.alfresco.processor.Processor
getExtension, getName, registerProcessorExtension
 

Method Detail

process

void process(java.lang.String template,
             java.lang.Object model,
             java.io.Writer out)
Process a template against the supplied data model and write to the out.

Parameters:
template - Template name/path
model - Object model to process template against
out - Writer object to send output too

processString

void processString(java.lang.String template,
                   java.lang.Object model,
                   java.io.Writer out)
Process a string template against the supplied data model and write to the out.

Parameters:
template - Template string
model - Object model to process template against
out - Writer object to send output too


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.