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

com.arextest.web.model.mapper.YamlDynamicClassMapperImpl Maven / Gradle / Ivy

package com.arextest.web.model.mapper;

import com.arextest.config.model.dto.record.DynamicClassConfiguration;
import com.arextest.web.model.contract.contracts.config.yamlTemplate.entity.DynamicClassTemplateConfig;

/*
@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2024-12-23T06:09:22+0000",
    comments = "version: 1.5.5.Final, compiler: javac, environment: Java 21.0.5 (Eclipse Adoptium)"
)
*/
public class YamlDynamicClassMapperImpl implements YamlDynamicClassMapper {

    @Override
    public DynamicClassTemplateConfig toYaml(DynamicClassConfiguration dynamicClassConfiguration) {
        if ( dynamicClassConfiguration == null ) {
            return null;
        }

        DynamicClassTemplateConfig dynamicClassTemplateConfig = new DynamicClassTemplateConfig();

        dynamicClassTemplateConfig.setFullClassName( dynamicClassConfiguration.getFullClassName() );
        dynamicClassTemplateConfig.setMethodName( dynamicClassConfiguration.getMethodName() );
        dynamicClassTemplateConfig.setParameterTypes( dynamicClassConfiguration.getParameterTypes() );

        return dynamicClassTemplateConfig;
    }

    @Override
    public DynamicClassConfiguration fromYaml(DynamicClassTemplateConfig dynamicClassTemplateConfig) {
        if ( dynamicClassTemplateConfig == null ) {
            return null;
        }

        DynamicClassConfiguration dynamicClassConfiguration = new DynamicClassConfiguration();

        dynamicClassConfiguration.setFullClassName( dynamicClassTemplateConfig.getFullClassName() );
        dynamicClassConfiguration.setMethodName( dynamicClassTemplateConfig.getMethodName() );
        dynamicClassConfiguration.setParameterTypes( dynamicClassTemplateConfig.getParameterTypes() );

        return dynamicClassConfiguration;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy