Skip to main content

%iKnow.TextTransformation.Output

Class %iKnow.TextTransformation.Output Extends %RegisteredObject [ Deprecated, System = 4 ]

This class represents the output generated upon executing a Text Transformation model defined in a %iKnow.TextTransformation.Definition class. By default, instances of this class are populated to represent the sections and key-value pairs identified in the input text, so they can be accessed and acted upon directly.

However, instances of this class are not persisted. To enable persisting TT model output, just create a subclass from this class that also inherits from %Persistent and register its name through the outputClass attribute of the root model element in your TT model definition. Subclasses can also refine the rest of the output class by defining additional indices and/or adding custom properties that can be populated in the callbacks of the TT model definition class.

If you choose to refine the child classes OutputSection and OutputKeyValue as well, make sure to update the return value for the %GetSectionClassname and %GetKeyValueClassname and update the implementation of the AddSection, GetSectionCount and GetSectionAt methods accordingly.

Properties

Ref

Property Ref As %RawString;

Reference to the original record, when this object is populated during an %ApplyBatch() call.

Sections

Property Sections As list Of OutputSection [ Internal ];

OutputText

Property OutputText As %String(MAXLEN = "");

Any "transform" operations in the TT model may have had an impact on the original input text. This propert contains the final form of the text after processing, which the OutputLine numbers in any OutputLocation location references point to.

ModelClass

Property ModelClass As %String(MAXLEN = 200);

Methods

%GetSectionClassname

Method %GetSectionClassname() As %String

%GetKeyValueClassname

Method %GetKeyValueClassname() As %String

AddSection

Method AddSection(pSection As OutputSection) As %Status

GetSectionCount

Method GetSectionCount() As %Integer

GetSectionAt

Method GetSectionAt(pPosition As %Integer) As OutputSection