Package org.frankframework.batch
Class RecordTransformer
java.lang.Object
org.frankframework.batch.AbstractRecordHandler
org.frankframework.batch.RecordTransformer
- All Implemented Interfaces:
IRecordHandler
,FrankElement
,HasApplicationContext
,HasName
,IConfigurable
,IScopeProvider
,IWithParameters
,NameAware
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
Deprecated.
Warning: non-maintained functionality.
Translate a record using an outputFields description.
The
outputFields
description can contain the following functions:
string(value) | inserts the value between the braces | string( Dit wordt geinsert inclusief spaties ervoor en erna. ) |
align(value,size,align,fillchar) | inserts the value aligned | align(test~10~left~ ) |
fill(size,fillchar) | insert size fillchars | fill(2,0) |
now(outformat) | inserts the current date | now(dd MMM yyyy) |
incopy(fieldnr) | simply inserts the value of the field | incopy(2) |
substr(fieldnr,startindex,endindex) | insert part of the value of the field | substr(2,0,8) |
lookup(fieldnr,orgvval=newval,...) | replace original value using lookup table | lookup(3,Debit=+,Credit=-) |
indate(fieldnr,informat,outformat) | inserts an input datefield using a different format | indate(2~MMddYY~dd MMM yyyy) |
inalign(fieldnr,size,align,fillchar) | inserts an input field | inalign(3~5~left~0) |
if(fieldnr,comparator,compareval) | only output the next fields if condition is true. Comparator is EQ (is equal to), NE (is not equal to), SW (starts with) or NS (not starts with). Use "{..|..|..}" for multiple compareValues | if(1,eq,3) |
elseif(fieldnr,comparator,compareval) | only output the next fields if condition is true. Comparator is EQ, NE, SW or NS | elseif(1,ne,4) |
endif() | endmarker for if | endif() |
- Author:
- John Dekker
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Deprecated.Sends a fixed value to the outputstatic interface
Deprecated.Each function must implement this interfaceNested classes/interfaces inherited from class org.frankframework.batch.AbstractRecordHandler
AbstractRecordHandler.InputField
-
Field Summary
Fields inherited from class org.frankframework.batch.AbstractRecordHandler
log, paramList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAlignedInput
(int inputFieldIndex, int lenght, boolean leftAlign, char fillCharacter) Deprecated.void
addAlignedOutput
(String fixedValue, int lenght, boolean leftAlign, char fillCharacter) Deprecated.void
addChild
(OutputfieldsPart part) Deprecated.void
addDateOutput
(int inputFieldIndex, String informat, String outformat) Deprecated.void
addDateOutput
(String outformat) Deprecated.void
Deprecated.void
addEndIf()
Deprecated.void
addExternal
(int inputFieldIndex, String delegateName, String params) Deprecated.void
addFillOutput
(int length, char fillchar) Deprecated.void
addFixedOutput
(String fixedValue) Deprecated.void
Deprecated.void
Deprecated.void
addOutputField
(String fieldDef) Deprecated.translates a function declaration to a function instancevoid
Deprecated.void
addOutputInput
(int inputFieldIndex) Deprecated.void
addSubstring
(int inputFieldIndex, int startIndex, int endIndex) Deprecated.void
Deprecated.Deprecated.handleRecord
(PipeLineSession session, List<String> parsedRecord) Deprecated.Perform an action on the array of fields.void
setOutputFields
(String outputFieldsDef) Deprecated.semicolon separated list of output record field specifications (see table below)void
setOutputSeparator
(String string) Deprecated.optional separator to add between the fieldsMethods inherited from class org.frankframework.batch.AbstractRecordHandler
addChild, addInputField, addInputFields, addParameter, close, configure, getNumberOfInputFields, getParameterList, getRecordIdentifyingFieldList, getRecordType, isNewRecordType, open, parse, setFieldsDifferConditionForPrefix, setInputFields, setInputSeparator, setName, setRecordIdentifyingFields, setTrim
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContext
Methods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoader
-
Constructor Details
-
RecordTransformer
public RecordTransformer()Deprecated.
-
-
Method Details
-
handleRecord
Deprecated.Description copied from interface:IRecordHandler
Perform an action on the array of fields.- Returns:
- transformed result
- Throws:
Exception
-
clearOutputFields
public void clearOutputFields()Deprecated. -
addOutputInput
public void addOutputInput(int inputFieldIndex) Deprecated. -
addAlignedInput
public void addAlignedInput(int inputFieldIndex, int lenght, boolean leftAlign, char fillCharacter) Deprecated. -
addFixedOutput
Deprecated. -
addFillOutput
public void addFillOutput(int length, char fillchar) Deprecated. -
addAlignedOutput
Deprecated. -
addDateOutput
Deprecated. -
addDateOutput
Deprecated. -
addLookup
Deprecated. -
addSubstring
public void addSubstring(int inputFieldIndex, int startIndex, int endIndex) throws ConfigurationException Deprecated.- Throws:
ConfigurationException
-
addExternal
public void addExternal(int inputFieldIndex, String delegateName, String params) throws ConfigurationException Deprecated.- Throws:
ConfigurationException
-
addIf
public void addIf(int inputFieldIndex, String comparator, String compareValue) throws ConfigurationException Deprecated.- Throws:
ConfigurationException
-
addElseIf
public void addElseIf(int inputFieldIndex, String comparator, String compareValue) throws ConfigurationException Deprecated.- Throws:
ConfigurationException
-
addEndIf
public void addEndIf()Deprecated. -
addOutputField
Deprecated.translates a function declaration to a function instance- Throws:
ConfigurationException
-
addChild
Deprecated.Added to allow usage from Configuration file without the need to modify the digester-rules- Throws:
ConfigurationException
-
addOutputFields
Deprecated.- Throws:
ConfigurationException
-
setOutputFields
Deprecated.semicolon separated list of output record field specifications (see table below)- Throws:
ConfigurationException
-
setOutputSeparator
Deprecated.optional separator to add between the fields -
getOutputSeparator
Deprecated.
-