| com.metaboss.javatemplate.JavaTemplate
All known Subclasses: designlibrary.core.StringField, designlibrary.core.EnumerableValueField, MetaLib.common.PasswordField, MetaLib.common.StringField, MetaLib.core.EnumerableValueField, designlibrary.core.EntityStateField, designlibrary.core.PasswordField, MetaLib.core.EntityStateField,
JavaTemplate | public interface JavaTemplate (Code) | | This interface represents the Java template.
Java Template is a simple 'servlet' style class, which is expected to produce
some output text from input context. Most of the code inside template is
simple output operations (i.e. print() println() etc)
|
Method Summary | |
public void | mergeTemplate(PrintWriter pOutputWriter, JavaTemplateContext pContext) This method is called to perform the template merge with the values supplied in context
Parameters: pOutputWriter - the sinc for the result of the merging. |
mergeTemplate | public void mergeTemplate(PrintWriter pOutputWriter, JavaTemplateContext pContext) throws JavaTemplateException(Code) | | This method is called to perform the template merge with the values supplied in context
Parameters: pOutputWriter - the sinc for the result of the merging. Template code should callprint(..) and println(...) methods of this writer to build the output Parameters: pContext - the context where all the dynamic template values are stored exception: BSJavaTemplateException - thrown when something went wrong during merging |
|
|