2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
20 package org.openecomp.sdc.tosca.datatypes;
22 import lombok.AllArgsConstructor;
26 * TOSCA Simple Profile in YAML Version 1.3.
28 * OASIS Standard (26 February 2020).
30 * https://docs.oasis-open.org/tosca/TOSCA-Simple-Profile-YAML/v1.3/TOSCA-Simple-Profile-YAML-v1.3.html
34 public enum ToscaFunctions {
36 // Intrinsic functions, section 4.3 in TOSCA 1.3
38 JOIN("join"), // since 1.2
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");
54 private String functionName;