diff options
Diffstat (limited to 'catalog-be/src/main/java/org/openecomp/sdc/be/components/property/GetInputUtils.java')
-rw-r--r-- | catalog-be/src/main/java/org/openecomp/sdc/be/components/property/GetInputUtils.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/components/property/GetInputUtils.java b/catalog-be/src/main/java/org/openecomp/sdc/be/components/property/GetInputUtils.java new file mode 100644 index 0000000000..e77287de9f --- /dev/null +++ b/catalog-be/src/main/java/org/openecomp/sdc/be/components/property/GetInputUtils.java @@ -0,0 +1,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)); + } +} |