org.cofax
Class TemplateProcessor
java.lang.Object
|
+--org.cofax.TemplateProcessor
- All Implemented Interfaces:
- java.lang.Runnable
- Direct Known Subclasses:
- WysiwygTemplate
- public abstract class TemplateProcessor
- extends java.lang.Object
- implements java.lang.Runnable
Cofax's top level template processor class. Cofax compatible Template processors implement this interface.
WysiwygTemplate is one example of a template processing class.
XSLTemplate will be used to process Cofax data with XSL templates.
Other template processors can be plugged in to be used with
other template systems and/or conventions. Custom template handlers
compliant to this API can be easily written to work with a site's
legacy template conventions.
TemplateProcessor
classes are listed in the configuration and loaded dynamically.
- Version:
- 1.5
- Author:
- Rajiv Pant, Karl Martino
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.Runnable |
run |
TemplateProcessor
public TemplateProcessor()
setPage
public abstract void setPage(CofaxPage inPage)
setTemplate
public abstract void setTemplate(CofaxPage inTemplate)
setGlossary
public abstract void setGlossary(java.util.HashMap inGlossary)
setDb
public abstract void setDb(DataStore inDb)
applyTemplate
public abstract boolean applyTemplate()
applyTemplate
public abstract java.lang.String applyTemplate(java.lang.StringBuffer template,
java.util.HashMap glossary)
Copyright 2001 KnightRidder.com. All Rights Reserved.