Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The general setup of a model is a straight forward process. We're using builders to create a model. Each builder provides access to the different stages of model creation. The following steps are currently available:

  • RegisterDependencies use this method to include other builders. We're going to see an example later.

  • AddCoreElements is used to add low-level and independent components to the metadata (for example languages).

  • AddClasses is used to create the classes and foreign keys needed later on in AddPaths.

  • AddPaths is used to establish paths between the classes. Foreign keys are created here too.

  • AddProperties is used to create any properties not needed for paths and to create relations (which are depending on paths).

  • AddLayouts gets called when all properties and relations are available. In this step we define the visual representation of our metadata.

  • PostFinalize can be used to finalize the model. Some of the internal builders of Quino use this step to create fallbacks in captions for example.

...