Migrate ccsdk/apps to ccsdk/cds
[ccsdk/cds.git] / ms / controllerblueprints / modules / blueprint-core / src / main / kotlin / org / onap / ccsdk / cds / controllerblueprints / core / data / BluePrintExpressionData.kt
1 /*
2  * Copyright © 2017-2018 AT&T Intellectual Property.
3  * Modifications Copyright © 2018 IBM.
4  *
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
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
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.
16  */
17 @file:Suppress("unused")
18
19 package org.onap.ccsdk.cds.controllerblueprints.core.data
20
21 import com.fasterxml.jackson.databind.JsonNode
22 import com.fasterxml.jackson.databind.node.ObjectNode
23 /**
24  *
25  *
26  * @author Brinda Santh
27  */
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
39 )
40
41 data class InputExpression(
42         var propertyName: String
43 )
44
45 data class PropertyExpression(
46         var modelableEntityName: String = "SELF",
47         var reqOrCapEntityName: String? = null,
48         var propertyName: String,
49         var subPropertyName: String?  = null
50 )
51
52 data class AttributeExpression(
53         var modelableEntityName: String = "SELF",
54         var reqOrCapEntityName: String? = null,
55         var attributeName: String,
56         var subAttributeName: String? = null
57 )
58
59 data class ArtifactExpression(
60         val modelableEntityName: String = "SELF",
61         val artifactName: String,
62         val location: String? =  "LOCAL_FILE",
63         val remove: Boolean? = false
64 )
65
66 data class OperationOutputExpression(
67         val modelableEntityName: String = "SELF",
68         val interfaceName: String,
69         val operationName: String,
70         val propertyName: String
71 )
72
73 data class DSLExpression(
74         val propertyName: String
75 )
76
77