Abstract
Protected
Readonly
_fileProtected
Readonly
_templateProtected
Readonly
_templateManages the presentation layer artifact generation process which is invoked within the presentation layer generation stage.
The generation context which contains necessary data including the application graph context.
A promise that resolves to a LayerArtifact
representing the generated presentation layer.
Protected
getRetrieves the title of a template page in the specified language.
An object containing language-specific titles.
The language identifier for the title. Defaults to "en", if not provided.
The page title in the specified language, or the first available language if not found.
Abstract
processMethod to be implemented by specific template consumers; within this method the specific generator will populate the template and invoke the template renderer to generate an artifact.
Protected
restoreRestores the data model interface for an aggregate and converts it to the corresponding JSON schema.
The metadata of the aggregate for which the data model interface needs to be restored.
The restored schema as a JSON Schema object.
An abstract base class that defines a the base for presentation layer artifact generators which use template population approach. The class extends the generic TemplateConsumer to reuse shared functionality for populating templates. Additionally, it implements the PresentationLayerGenerator interface to provide the methods used within the presentation layer generation process.
The PresentationLayerTemplateGenerator is the base class for concrete presentation layer template processors. Each derived class generates the source code for a specific capability by providing its own template and values for the required placeholders.
See