All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.arextest.schedule.model.converter.ReplayConfigConverterImpl Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
package com.arextest.schedule.model.converter;

import com.arextest.schedule.model.config.ComparisonDependencyConfig;
import com.arextest.schedule.model.config.ComparisonInterfaceConfig;
import com.arextest.web.model.contract.contracts.compare.CategoryDetail;
import com.arextest.web.model.contract.contracts.compare.TransformDetail;
import com.arextest.web.model.contract.contracts.config.replay.ComparisonSummaryConfiguration;
import com.arextest.web.model.contract.contracts.config.replay.ReplayCompareConfig;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.annotation.Generated;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2024-08-22T12:50:10+0000",
    comments = "version: 1.5.5.Final, compiler: javac, environment: Java 11.0.24 (Eclipse Adoptium)"
)
public class ReplayConfigConverterImpl implements ReplayConfigConverter {

    @Override
    public ComparisonInterfaceConfig interfaceDaoFromDto(ReplayCompareConfig.ReplayComparisonItem dto) {
        if ( dto == null ) {
            return null;
        }

        ComparisonInterfaceConfig comparisonInterfaceConfig = new ComparisonInterfaceConfig();

        comparisonInterfaceConfig.setDependencyConfigMap( toDependencyConfigMap( dto.getDependencyComparisonItems() ) );
        comparisonInterfaceConfig.setDefaultDependencyConfig( dependencyDaoFromDto( dto.getDefaultDependencyComparisonItem() ) );
        comparisonInterfaceConfig.setOperationName( dto.getOperationName() );
        List list = dto.getOperationTypes();
        if ( list != null ) {
            comparisonInterfaceConfig.setOperationTypes( new ArrayList( list ) );
        }
        List list1 = dto.getIgnoreCategoryTypes();
        if ( list1 != null ) {
            comparisonInterfaceConfig.setIgnoreCategoryTypes( new ArrayList( list1 ) );
        }
        Set> set = dto.getExclusionList();
        if ( set != null ) {
            comparisonInterfaceConfig.setExclusionList( new LinkedHashSet>( set ) );
        }
        Set> set1 = dto.getInclusionList();
        if ( set1 != null ) {
            comparisonInterfaceConfig.setInclusionList( new LinkedHashSet>( set1 ) );
        }
        Map, List> map1 = dto.getReferenceMap();
        if ( map1 != null ) {
            comparisonInterfaceConfig.setReferenceMap( new LinkedHashMap, List>( map1 ) );
        }
        Map, List>> map2 = dto.getListSortMap();
        if ( map2 != null ) {
            comparisonInterfaceConfig.setListSortMap( new LinkedHashMap, List>>( map2 ) );
        }
        List list2 = dto.getTransformDetails();
        if ( list2 != null ) {
            comparisonInterfaceConfig.setTransformDetails( new ArrayList( list2 ) );
        }
        Map map3 = dto.getAdditionalConfig();
        if ( map3 != null ) {
            comparisonInterfaceConfig.setAdditionalConfig( new LinkedHashMap( map3 ) );
        }

        return comparisonInterfaceConfig;
    }

    @Override
    public ComparisonDependencyConfig dependencyDaoFromDto(ComparisonSummaryConfiguration dto) {
        if ( dto == null ) {
            return null;
        }

        ComparisonDependencyConfig comparisonDependencyConfig = new ComparisonDependencyConfig();

        comparisonDependencyConfig.setOperationName( dto.getOperationName() );
        List list = dto.getOperationTypes();
        if ( list != null ) {
            comparisonDependencyConfig.setOperationTypes( new ArrayList( list ) );
        }
        List list1 = dto.getIgnoreCategoryTypes();
        if ( list1 != null ) {
            comparisonDependencyConfig.setIgnoreCategoryTypes( new ArrayList( list1 ) );
        }
        Set> set = dto.getExclusionList();
        if ( set != null ) {
            comparisonDependencyConfig.setExclusionList( new LinkedHashSet>( set ) );
        }
        Set> set1 = dto.getInclusionList();
        if ( set1 != null ) {
            comparisonDependencyConfig.setInclusionList( new LinkedHashSet>( set1 ) );
        }
        Map, List> map = dto.getReferenceMap();
        if ( map != null ) {
            comparisonDependencyConfig.setReferenceMap( new LinkedHashMap, List>( map ) );
        }
        Map, List>> map1 = dto.getListSortMap();
        if ( map1 != null ) {
            comparisonDependencyConfig.setListSortMap( new LinkedHashMap, List>>( map1 ) );
        }
        List list2 = dto.getTransformDetails();
        if ( list2 != null ) {
            comparisonDependencyConfig.setTransformDetails( new ArrayList( list2 ) );
        }
        Map map2 = dto.getAdditionalConfig();
        if ( map2 != null ) {
            comparisonDependencyConfig.setAdditionalConfig( new LinkedHashMap( map2 ) );
        }

        return comparisonDependencyConfig;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy