43e061319c76be062df6d71000e48c946eb7813c
[sdc.git] / openecomp-be / lib / openecomp-tosca-lib / src / main / java / org / openecomp / sdc / tosca / datatypes / ToscaFunctions.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20 package org.openecomp.sdc.tosca.datatypes;
21
22 import lombok.AllArgsConstructor;
23 import lombok.Getter;
24
25 /**
26  * TOSCA Simple Profile in YAML Version 1.3.
27  * <p>
28  * OASIS Standard (26 February 2020).
29  * <p>
30  * https://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.3/TOSCA-Simple-Profile-YAML-v1.3.html
31  */
32 @Getter
33 @AllArgsConstructor
34 public enum ToscaFunctions {
35     // @formatter:off
36     // Intrinsic functions, section 4.3 in TOSCA 1.3
37     CONCAT("concat"),
38     JOIN("join"),   //  since 1.2
39     TOKEN("token"),
40     // Property functions, section 4.4 in TOSCA 1.3
41     GET_INPUT("get_input"), GET_PROPERTY("get_property"),
42     // Attribute functions, section 4.5 in TOSCA 1.3
43     GET_ATTRIBUTE("get_attribute"),
44     // Operation functions, section 4.6 in TOSCA 1.3
45     GET_OPERATION_OUTPUT("get_operation_output"),
46     // Navigation functions, section 4.7 in TOSCA 1.3
47     GET_NODES_OF_TYPE("get_nodes_of_type"),
48     // Artifact functions, section 4.8 in TOSCA 1.3
49     GET_ARTIFACT("get_artifact"),
50     // non TOSCA-compliant function
51     GET_POLICY("get_policy");
52     // @formatter:of
53
54     private String functionName;
55 }