2 * Copyright © 2017-2018 AT&T Intellectual Property.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org.onap.ccsdk.apps.controllerblueprints.core.data
19 import com.fasterxml.jackson.databind.JsonNode
20 import com.fasterxml.jackson.databind.node.ObjectNode
24 * @author Brinda Santh
26 data class ExpressionData(
27 var isExpression: Boolean = false,
28 var valueNode: JsonNode,
29 var expressionNode: ObjectNode? = null,
30 var inputExpression: InputExpression? = null,
31 var propertyExpression: PropertyExpression? = null,
32 var attributeExpression: AttributeExpression? = null,
33 var artifactExpression: ArtifactExpression? = null,
34 var operationOutputExpression: OperationOutputExpression? = null,
35 var command: String? = null
38 data class InputExpression(
39 var propertyName: String
42 data class PropertyExpression(
43 var modelableEntityName: String = "SELF",
44 var reqOrCapEntityName: String? = null,
45 var propertyName: String,
46 var subPropertyName: String? = null
49 data class AttributeExpression(
50 var modelableEntityName: String = "SELF",
51 var reqOrCapEntityName: String? = null,
52 var attributeName: String,
53 var subAttributeName: String? = null
56 data class ArtifactExpression(
57 val modelableEntityName: String = "SELF",
58 val artifactName: String,
59 val location: String? = "LOCAL_FILE",
60 val remove: Boolean? = false
63 data class OperationOutputExpression(
64 val modelableEntityName: String = "SELF",
65 val interfaceName: String,
66 val operationName: String,
67 val propertyName: String