CodeSquared docs

ContentSettings

ContentSettings is an object that contains settings used to configure the output of a Transformer.

It can be obtained from a GenerateContext using eithercontext.toOperationContentSettings, context.toModelContentSettings or context.toGatewayContentSettings depending on what you are doing.

ContentSettings.empty

Create a new ContentSettings object using identifier and exportPath. selected will be true and importFrom will be set to exportPath.

ContentSettings.empty({ identifier, exportPath })
Parameters
PropertyTypeDescription
identifierIdentifierIdentifier to use in Definition with generated code.
exportPathstringPath to the file where Definition with generated code should be registered.

Return value

A new ContentSettings object with default values.

Properties

PropertyTypeDescription
isSelectedbooleanDenotes where content is selected for generation.
identifierIdentifierIdentifier to use in Definition with generated code.
exportPathstringPath to the file where Definition with generated code should be registered.
importFromstring(Advanced) Path from which generated code should be imported from. Unless content is pinned, it will be same as exportPath.