Skip to main content

%ZEN.Generator

deprecated class %ZEN.Generator extends %Library.RegisteredObject

This class contains various methods needed by method generators within the ZEN framework.
This is an internal class. Applications should not make direct use of the methods within this class.

Method Inventory

Methods

classmethod %DoesXDataExist(pXDataName As %String, pLocalOnly As %Boolean = 0) as %Boolean
Called in the context of a method generator. Tests if the given XData block exists and has some content in it. pLocalOnly restricts the check to XDatas that originate in the current class.
classmethod %DrawClassDefinition() as %Status
Draw JavaScript needed to define client-side class for this component.
This is the logic of the %DrawClassDefinition method generator of %ZEN.Component.object.
It is assumed that this is called during method generation time and that %code and other compiler objects are present.
It is also assumed that this is called *before* server serialization methods are generated, as this creates serialization metadata as a side effect.
classmethod %DrawObjectProperties() as %Status
Draw JavaScript needed to initialize properties for client side of this object
This is the logic of the %DrawObjectProperties method generator of %ZEN.Component.object.
It is assumed that this is called during method generation time and that %code and other compiler objects are present.
classmethod %GenerateApplyURLParms() as %Status
Generates code for the %ApplyURLParms method.
classmethod %GenerateStyleSheet(pXDataName As %String) as %Status
Generates code for the given XData block that will write out the contents of the XData block as a Style Sheet Used for Style sheets. This method assumes it is being called in the context of a method generator.
classmethod %JSGetSettings() as %Status
Generate client getSettings method.
It is assumed that this is called during method generation time and that %code and other compiler objects are present.
classmethod %JSSerialize() as %Status
Generate client JSSerialize method.
It is assumed that this is called during method generation time and that %code and other compiler objects are present.
classmethod %ObjectSynch() as %Status
This is the logic of the %ObjectSync method generator of %ZEN.Component.object.
It is assumed that this is called during method generation time and that %code and other compiler objects are present.
classmethod %ZENDeserialize() as %Status
Generate %ZENDeserialize method.
It is assumed that this is called during method generation time and that %code and other compiler objects are present.
classmethod GetOrderedProps(pClassDef As %Dictionary.CompiledClass, ByRef pList As %String, ByRef pSkip As %String, ByRef pSkipPackage As %String) as %Status
Build a list of properties in sequence order, including inherited properties.
On return, pList is a list of properties names (subscripted by order number). Stop when any of the classes in the list pSkip are reached.
Skip any classes in any of the packages in the list pSkipPackage are reached.
Private properties are skipped.
classmethod GetPropertyType(pdef As %Dictionary.CompiledProperty) as %String
Get normalized type (class name) of given property definition. This is a duplicate of the same method in %ZEN.FormGenerator.
classmethod GetSuperClassList(pClass As %String, ByRef pList As %String, ByRef pSkip As %String, ByRef pSkipPackage As %String) as %Status
Build a list of super classes (indexed by number) starting from (and including) pClass. Stop when any of the classes in the list pSkip are reached. Skip any classes in any of the packages in the list pSkipPackage are reached.

Inherited Members

Inherited Methods

FeedbackOpens in a new tab