| java.lang.Object dinamica.parser.FastTemplateEngine
FastTemplateEngine | public class FastTemplateEngine implements java.io.Serializable(Code) | | FastTemplateEngine
New fast parser engine, provides high performance
template management. Instances of this class are serializable.
Creation date: 20/06/2004
(c) 2004 Martin Cordova y Asociados
http://www.martincordova.com/fck
author: Martin Cordova dinamica@martincordova.com |
Method Summary | |
public ArrayList<Marker> | getMarkers() | public void | resetValues() Clear all markers data values, this is specially
useful if you store Template objects in cache
and need to reuse them with another set of data values. | public void | setTemplate(String body) | public void | setValue(String key, String value) Set data value to be used to replace a certail marker
defined in the template. | public String | toString() Returns the content of the template with all the markers
replaced by the corresponding value of by an empty string of
no value was defined for a certain marker. |
FastTemplateEngine | public FastTemplateEngine()(Code) | | |
getMarkers | public ArrayList<Marker> getMarkers()(Code) | | Returns a list of markers contained in a FastTemplate object
Parameters: prefix - The type of marker (fld, lbl, def, inc, seq) ArrayList containing Marker objects throws: Throwable - |
resetValues | public void resetValues()(Code) | | Clear all markers data values, this is specially
useful if you store Template objects in cache
and need to reuse them with another set of data values.
|
setTemplate | public void setTemplate(String body) throws Throwable(Code) | | Set template body
Parameters: body - A String that contains the template text throws: Throwable - if body=null |
setValue | public void setValue(String key, String value) throws Throwable(Code) | | Set data value to be used to replace a certail marker
defined in the template.
Parameters: key - Marker name, must be in the form ${markerName} Parameters: value - Data value throws: Triggers - exception if no template has been set with setTemplate()or if the key does not match any marker. |
toString | public String toString()(Code) | | Returns the content of the template with all the markers
replaced by the corresponding value of by an empty string of
no value was defined for a certain marker.
Template body |
|
|