96f549db869cb2806da9cbcb0012b5edf2a1627b
[ccsdk/cds.git] /
1 /*
2  * Copyright © 2017-2018 AT&T Intellectual Property.
3  *
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
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 package org.onap.ccsdk.apps.controllerblueprints.core.data
18
19 import com.fasterxml.jackson.databind.JsonNode
20 import com.fasterxml.jackson.databind.node.ObjectNode
21 /**
22  *
23  *
24  * @author Brinda Santh
25  */
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
36 )
37
38 data class InputExpression(
39         var propertyName: String
40 )
41
42 data class PropertyExpression(
43         var modelableEntityName: String = "SELF",
44         var reqOrCapEntityName: String? = null,
45         var propertyName: String,
46         var subPropertyName: String?  = null
47 )
48
49 data class AttributeExpression(
50         var modelableEntityName: String = "SELF",
51         var reqOrCapEntityName: String? = null,
52         var attributeName: String,
53         var subAttributeName: String? = null
54 )
55
56 data class ArtifactExpression(
57         val modelableEntityName: String = "SELF",
58         val artifactName: String,
59         val location: String? =  "LOCAL_FILE",
60         val remove: Boolean? = false
61 )
62
63 data class OperationOutputExpression(
64         val modelableEntityName: String = "SELF",
65         val interfaceName: String,
66         val operationName: String,
67         val propertyName: String
68 )
69
70