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 interfaceDeprecated.Sends a fixed value to the outputstatic interfaceDeprecated.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 TypeMethodDescriptionvoidaddAlignedInput(int inputFieldIndex, int lenght, boolean leftAlign, char fillCharacter) Deprecated.voidaddAlignedOutput(String fixedValue, int lenght, boolean leftAlign, char fillCharacter) Deprecated.voidaddChild(OutputfieldsPart part) Deprecated.voidaddDateOutput(int inputFieldIndex, String informat, String outformat) Deprecated.voidaddDateOutput(String outformat) Deprecated.voidDeprecated.voidaddEndIf()Deprecated.voidaddExternal(int inputFieldIndex, String delegateName, String params) Deprecated.voidaddFillOutput(int length, char fillchar) Deprecated.voidaddFixedOutput(String fixedValue) Deprecated.voidDeprecated.voidDeprecated.voidaddOutputField(String fieldDef) Deprecated.translates a function declaration to a function instancevoidDeprecated.voidaddOutputInput(int inputFieldIndex) Deprecated.voidaddSubstring(int inputFieldIndex, int startIndex, int endIndex) Deprecated.voidDeprecated.Deprecated.handleRecord(PipeLineSession session, List<String> parsedRecord) Deprecated.Perform an action on the array of fields.voidsetOutputFields(String outputFieldsDef) Deprecated.semicolon separated list of output record field specifications (see table below)voidsetOutputSeparator(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, setTrimMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationContextAware
setApplicationContextMethods inherited from interface org.frankframework.core.FrankElement
addConfigWarningMethods inherited from interface org.frankframework.core.HasApplicationContext
getApplicationContext, getConfigurationClassLoaderMethods inherited from interface org.frankframework.batch.IRecordHandler
getRecordLength
-
Constructor Details
-
RecordTransformer
public RecordTransformer()Deprecated.
-
-
Method Details
-
handleRecord
Deprecated.Description copied from interface:IRecordHandlerPerform 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.
-