1 class `schema-name`Base
2 string wzName
3 string wzTag
4 [ wzChildren
5 ctor
6 string name
7 # the node-value of the source mTreeNode
8 # that becomes the 'wzName' of the newly created element
9 { sourceLineInfo
10 api-ref wizzimodel.wzSourceLineInfo
11 m wzRoot
12 # Return the model root element instance
13 m wzSourceFilepath
14 # Returns the filepath of an ittf source document given its 'sourceKey'
15 string sourceKey
16 m wzAddChild
17 # Add a child node to the wzChildren collection
18 { elementInstance
19 m wzLoadToChildColl
20 # Creates a new element instance given the type of its source mTreeNode
21 # Append it to the collection passed as parameter.
22 # Call the loadFromNode method of the newly created element
23 # with the source mTreeNode as argument.
24 { mTreeNode
25 # the mTreeNode that we are loading
26 { type
27 # the javascript class of the Wizzi Model element
28 # that is the type for mTreeNode given its node-name
29 { coll
30 # the collection to which the newly created element should be appended
31 m wzLoadToChildren
32 # Creates a new element instance given the type of its source mTreeNode
33 # Append it to the wzChildren collection.
34 # Call the loadFromNode method of the newly created element
35 # with the source mTreeNode as argument.
36 { mTreeNode
37 { type
38 m wzLoadOneToOne
39 # Creates a new element instance given the type of its source mTreeNode
40 # Assign it to the `fieldName` property.
41 # Call the loadFromNode method of the newly created element
42 # with the source mTreeNode as argument.
43 { mTreeNode
44 { type
45 string fieldName
46 m error
47 # throw a `schema-name`Exception
48 string message
49 { mTreeNode