Support TOSCA functions in Node Filters
[sdc.git] / catalog-ui / src / app / models / tosca-string-parameter.ts
index 0f74235..64f6676 100644 (file)
@@ -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