aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-model/src/main/java/org/openecomp/sdc/be/model/tosca/converters/ToscaConverterUtils.java
blob: 5848abfc49b274d0ef2e75ce819bdb97189c4368 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package org.openecomp.sdc.be.model.tosca.converters;

import com.google.gson.JsonObject;
import org.openecomp.sdc.be.model.tosca.ToscaFunctions;

public class ToscaConverterUtils {

    private ToscaConverterUtils() {}

    public static boolean isGetInputValue(JsonObject value) {
        return value.get(ToscaFunctions.GET_INPUT.getFunctionName()) != null;
    }

    public static boolean isGetPolicyValue(JsonObject value) {
        return value.get(ToscaFunctions.GET_POLICY.getFunctionName()) != null;
    }

}