Class ParameterAdditionalInfoHelper

java.lang.Object
com.highdeal.pnr.hci.ParameterAdditionalInfoHelper

public class ParameterAdditionalInfoHelper extends Object
  • Field Details

    • ADD_INFO_NAME_MAPPING_TABLE_CLASS

      public static final String ADD_INFO_NAME_MAPPING_TABLE_CLASS
      The mapping-table-class additional information name
      See Also:
    • ADD_INFO_NAME_RANGE_TABLE_CLASS

      public static final String ADD_INFO_NAME_RANGE_TABLE_CLASS
      The range-table-class additional information name
      See Also:
    • ADD_INFO_NAME_DATA_TYPE

      public static final String ADD_INFO_NAME_DATA_TYPE
      The data-type additional information name
      See Also:
  • Method Details

    • getInstance

      public static ParameterAdditionalInfoHelper getInstance()
    • isMappingTableKey

      public boolean isMappingTableKey(ParameterModel parameter)
    • isMappingTableId

      public boolean isMappingTableId(ParameterModel parameter)
    • isRangeTableId

      public boolean isRangeTableId(ParameterModel parameter)
    • isMappingTableKey

      public boolean isMappingTableKey(List<AdditionalInfoModel> additionalInfo)
      Tells whether the given additional information indicates a mapping table key (i.e. whether it contains the "mapping table key" data type).
      Parameters:
      additionalInfo - list of additional information fields to analyze
      Returns:
      whether the additional information list belongs to a mapping table ID
    • isMappingTableId

      public boolean isMappingTableId(List<AdditionalInfoModel> additionalInfo)
      Tells whether the given additional information indicates a mapping table ID (i.e. whether it contains the "mapping table ID" data type).
      Parameters:
      additionalInfo - list of additional information fields to analyze
      Returns:
      whether the additional information list belongs to a mapping table ID
    • entityIsMappingTableId

      public boolean entityIsMappingTableId(List<com.highdeal.pnr.domain.AdditionalInfoEntity> additionalInfo)
      Tells whether the given additional information indicates a mapping table ID (i.e. whether it contains the "mapping table ID" data type).
      Parameters:
      additionalInfo - list of additional information fields to analyze
      Returns:
      whether the additional information list belongs to a mapping table ID
    • isRangeTableId

      public boolean isRangeTableId(List<AdditionalInfoModel> additionalInfo)
      Tells whether the given additional information indicates a range table ID (i.e. whether it contains the "range table ID" data type).
      Parameters:
      additionalInfo - list of additional information fields to analyze
      Returns:
      whether the additional information list belongs to a range table ID
    • entityIsRangeTableId

      public boolean entityIsRangeTableId(List<com.highdeal.pnr.domain.AdditionalInfoEntity> additionalInfo)
      Tells whether the given additional information indicates a range table ID (i.e. whether it contains the "range table ID" data type).
      Parameters:
      additionalInfo - list of additional information fields to analyze
      Returns:
      whether the additional information list belongs to a range table ID
    • updateMappingTableIdParameter

      public static void updateMappingTableIdParameter(ParameterModel parameter, String mappingTableClass)
      Updates a parameter model with the mapping table ID type.
      Parameters:
      parameter - parameter model to update
      mappingTableClass - name of the mapping table class the parameter is using (may be null to remove the fields instead of setting them)
    • updateMappingTableIdAdditionalInfos

      public static void updateMappingTableIdAdditionalInfos(List<AdditionalInfoModel> additionalInfo, String mappingTableClass)
    • updateMappingTableKeyAdditionalInfos

      public void updateMappingTableKeyAdditionalInfos(List<AdditionalInfoModel> additionalInfo, boolean isMappingTableKey)
    • updateRangeTableIdAdditionalInfos

      public static void updateRangeTableIdAdditionalInfos(List<AdditionalInfoModel> additionalInfo, String rangeTableClass)
    • getMappingTableClassName

      public String getMappingTableClassName(List<? extends AdditionalInfo> additionalInfos)
    • getRangeTableClassName

      public String getRangeTableClassName(List<? extends AdditionalInfo> additionalInfos)
    • getStringTypedAdditionalInfoValue

      public String getStringTypedAdditionalInfoValue(List<? extends AdditionalInfo> additionalInfos, String addInfoName)
    • getRawDataType

      public String getRawDataType(List<AdditionalInfoModel> additionalInfos)
    • getDataType

      public ParameterAdditionalInfoHelper.ParameterAdditionalInfoDataType getDataType(List<? extends AdditionalInfo> parameterAdditionalInfos)
    • getStringTypedAdditionalInfo

      public AdditionalInfo getStringTypedAdditionalInfo(List<? extends AdditionalInfo> parameterAdditionalInfos, String addInfoName)
    • getUnmanagedAdditionInfo

      public List<AdditionalInfoModel> getUnmanagedAdditionInfo(List<AdditionalInfoModel> additionalInfo)
    • setDataType

      public final void setDataType(List<AdditionalInfoModel> additionalInfo, ParameterAdditionalInfoHelper.ParameterAdditionalInfoDataType dataType)