IRISLIB database
Generator Class Reference

This class contains various methods needed by method generators within the ZEN framework. More...

Inheritance diagram for Generator:
Collaboration diagram for Generator:

Static Public Member Functions

_.Library.Status GetOrderedProps (_.Dictionary.CompiledClass pClassDef, _.Library.String pList, _.Library.String pSkip, _.Library.String pSkipPackage)
 Build a list of properties in sequence order, including inherited properties. More...
 
_.Library.String GetPropertyType (_.Dictionary.CompiledProperty pdef)
 Get normalized type (class name) of given property definition. More...
 
_.Library.Status GetSuperClassList (_.Library.String pClass, _.Library.String pList, _.Library.String pSkip, _.Library.String pSkipPackage)
 Build a list of super classes (indexed by number) starting from (and including) pClass. More...
 

Static Private Member Functions

_.Library.Boolean DoesXDataExist (_.Library.String pXDataName, _.Library.Boolean pLocalOnly)
 This class contains various methods needed by method generators within the ZEN framework. More...
 
_.Library.Status DrawClassDefinition ()
 Draw JavaScript needed to define client-side class for this component. More...
 
_.Library.Status DrawObjectProperties ()
 Draw JavaScript needed to initialize properties for client side of this object
More...
 
_.Library.Status GenerateApplyURLParms ()
 Generates code for the ApplyURLParms method.
 
_.Library.Status GenerateStyleSheet (_.Library.String pXDataName)
 Generates code for the given XData block that. More...
 
_.Library.Status JSGetSettings ()
 Generate client getSettings method. More...
 
_.Library.Status JSSerialize ()
 Generate client JSSerialize method. More...
 
_.Library.Status ObjectSynch ()
 This is the logic of the ObjectSync method generator. More...
 
_.Library.Status ZENDeserialize ()
 Generate ZENDeserialize method. More...
 

Additional Inherited Members

- Public Member Functions inherited from RegisteredObject
_.Library.Status OnAddToSaveSet (_.Library.Integer depth, _.Library.Integer insert, _.Library.Integer callcount)
 This callback method is invoked when the current object is added to the SaveSet,. More...
 
_.Library.Status OnClose ()
 This callback method is invoked by the <METHOD>Close</METHOD> method to. More...
 
_.Library.Status OnConstructClone (_.Library.RegisteredObject object, _.Library.Boolean deep, _.Library.String cloned)
 This callback method is invoked by the <METHOD>ConstructClone</METHOD> method to. More...
 
_.Library.Status OnNew ()
 This callback method is invoked by the <METHOD>New</METHOD> method to. More...
 
_.Library.Status OnValidateObject ()
 This callback method is invoked by the <METHOD>ValidateObject</METHOD> method to. More...
 
- Static Public Attributes inherited from RegisteredObject
 CAPTION = None
 Optional name used by the Form Wizard for a class when generating forms. More...
 
 JAVATYPE = None
 The Java type to be used when exported.
 
 PROPERTYVALIDATION = None
 This parameter controls the default validation behavior for the object. More...
 

Detailed Description

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.

Member Function Documentation

◆ DoesXDataExist()

_.Library.Boolean DoesXDataExist ( _.Library.String  pXDataName,
_.Library.Boolean  pLocalOnly 
)
staticprivate

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.

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.

◆ DrawClassDefinition()

_.Library.Status DrawClassDefinition ( )
staticprivate

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.

◆ DrawObjectProperties()

_.Library.Status DrawObjectProperties ( )
staticprivate

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.

◆ GenerateStyleSheet()

_.Library.Status GenerateStyleSheet ( _.Library.String  pXDataName)
staticprivate

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.

◆ JSGetSettings()

_.Library.Status JSGetSettings ( )
staticprivate

Generate client getSettings method.


It is assumed that this is called during method generation time and that code and other compiler objects are present.

◆ JSSerialize()

_.Library.Status JSSerialize ( )
staticprivate

Generate client JSSerialize method.


It is assumed that this is called during method generation time and that code and other compiler objects are present.

◆ ObjectSynch()

_.Library.Status ObjectSynch ( )
staticprivate

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.

◆ ZENDeserialize()

_.Library.Status ZENDeserialize ( )
staticprivate

Generate ZENDeserialize method.


It is assumed that this is called during method generation time and that code and other compiler objects are present.

◆ GetOrderedProps()

_.Library.Status GetOrderedProps ( _.Dictionary.CompiledClass  pClassDef,
_.Library.String  pList,
_.Library.String  pSkip,
_.Library.String  pSkipPackage 
)
static

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.

◆ GetPropertyType()

_.Library.String GetPropertyType ( _.Dictionary.CompiledProperty  pdef)
static

Get normalized type (class name) of given property definition.

This is a duplicate of the same method in ZEN.FormGenerator.

◆ GetSuperClassList()

_.Library.Status GetSuperClassList ( _.Library.String  pClass,
_.Library.String  pList,
_.Library.String  pSkip,
_.Library.String  pSkipPackage 
)
static

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.