aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src/main/java/org/openecomp/sdc/be/components/property/GetInputUtils.java
blob: e77287de9f3c6891391bafa6e9ad94be529caa6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package org.openecomp.sdc.be.components.property;

import org.openecomp.sdc.be.datatypes.elements.GetInputValueDataDefinition;

public class GetInputUtils {

    private GetInputUtils() {
    }

    public static boolean isGetInputValueForInput(GetInputValueDataDefinition inputData, String inputId) {
        return inputData.getInputId().equals(inputId) || (inputData.getGetInputIndex() != null && inputData.getGetInputIndex().getInputId().equals(inputId));
    }
}