public class XSLTTransformation extends AbstractIterationOperation<XmlFileModel> implements XSLTTransformationDescription, XSLTTransformationExtension, XSLTTransformationLocation, XSLTTransformationFileSystem, XSLTTransformationOf
| Modifier and Type | Method and Description |
|---|---|
void |
addXsltParameter(String key,
String value) |
String |
getDescription() |
String |
getExtension() |
String |
getTemplate() |
Map<String,String> |
getXsltParameters() |
boolean |
isUseSaxon()
Indicates whether this is configured to use saxon
|
static XSLTTransformationOf |
of(String variable)
Create a new transformation for the given ref.
|
void |
perform(GraphRewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context)
Set the payload to the fileModel of the given instance even though the variable is not directly of it's type.
|
void |
perform(GraphRewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context,
XmlFileModel payload) |
void |
setContextClassLoader(ClassLoader classLoader) |
XSLTTransformation |
setUseSaxon(boolean useSaxon)
Switch to Saxon, instead of the builtin Java parser (Xalan).
|
static XSLTTransformationLocation |
using(String location)
Create a new
XSLTTransformation using the given location of the source XSLT file within the current
Thread.getContextClassLoader(). |
static XSLTTransformationLocation |
using(String location,
ClassLoader classLoader)
Create a new
XSLTTransformation using the given location of the source XSLT file within the given ClassLoader. |
static XSLTTransformationFileSystem |
usingFilesystem(String location)
Create a new
XSLTTransformation using the given location of the source XSLT file path on the file-system. |
XSLTTransformationLocation |
usingTemplate(String template)
Set the location of the XSLT template to be used.
|
XSLTTransformationLocation |
usingTemplate(String location,
ClassLoader loader)
Set the location of the XSLT template to be used, and the
ClassLoader within which the template is
contained. |
XSLTTransformationDescription |
withDescription(String description)
Description of the
XSLTTransformation operation |
XSLTTransformation |
withEffort(int effort)
Set the estimated effort associated with this
XSLTTransformation; |
XSLTTransformationExtension |
withExtension(String extension)
Extension to be appended to the result file.
|
XSLTTransformationEffort |
withParameters(Map<String,String> parameters)
Set the parameters associated with this
XSLTTransformation; |
camelCase, checkVariableName, getVariableName, hasVariableNameSet, resolvePayload, resolveVariable, setVariableName, toStringperformpublic static XSLTTransformationOf of(String variable)
public static XSLTTransformationLocation using(String location)
XSLTTransformation using the given location of the source XSLT file within the current
Thread.getContextClassLoader().public static XSLTTransformationFileSystem usingFilesystem(String location)
XSLTTransformation using the given location of the source XSLT file path on the file-system.public static XSLTTransformationLocation using(String location, ClassLoader classLoader)
XSLTTransformation using the given location of the source XSLT file within the given ClassLoader.public void perform(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context)
perform in class AbstractIterationOperation<XmlFileModel>public boolean isUseSaxon()
public XSLTTransformation setUseSaxon(boolean useSaxon)
public XSLTTransformationDescription withDescription(String description)
XSLTTransformationLocationXSLTTransformation operationwithDescription in interface XSLTTransformationFileSystemwithDescription in interface XSLTTransformationLocationpublic XSLTTransformationLocation usingTemplate(String template)
XSLTTransformationOfusingTemplate in interface XSLTTransformationOfpublic XSLTTransformationLocation usingTemplate(String location, ClassLoader loader)
XSLTTransformationOfClassLoader within which the template is
contained.usingTemplate in interface XSLTTransformationOfpublic XSLTTransformationExtension withExtension(String extension)
XSLTTransformationDescriptionwithExtension in interface XSLTTransformationDescriptionpublic void perform(GraphRewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, XmlFileModel payload)
perform in class AbstractIterationOperation<XmlFileModel>public XSLTTransformationEffort withParameters(Map<String,String> parameters)
XSLTTransformation;withParameters in interface XSLTTransformationExtensionpublic XSLTTransformation withEffort(int effort)
XSLTTransformation;withEffort in interface XSLTTransformationEffortpublic void setContextClassLoader(ClassLoader classLoader)
public String getDescription()
public String getTemplate()
public String getExtension()
Copyright © 2018 JBoss by Red Hat. All rights reserved.