summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/models/tosca-string-parameter.ts
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/models/tosca-string-parameter.ts')
-rw-r--r--catalog-ui/src/app/models/tosca-string-parameter.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/catalog-ui/src/app/models/tosca-string-parameter.ts b/catalog-ui/src/app/models/tosca-string-parameter.ts
index 0f7423582c..64f6676624 100644
--- a/catalog-ui/src/app/models/tosca-string-parameter.ts
+++ b/catalog-ui/src/app/models/tosca-string-parameter.ts
@@ -25,4 +25,15 @@ import {ToscaFunctionType} from "./tosca-function-type.enum";
export class ToscaStringParameter implements ToscaFunctionParameter {
type: ToscaFunctionType = ToscaFunctionType.STRING;
value: string;
+
+
+ constructor(toscaStringParameter?: ToscaStringParameter) {
+ if (toscaStringParameter) {
+ this.value = toscaStringParameter.value;
+ }
+ }
+
+ buildValueObject(): Object {
+ return this.value;
+ }
} \ No newline at end of file