Interface IStructuredFormatReader
src/Apps/W1/EDocument/App/src/Processing/Interfaces/IStructuredFormatReader.Interface.al34 lines, Copyright (c) Microsoft Corporation. MIT
// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------namespace Microsoft.eServices.EDocument.Processing.Interfaces;using Microsoft.eServices.EDocument;using Microsoft.eServices.EDocument.Processing.Import;using System.Utilities;/// <summary>/// Specifies how a structured data type should be interpreted and read into a draft./// A structure data type is a textual representation of the e-document that is stored in a TempBlob to allow different encodings./// </summary>interface IStructuredFormatReader{ /// <summary> /// Read the data into the E-Document data structures. /// </summary> /// <param name="EDocument">The E-Document record.</param> /// <param name="TempBlob">The temporary blob that contains the data to read</param> /// <returns>The data process to run on the structured data.</returns> procedure ReadIntoDraft(EDocument: Record "E-Document"; TempBlob: Codeunit "Temp Blob"): Enum "E-Doc. Process Draft"; /// <summary> /// Presents a view of the data /// </summary> /// <param name="EDocument">The E-Document record.</param> /// <param name="TempBlob">The temporary blob that contains the data to read</param> procedure View(EDocument: Record "E-Document"; TempBlob: Codeunit "Temp Blob");}