public abstract class AbstractVelocityXslTransformation extends AbstractXslTransformation
Constructor and Description |
---|
AbstractVelocityXslTransformation() |
Modifier and Type | Method and Description |
---|---|
protected Class<? extends XslTransformation> |
getTemplateClass()
Get the transformation class that alongside it has the template to be
loaded.
|
protected org.apache.velocity.Template |
loadTemplate()
Load the main transformation velocity template.
|
protected void |
writeTemplate(org.apache.velocity.Template template,
org.apache.velocity.VelocityContext context,
LocatableOutputSupplier<? extends OutputStream> out)
Merge the velocity template with the context and write it to the given
output supplier.
|
context, setContext
protected org.apache.velocity.Template loadTemplate() throws TransformationException
TransformationException
- if loading the template failsprotected Class<? extends XslTransformation> getTemplateClass()
loadTemplate()
.protected void writeTemplate(org.apache.velocity.Template template, org.apache.velocity.VelocityContext context, LocatableOutputSupplier<? extends OutputStream> out) throws TransformationException
template
- the velocity templatecontext
- the velocity contextout
- the output supplierTransformationException
- if merging or writing the template failsBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a