Public Member Functions | |
_.Library.Status | BufferString (_.Library.String data) |
_.Library.Status | Convert () |
_.Library.String | NextConvertedPart () |
![]() | |
_.Library.Status | SetParams (_.Library.String params) |
![]() | |
_.Library.Status | OnAddToSaveSet (_.Library.Integer depth, _.Library.Integer insert, _.Library.Integer callcount) |
This callback method is invoked when the current object is added to the SaveSet,. More... | |
_.Library.Status | OnClose () |
This callback method is invoked by the <METHOD>Close</METHOD> method to. More... | |
_.Library.Status | OnConstructClone (_.Library.RegisteredObject object, _.Library.Boolean deep, _.Library.String cloned) |
This callback method is invoked by the <METHOD>ConstructClone</METHOD> method to. More... | |
_.Library.Status | OnNew () |
This callback method is invoked by the <METHOD>New</METHOD> method to. More... | |
_.Library.Status | OnValidateObject () |
This callback method is invoked by the <METHOD>ValidateObject</METHOD> method to. More... | |
Static Public Member Functions | |
_.Library.List | GetMetadataKeys (_.Library.String params) |
If the Converter extracts metadata, this method should return a list of keys of the metadata fields that are. More... | |
![]() | |
_.Library.String | Test (_.Library.String pInput, _.Library.List pParams, _.Library.Status pSC) |
Utility method to test a converter class. More... | |
Private Attributes | |
__Buffer | |
More... | |
__OutputText | |
More... | |
Additional Inherited Members | |
![]() | |
Params | |
More... | |
![]() | |
CAPTION = None | |
Optional name used by the Form Wizard for a class when generating forms. More... | |
JAVATYPE = None | |
The Java type to be used when exported. | |
PROPERTYVALIDATION = None | |
This parameter controls the default validation behavior for the object. More... | |
This <class>iKnow.Source.Converter</class> implementation wraps around a Text Transformation model and will extract sections and key-value pairs as defined in the model. Select sections will be concatenated and used as text input for indexing by the iKnow engine, while select key-value pairs can be saved as metadata values.
Converter parameters:
_.Library.Status BufferString | ( | _.Library.String | data | ) |
This method takes the raw input text and buffers it internally in the converter. The text is provided in
chunks of 32k. Every custom converter will need to implement this method so that it can take in the raw data.
Reimplemented from Converter.
_.Library.Status Convert | ( | ) |
This method is called after all data has been buffered. In this method the converter will need to parse the
raw data and extract/convert it into plain text data. If any metadata is present within the document the converter can extract that metadata here, and provide it to the system. Metadata can be reported by using the <method>SetCurrentMetadataValues</method> function.
Reimplemented from Converter.
|
static |
_.Library.String NextConvertedPart | ( | ) |
When conversion is done, this method will be called to fetch the converted data back from the converter. The method
should return the converted text in chuncks of maximum 32k in size. When no more data is available, the method should return the empty string ("") to signal that all data has been transferred.
Reimplemented from Converter.
|
private |
|
private |