|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ITemplateEngine
| Method Summary | |
|---|---|
IContext |
getContext()
|
IContext |
initializeContext()
Initialize context. |
void |
merge(java.io.File file)
Merge. |
void |
merge(java.lang.String file)
Merge. |
void |
merge(java.io.Writer writer)
Merge. |
IContext |
newContext()
|
void |
put(java.lang.String key,
java.lang.Object value)
Put a value for the given key. |
void |
setDefaultFormat(java.lang.Class clazz,
java.text.Format format)
Set the default format for a given class. |
void |
setGlobalContext(IContext globalContext)
Use a pre-populated Context. |
void |
setTemplate(java.io.Reader template)
Set the template to use |
| Method Detail |
|---|
IContext initializeContext()
IContext getContext()
void setTemplate(java.io.Reader template)
template -
void put(java.lang.String key,
java.lang.Object value)
key - value -
void merge(java.lang.String file)
throws java.lang.Exception
file - name of file to merge into
java.lang.Exception
void merge(java.io.File file)
throws java.lang.Exception
file - file to merge into
java.lang.Exception
void merge(java.io.Writer writer)
throws java.lang.Exception
writer - writer to merge into
java.lang.ExceptionIContext newContext()
void setGlobalContext(IContext globalContext)
innerContext - a pre-populated Context object
void setDefaultFormat(java.lang.Class clazz,
java.text.Format format)
clazz - class to set format forformat - format to use for instances of the given class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||