2 * Copyright © 2017-2018 AT&T Intellectual Property.
3 * Modifications Copyright © 2018 IBM.
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
26 * @author Brinda Santh
28 data class ExpressionData(
29 var isExpression: Boolean = false,
30 var valueNode: JsonNode,
31 var expressionNode: ObjectNode? = null,
32 var dslExpression: DSLExpression? = null,
33 var inputExpression: InputExpression? = null,
34 var propertyExpression: PropertyExpression? = null,
35 var attributeExpression: AttributeExpression? = null,
36 var artifactExpression: ArtifactExpression? = null,
37 var operationOutputExpression: OperationOutputExpression? = null,
38 var command: String? = null
41 data class InputExpression(
42 var propertyName: String
45 data class PropertyExpression(
46 var modelableEntityName: String = "SELF",
47 var reqOrCapEntityName: String? = null,
48 var propertyName: String,
49 var subPropertyName: String? = null
52 data class AttributeExpression(
53 var modelableEntityName: String = "SELF",
54 var reqOrCapEntityName: String? = null,
55 var attributeName: String,
56 var subAttributeName: String? = null
59 data class ArtifactExpression(
60 val modelableEntityName: String = "SELF",
61 val artifactName: String,
62 val location: String? = "LOCAL_FILE",
63 val remove: Boolean? = false
66 data class OperationOutputExpression(
67 val modelableEntityName: String = "SELF",
68 val interfaceName: String,
69 val operationName: String,
70 val propertyName: String
73 data class DSLExpression(
74 val propertyName: String