public abstract class AbstractVelocityXslTypeTransformation extends AbstractVelocityXslTransformation implements XslTypeTransformation
XslTypeTransformation
based on a velocity template.Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_PARAM_COMMENT
The name of the velocity context parameter that is populated with the
cell information.
|
static String |
CONTEXT_PARAM_TARGET_ELEMENT
The name of the velocity context parameter that is populated with the
target element namespace prefix and name.
|
static String |
CONTEXT_PARAM_TEMPLATE_NAME
The name of the velocity context parameter that is populated with the XSL
template name.
|
Constructor and Description |
---|
AbstractVelocityXslTypeTransformation() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
configureTemplate(org.apache.velocity.VelocityContext context,
Cell typeCell)
Configure the velocity template.
|
void |
generateTemplate(String templateName,
XmlElement targetElement,
Cell typeCell,
LocatableOutputSupplier<? extends OutputStream> out)
Generate a XSLT fragment with a template for the type transformation
represented by the given cell.
|
getTemplateClass, loadTemplate, writeTemplate
context, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setContext
public static final String CONTEXT_PARAM_COMMENT
public static final String CONTEXT_PARAM_TEMPLATE_NAME
public static final String CONTEXT_PARAM_TARGET_ELEMENT
public AbstractVelocityXslTypeTransformation()
public void generateTemplate(String templateName, XmlElement targetElement, Cell typeCell, LocatableOutputSupplier<? extends OutputStream> out) throws TransformationException
XslTypeTransformation
generateTemplate
in interface XslTypeTransformation
templateName
- the name the XSLT template should havetargetElement
- the target element that holds a transformed instancetypeCell
- the type cell representing the type transformationout
- the output supplier for writing the template toTransformationException
- if an unrecoverable error occurs during
the XSLT transformation generationprotected abstract void configureTemplate(org.apache.velocity.VelocityContext context, Cell typeCell) throws TransformationException
context
- the velocity context only filled with the default
parameters yettypeCell
- the type cellTransformationException
- if the template cannot be configured
completelyBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a