Home > Class Reference > %SYS namespace > %ZHSLIB.PackageManager.Developer.Document.ContainerClass


class %ZHSLIB.PackageManager.Developer.Document.ContainerClass

Used to wrap Studio document types not supported in Studio project deployments, putting the XML export in a class's XDATA block for later import. For example:
  // Pack up Foo.MODULE in class Foo.ModuleWrappedInAClass:
  Set tItems("Foo.MODULE") = ""
  Set tSC = ##class(%ZHSLIB.PackageManager.Developer.Document.ContainerClass).Create("Foo.ModuleWrappedInAClass",.tItems)
  // ... on another environment, after Foo.ModuleWrappedInAClass is loaded, retrieve the module manifest document from it:
  Set tSC = ##class(Foo.ModuleWrappedInAClass).Unpack()

Method Inventory (Including Private)

Methods (Including Private)

classmethod Create(pTargetClassName As %Dictionary.Classname, ByRef pItems, pVerbose As %Boolean = 0) as %Status [ Language = objectscript ]
classmethod Unpack() as %Status [ Language = objectscript ]