com.metamatrix.vdb.materialization.template
Class TemplateExpander
java.lang.Object
com.metamatrix.vdb.materialization.template.TemplateExpander
public class TemplateExpander
- extends java.lang.Object
Uses a set of data values and templates to generate an expanded template.
For example, this is used to generate a script file from a template.
Hides all of the 3rd party classes used in the template processing.
- Since:
- 4.2
Method Summary |
ExpandedTemplate |
expand(java.lang.String nameTemplate,
java.io.Reader[] templateReaders,
java.lang.String templateName)
Produce the name and contents of an expanded template. |
java.lang.String |
expandText(java.lang.String templateText)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TemplateExpander
public TemplateExpander(TemplateData data,
DatabaseDialect database)
expand
public ExpandedTemplate expand(java.lang.String nameTemplate,
java.io.Reader[] templateReaders,
java.lang.String templateName)
- Produce the name and contents of an expanded template.
- Parameters:
nameTemplate
- is a template for the name of the expanded template.templateReaders
- are the Reader objects that provide the contents of the templates to expand
to produce the results.templateName
- is the name of the main template to invoke from all of the templates provided
by the templateReaders.
- Returns:
- the ExpandedTemplate.
- Since:
- 4.2
expandText
public java.lang.String expandText(java.lang.String templateText)
Copyright © 2009. All Rights Reserved.