Bundt Scripting Reference · Bundt Scripting Language version 1.0.1.0

create type model statement

Creates a new type model and puts it in context.

Syntax

create type model Name
    [version Version]
    [ (extends BaseModel) | (language LanguageName LanguageDescription) ]

Element Type Optionality Notes
Name Expression<Identifier> Mandatory. Specifies the name of the new model.
Version Expression<Version> Optional. If no version is specified, the new model will be version 1.0.0.0. Specifies the version of the new model, in version format.
BaseModel Model name Optional. If this is specified, then LanguageName and LanguageDescription cannot be specified, as the new model's language is inherited from the base model. Specifies the base type model from which to extend.
This model must be loaded in the scripting session.
LanguageName Expression<Identifier> Optional. If this and LanguageDescription are specified, then BaseModel cannot be specified. If these are not specified, and BaseModel is not specified either, then the new model is given en_GB "English" as initial language. Specifies the name of the new model's initial language, in language name format.
LanguagDescription Expression<Text> Optional. If this and LanguageName are specified, then BaseModel cannot be specified. If these are not specified, and BaseModel is not specified either, then the new model is given en_GB "English" as initial language. Specifies the description of the new model's initial language.

Returns

The type model just created.

Examples

Intent Code
Create a type model with default version create type model MyModel;
Create a type model with a given version create type model MyModel version '0.8.0.1';
Create an extended type model with default version create type model MyModel extends MyBaseModel;
Create a type model with default version and an explicit language create type model MyModel language es_ES "EspaƱol";

See Also

  • (n/a)

Contents distributed under a Creative Commons Attribution 4.0 International License · About · Terms of Use · Contact Us · last updated on 08 October 2020