2 * Copyright © 2017-2018 AT&T Intellectual Property.
3 * Modifications Copyright © 2018 - 2019 IBM, Bell Canada.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 @file:Suppress("unused")
19 package org.onap.ccsdk.cds.controllerblueprints.core.data
21 import com.fasterxml.jackson.databind.JsonNode
22 import com.fasterxml.jackson.databind.node.ObjectNode
27 * @author Brinda Santh
29 data class ExpressionData(
30 var isExpression: Boolean = false,
31 var valueNode: JsonNode,
32 var expressionNode: ObjectNode? = null,
33 var dslExpression: DSLExpression? = null,
34 var inputExpression: InputExpression? = null,
35 var propertyExpression: PropertyExpression? = null,
36 var attributeExpression: AttributeExpression? = null,
37 var artifactExpression: ArtifactExpression? = null,
38 var operationOutputExpression: OperationOutputExpression? = null,
39 var command: String? = null
42 data class InputExpression(
43 var propertyName: String
46 data class PropertyExpression(
47 var modelableEntityName: String = "SELF",
48 var reqOrCapEntityName: String? = null,
49 var propertyName: String,
50 var subPropertyName: String? = null
53 data class AttributeExpression(
54 var modelableEntityName: String = "SELF",
55 var reqOrCapEntityName: String? = null,
56 var attributeName: String,
57 var subAttributeName: String? = null
60 data class ArtifactExpression(
61 val modelableEntityName: String = "SELF",
62 val artifactName: String,
63 val location: String? = "LOCAL_FILE",
64 val remove: Boolean? = false
67 data class OperationOutputExpression(
68 val modelableEntityName: String = "SELF",
69 val interfaceName: String,
70 val operationName: String,
71 val propertyName: String,
72 var subPropertyName: String? = null
75 data class DSLExpression(
76 val propertyName: String