|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
java.util.Map |
getMacros()
Get a Map containing all #macros defined for this template. |
java.lang.String |
getName()
|
java.lang.Object |
getParam(java.lang.String name)
A template may contain parameters, set by the #param directive. |
java.util.Map |
getParameters()
|
void |
parse()
Force the template to parse now. |
void |
setName(java.lang.String name)
|
void |
setParam(java.lang.String key,
java.lang.Object value)
set a parameter. |
Methods inherited from interface org.webmacro.Macro |
evaluate, write |
Methods inherited from interface org.webmacro.Visitable |
accept |
Method Detail |
public void parse() throws java.io.IOException, TemplateException
TemplateException
- if the sytax was invalid and we could not recover
java.io.IOException
- if we could not successfullly read the parseToolpublic java.lang.Object getParam(java.lang.String name) throws java.io.IOException, TemplateException
If the template has not already been parsed, it will be parsed. Thus this method may throw ParseException or IOException if there is some failure in accessing or parsing the template.
java.io.IOException
- if an error occurred reading the template
TemplateException
- if an error occurred parsing the templatepublic void setParam(java.lang.String key, java.lang.Object value)
public java.util.Map getParameters()
public java.lang.String getName()
public void setName(java.lang.String name)
public java.util.Map getMacros()
null
if this Template
does not contain Macros, or if this Template has not been
parsed yet.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |