|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.peaseplate.internal.template.AbstractTemplate org.peaseplate.internal.template.ChunkBasedTemplate
public class ChunkBasedTemplate
Constructor Summary | |
---|---|
ChunkBasedTemplate(TemplateEngine engine,
TemplateLocator locator,
Chunk[] chunks,
java.util.List<ResourceKey> importedResourceKeys,
java.util.Map<java.lang.String,MacroBlock> macroBlocks)
|
Method Summary | |
---|---|
java.util.List<ResourceKey> |
getImportedResourceKeys()
Returns the imported resource key |
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 |
java.lang.String |
toString()
|
Methods inherited from class org.peaseplate.internal.template.AbstractTemplate |
---|
getEngine, getLocator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ChunkBasedTemplate(TemplateEngine engine, TemplateLocator locator, Chunk[] chunks, java.util.List<ResourceKey> importedResourceKeys, java.util.Map<java.lang.String,MacroBlock> macroBlocks)
Method Detail |
---|
public Messages getMessages(TemplateEngine engine) throws TemplateException
Template
engine
- the engine
TemplateException
- on occasionTemplate.getMessages(org.peaseplate.TemplateEngine)
public java.util.List<ResourceKey> getImportedResourceKeys()
Template
Template.getImportedResourceKeys()
public MacroReference getMacroReference(java.lang.String qualifiedName)
Template
qualifiedName
- the qualified name of the macro
Template.getMacroReference(java.lang.String)
public void render(java.io.Writer writer, java.lang.Object workingObject) throws TemplateException, java.io.IOException
Template
writer
- the writerworkingObject
- the working object
TemplateException
- on occasion
java.io.IOException
- on occasionTemplate.render(java.io.Writer, java.lang.Object)
public void render(java.io.Writer writer, java.lang.Object workingObject, java.util.Locale locale) throws TemplateException, java.io.IOException
Template
writer
- the writerworkingObject
- the working objectlocale
- the locale
TemplateException
- on occasion
java.io.IOException
- on occasionTemplate.render(java.io.Writer, java.lang.Object, java.util.Locale)
public void render(java.io.Writer writer, java.lang.Object workingObject, java.util.Locale locale, LineSeparator lineSeparator) throws TemplateException, java.io.IOException
Template
writer
- the writerworkingObject
- the working objectlocale
- the localelineSeparator
- the line separator
TemplateException
- on occasion
java.io.IOException
- on occasionorg.peaseplate.Template#render(java.io.Writer, java.lang.Object, java.util.Locale, java.lang.String)
public void render(java.io.Writer writer, BuildContext context) throws TemplateException, java.io.IOException
Template
writer
- the writercontext
- the context
TemplateException
- on occasion
java.io.IOException
- on occasionTemplate.render(java.io.Writer, org.peaseplate.internal.BuildContext)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |