Skip to main content

Ens.DTL.UI.DTLDocument

stream class Ens.DTL.UI.DTLDocument extends Ens.Util.AbstractDocument

Abstract Document used to load DTL diagrams into Studio.

Method Inventory

Parameters

parameter DOCUMENTCLASS = Ens.DataTransformDTL;
If set, name of superclass used for documents of this type.
For example, Ens.DataTransformDTL
parameter EDITORURL = EnsPortal.DTLEditor.zen;
URL to use to get actual editor for Studio to display.
parameter EXTENSION = .dtl;
Inherited description: File extension used for this document (e.g., .dtl)

Methods

classmethod Exists(name As %String) as %Boolean
Return 1 if the given DTL document exists and 0 if it does not.
method ExportToXML(flags As %String) as %Status
Export this document to the current device in XML format
classmethod GetDTLStream(Output pStream As %Stream.Object, pClassName As %String, ByRef pDesc As %String) as %Status
Find the DTL definition (as a stream) for the given DTL class; return "" if not found.
Also returns Description for this class
classmethod GetTransform(Output pTransform As Ens.DTL.Transform, pClassName As %String) as %Status
Get DTL info for a class
classmethod GetURL(pName As %String) as %String
method ImportFromXML(stream As %RegisteredObject, flags As %String) as %Status
Passed a stream containing the XML document, this method should insert this into the current document. Once this is done the importer will call Save on the document. This default handler in assumes the export ExportToXML() just wrote the data in a CDATA structure
method Save() as %Status
Deserialize the DTL Diagram and save it as a DTL class.
classmethod SaveDTLToClass(pClassName As %String, pDTL As %Stream.Object) as %Status
Save the given DTL document to the specified class' XDATA block. If class does not exist, create a new one

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab