diff options
author | 2020-01-30 14:07:25 +0000 | |
---|---|---|
committer | 2020-01-30 14:07:25 +0000 | |
commit | 23f898a96f7e8b3ecb0817abc61612bdc3d2e9aa (patch) | |
tree | fc3118a1cfbfcd5d29f5923914e8e488f16be7b2 /cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/mapping-models/CBAPacakge.model.ts | |
parent | da25e1649c9a10f998c8dde068641d7601a3f00a (diff) | |
parent | f2e85fa8183c684322f1f8a34ea9ed4d1f33b169 (diff) |
Merge "package creation store preparation"
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/mapping-models/CBAPacakge.model.ts')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/mapping-models/CBAPacakge.model.ts | 40 |
1 files changed, 31 insertions, 9 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/mapping-models/CBAPacakge.model.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/mapping-models/CBAPacakge.model.ts index cbb82f118..a5f5ec70a 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/mapping-models/CBAPacakge.model.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/mapping-models/CBAPacakge.model.ts @@ -1,19 +1,39 @@ - import {MetaDataTabModel} from './metadata/MetaDataTab.model'; export class Definition { - public files: Map<string, string> = new Map<string, string>(); - constructor(files: Map<string, string>) { - this.files = files; + public metaDataTab: MetaDataTabModel; + public imports: Map<string, string>; + + // public dslDefinition: + + constructor() { + this.imports = new Map<string, string>(); + this.metaDataTab = new MetaDataTabModel(); + } + + public setImports(key: string, value: string) { + this.imports.set(key, value); + return this; + } + + public setMetaData(metaDataTab: MetaDataTabModel) { + this.metaDataTab = metaDataTab; + return this; } + } export class Scripts { - public files: Map<string, string> = new Map<string, string>(); + public files: Map<string, string>; - constructor(files: Map<string, string>) { - this.files = files; + constructor() { + this.files = new Map<string, string>(); + } + + public setScripts(key: string, value: string) { + this.files.set(key, value); + return this; } } @@ -23,12 +43,14 @@ export class CBAPackage { public definitions: Definition; public scripts: Scripts; + constructor() { - this.definitions = new Definition(new Map<string, string>()); - this.scripts = new Scripts(new Map<string, string>()); + this.definitions = new Definition(); + this.scripts = new Scripts(); this.metaData = new MetaDataTabModel(); } + } |