public class TransformationImpl extends Object implements ITransformation
| Modifier and Type | Field and Description |
|---|---|
protected RuleLanguageParser |
ruleLanguageParser |
JOBCONST_DATASINKID, XSLSyntaxcheckfailed| Constructor and Description |
|---|
TransformationImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addJobConstant(String aKey,
String aValue) |
void |
configureTransformation()
creates a new Transformer object using a stylesheet based on the transformation rules
|
String |
dumpStylesheet() |
Map<String,String> |
getJobProperties() |
Properties |
getLogInformation()
get log information that was recorded during transformation
|
RuleLanguageParser |
getRuleLanguageParser() |
org.springframework.core.io.Resource |
getSchema() |
Map<String,String> |
getStaticTransformationResults() |
StylesheetBuilder |
getStylesheetBuilder() |
org.springframework.core.io.Resource |
getTemplate() |
protected String |
getTransformationRules() |
void |
init()
initializes the transformation with the underlying XSL-template
|
void |
setRuleLanguageParser(RuleLanguageParser ruleLanguageParser) |
void |
setSchema(org.springframework.core.io.Resource schema) |
void |
setStylesheetBuilder(StylesheetBuilder stylesheetBuilder) |
void |
setTemplate(org.springframework.core.io.Resource template)
sets the XSL template
|
String |
transformRecord(String record,
int index)
transforms a single record
|
String |
transformRecord(String record,
Map<String,String> parameters) |
String |
transformRecord(String record,
String stylesheetName)
transforms a single record whyle applying a stylesheet
|
protected RuleLanguageParser ruleLanguageParser
public void init()
public void configureTransformation()
throws TransformerConfigurationException
public String transformRecord(String record, int index) throws net.sf.saxon.instruct.TerminationException, TransformationException
ITransformationtransformRecord in interface ITransformationrecord - the record to transformnet.sf.saxon.instruct.TerminationExceptionTransformationExceptionpublic String transformRecord(String record, Map<String,String> parameters) throws net.sf.saxon.instruct.TerminationException, TransformationException
transformRecord in interface ITransformationnet.sf.saxon.instruct.TerminationExceptionTransformationExceptionpublic String transformRecord(String record, String stylesheetName) throws TransformationException
ITransformationtransformRecord in interface ITransformationTransformationExceptionpublic String dumpStylesheet()
public void setTemplate(org.springframework.core.io.Resource template)
template - - resource to access the XSL templatepublic org.springframework.core.io.Resource getTemplate()
public void setRuleLanguageParser(RuleLanguageParser ruleLanguageParser)
public RuleLanguageParser getRuleLanguageParser()
getRuleLanguageParser in interface ITransformationpublic void setStylesheetBuilder(StylesheetBuilder stylesheetBuilder)
stylesheetBuilder - the stylesheetBuilder to setpublic StylesheetBuilder getStylesheetBuilder()
protected String getTransformationRules()
public void setSchema(org.springframework.core.io.Resource schema)
schema - the schema to setpublic org.springframework.core.io.Resource getSchema()
public Map<String,String> getStaticTransformationResults()
getStaticTransformationResults in interface ITransformationpublic Map<String,String> getJobProperties()
getJobProperties in interface ITransformationpublic Properties getLogInformation()
ITransformationgetLogInformation in interface ITransformationCopyright © 2025. All rights reserved.