Package com.highdeal.pnr.hci
Class ParameterAdditionalInfoHelper
java.lang.Object
com.highdeal.pnr.hci.ParameterAdditionalInfoHelper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanentityIsMappingTableId(List<com.highdeal.pnr.domain.AdditionalInfoEntity> additionalInfo) Tells whether the given additional information indicates a mapping table ID (i.e.booleanentityIsRangeTableId(List<com.highdeal.pnr.domain.AdditionalInfoEntity> additionalInfo) Tells whether the given additional information indicates a range table ID (i.e.getDataType(List<? extends AdditionalInfo> parameterAdditionalInfos) getMappingTableClassName(List<? extends AdditionalInfo> additionalInfos) getRangeTableClassName(List<? extends AdditionalInfo> additionalInfos) getRawDataType(List<AdditionalInfoModel> additionalInfos) getStringTypedAdditionalInfo(List<? extends AdditionalInfo> parameterAdditionalInfos, String addInfoName) getStringTypedAdditionalInfoValue(List<? extends AdditionalInfo> additionalInfos, String addInfoName) getUnmanagedAdditionInfo(List<AdditionalInfoModel> additionalInfo) booleanisMappingTableId(ParameterModel parameter) booleanisMappingTableId(List<AdditionalInfoModel> additionalInfo) Tells whether the given additional information indicates a mapping table ID (i.e.booleanisMappingTableKey(ParameterModel parameter) booleanisMappingTableKey(List<AdditionalInfoModel> additionalInfo) Tells whether the given additional information indicates a mapping table key (i.e.booleanisRangeTableId(ParameterModel parameter) booleanisRangeTableId(List<AdditionalInfoModel> additionalInfo) Tells whether the given additional information indicates a range table ID (i.e.final voidsetDataType(List<AdditionalInfoModel> additionalInfo, ParameterAdditionalInfoHelper.ParameterAdditionalInfoDataType dataType) static voidupdateMappingTableIdAdditionalInfos(List<AdditionalInfoModel> additionalInfo, String mappingTableClass) static voidupdateMappingTableIdParameter(ParameterModel parameter, String mappingTableClass) Updates a parameter model with the mapping table ID type.voidupdateMappingTableKeyAdditionalInfos(List<AdditionalInfoModel> additionalInfo, boolean isMappingTableKey) static voidupdateRangeTableIdAdditionalInfos(List<AdditionalInfoModel> additionalInfo, String rangeTableClass)
-
Field Details
-
ADD_INFO_NAME_MAPPING_TABLE_CLASS
The mapping-table-class additional information name- See Also:
-
ADD_INFO_NAME_RANGE_TABLE_CLASS
The range-table-class additional information name- See Also:
-
ADD_INFO_NAME_DATA_TYPE
The data-type additional information name- See Also:
-
-
Method Details
-
getInstance
-
isMappingTableKey
-
isMappingTableId
-
isRangeTableId
-
isMappingTableKey
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
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
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 updatemappingTableClass- 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
-
getRangeTableClassName
-
getStringTypedAdditionalInfoValue
public String getStringTypedAdditionalInfoValue(List<? extends AdditionalInfo> additionalInfos, String addInfoName) -
getRawDataType
-
getDataType
public ParameterAdditionalInfoHelper.ParameterAdditionalInfoDataType getDataType(List<? extends AdditionalInfo> parameterAdditionalInfos) -
getStringTypedAdditionalInfo
public AdditionalInfo getStringTypedAdditionalInfo(List<? extends AdditionalInfo> parameterAdditionalInfos, String addInfoName) -
getUnmanagedAdditionInfo
-
setDataType
public final void setDataType(List<AdditionalInfoModel> additionalInfo, ParameterAdditionalInfoHelper.ParameterAdditionalInfoDataType dataType)
-