Class Reference
%iKnow.TextTransformation.Definition
|
|
![]() |
|||
Private Storage |
This class represents a Text Transformation model, as defined in its
|
|
|
|
Invokes the model defined in
Transformation on the string pString, identifying sections, headers and key-value pairs as specified in the model. These elements are returned through an pOutput object of the output class specified in the model, defaulting to%iKnow.TextTransformation.Output .pString may also be supplied as an array of strings representing consecutive lines of text (by reference). To invoke the model in batch on a bunch of records, use
%ApplyBatch .
Invokes the model specified in
Transformation on all records retrieved by pResultSet, populating and saving an output object for each record. The first column of pResultSet is used as an identifier and saved as the Ref property of the output object. The second column is assumed to contain the text to be transformed by this model.Note that the output object used for this batch operation should inherit from
%Persistent in order for the output to be effectively persisted.See also
%Apply .
Invokes the transformation model on a character stream. See also%Apply .
Helper method to create a KeyValue object. Custom code in any of the callbacks (such as%OnBeforeTransformation ) may invoke this method to add default key value pairs.
Helper method to create a Section object. Custom code in any of the callbacks (such as%OnBeforeTransformation ) may invoke this method to add default sections. Note that no further callbacks are invoked for key-value pairs in the pKeyValues array.
This callback method is invoked after a record has been processed, before the Output object is saved.
This callback method is invoked before a record is processed, after the Output object has been instantiated.
Callback method invoked upon the creation of a KeyValue object. Use this callback to customize behavior upon creating key-value pairs. Setting pKeyValue to null will prevent the key-value pair from being added to the output.
Callback method invoked upon the creation of a Section object. Use this callback to customize behavior upon creating sections. Setting pSection to null will remove the section from the output.