|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Template
Represents a loaded and compiled template.
Method Summary | |
---|---|
TemplateEngine |
getEngine()
Returns the template engine that was used to create this template. |
java.util.List<ResourceKey> |
getImportedResourceKeys()
Returns the imported resource key |
TemplateLocator |
getLocator()
Returns the template locator |
MacroReference |
getMacroReference(java.lang.String qualifiedName)
Returns the macro refernce with the specified name and the specified extension |
Messages |
getMessages(TemplateEngine engine)
Resolves the messages for this template |
void |
render(java.io.Writer writer,
BuildContext context)
Renders the template to the specified writer using the specified build context |
void |
render(java.io.Writer writer,
java.lang.Object workingObject)
Render the template to the specified writer. |
void |
render(java.io.Writer writer,
java.lang.Object workingObject,
java.util.Locale locale)
Render the template to the specified writer. |
void |
render(java.io.Writer writer,
java.lang.Object workingObject,
java.util.Locale locale,
LineSeparator lineSeparator)
Renders the template to the specified writer |
Method Detail |
---|
TemplateEngine getEngine()
TemplateLocator getLocator()
Messages getMessages(TemplateEngine engine) throws TemplateException
engine
- the engine
TemplateException
- on occasionjava.util.List<ResourceKey> getImportedResourceKeys()
MacroReference getMacroReference(java.lang.String qualifiedName)
qualifiedName
- the qualified name of the macro
void render(java.io.Writer writer, java.lang.Object workingObject) throws TemplateException, java.io.IOException
writer
- the writerworkingObject
- the working object
TemplateException
- on occasion
java.io.IOException
- on occasionvoid render(java.io.Writer writer, java.lang.Object workingObject, java.util.Locale locale) throws TemplateException, java.io.IOException
writer
- the writerworkingObject
- the working objectlocale
- the locale
TemplateException
- on occasion
java.io.IOException
- on occasionvoid render(java.io.Writer writer, java.lang.Object workingObject, java.util.Locale locale, LineSeparator lineSeparator) throws TemplateException, java.io.IOException
writer
- the writerworkingObject
- the working objectlocale
- the localelineSeparator
- the line separator
TemplateException
- on occasion
java.io.IOException
- on occasionvoid render(java.io.Writer writer, BuildContext context) throws TemplateException, java.io.IOException
context
- the contextwriter
- the writer
TemplateException
- on occasion
java.io.IOException
- on occasion
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |