InterSystems IRIS Data Platform 2020.4 > Class Reference > ENSLIB namespace > %ZEN.Generator

%ZEN.Generator

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 (Including Private)

Methods (Including Private)

classmethod %DoesXDataExist(pXDataName As %String, pLocalOnly As %Boolean = 0) as %Boolean [ Language = objectscript ]
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 [ Language = objectscript ]
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 [ Language = objectscript ]
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 [ Language = objectscript ]
Generates code for the %ApplyURLParms method.
classmethod %GenerateStyleSheet(pXDataName As %String) as %Status [ Language = objectscript ]
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 [ Language = objectscript ]
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 [ Language = objectscript ]
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 [ Language = objectscript ]
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 [ Language = objectscript ]
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 [ Language = objectscript ]
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 [ Language = objectscript ]
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 [ Language = objectscript ]
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 (Including Private)

Feedback