/* Generated by camel build tools - do NOT edit this file! */
package org.openehealth.ipf.platform.camel.ihe.xds.core.converters;

import org.apache.camel.TypeConverterLoaderException;
import org.apache.camel.spi.TypeConverterLoader;
import org.apache.camel.spi.TypeConverterRegistry;
import org.apache.camel.support.SimpleTypeConverter;
import org.openehealth.ipf.commons.ihe.xds.core.stub.xdsi.RetrieveImagingDocumentSetRequestType;

/**
 * Generated by camel build tools - do NOT edit this file!
 */
public final class EbXML30ConvertersLoader implements TypeConverterLoader {

    public EbXML30ConvertersLoader() {
    }

    @Override
    public void load(TypeConverterRegistry registry) throws TypeConverterLoaderException {
        registerConverters(registry);
    }

    private void registerConverters(TypeConverterRegistry registry) {
        addTypeConverter(registry, org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.ProvideAndRegisterDocumentSetRequestType.class, org.openehealth.ipf.commons.ihe.xds.core.requests.ProvideAndRegisterDocumentSet.class, false,
            (type, exchange, value) -> org.openehealth.ipf.platform.camel.ihe.xds.core.converters.EbXML30Converters.convert((org.openehealth.ipf.commons.ihe.xds.core.requests.ProvideAndRegisterDocumentSet) value));
        addTypeConverter(registry, org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.RemoveDocumentsRequestType.class, org.openehealth.ipf.commons.ihe.xds.core.requests.RemoveDocuments.class, false,
            (type, exchange, value) -> org.openehealth.ipf.platform.camel.ihe.xds.core.converters.EbXML30Converters.convert((org.openehealth.ipf.commons.ihe.xds.core.requests.RemoveDocuments) value));
        addTypeConverter(registry, org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.RetrieveDocumentSetRequestType.class, org.openehealth.ipf.commons.ihe.xds.core.requests.RetrieveDocumentSet.class, false,
            (type, exchange, value) -> org.openehealth.ipf.platform.camel.ihe.xds.core.converters.EbXML30Converters.convert((org.openehealth.ipf.commons.ihe.xds.core.requests.RetrieveDocumentSet) value));
        addTypeConverter(registry, org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.RetrieveDocumentSetResponseType.class, org.openehealth.ipf.commons.ihe.xds.core.responses.RetrievedDocumentSet.class, false,
            (type, exchange, value) -> org.openehealth.ipf.platform.camel.ihe.xds.core.converters.EbXML30Converters.convert((org.openehealth.ipf.commons.ihe.xds.core.responses.RetrievedDocumentSet) value));
        addTypeConverter(registry, RetrieveImagingDocumentSetRequestType.class, org.openehealth.ipf.commons.ihe.xds.core.requests.RetrieveImagingDocumentSet.class, false,
            (type, exchange, value) -> org.openehealth.ipf.platform.camel.ihe.xds.core.converters.EbXML30Converters.convert((org.openehealth.ipf.commons.ihe.xds.core.requests.RetrieveImagingDocumentSet) value));
        addTypeConverter(registry, org.openehealth.ipf.commons.ihe.xds.core.requests.ProvideAndRegisterDocumentSet.class, org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.ProvideAndRegisterDocumentSetRequestType.class, false,
            (type, exchange, value) -> org.openehealth.ipf.platform.camel.ihe.xds.core.converters.EbXML30Converters.convert((org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.ProvideAndRegisterDocumentSetRequestType) value));
        addTypeConverter(registry, org.openehealth.ipf.commons.ihe.xds.core.requests.QueryRegistry.class, org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.query.AdhocQueryRequest.class, false,
            (type, exchange, value) -> org.openehealth.ipf.platform.camel.ihe.xds.core.converters.EbXML30Converters.convert((org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.query.AdhocQueryRequest) value));
        addTypeConverter(registry, org.openehealth.ipf.commons.ihe.xds.core.requests.RegisterDocumentSet.class, org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.lcm.SubmitObjectsRequest.class, false,
            (type, exchange, value) -> org.openehealth.ipf.platform.camel.ihe.xds.core.converters.EbXML30Converters.convert((org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.lcm.SubmitObjectsRequest) value));
        addTypeConverter(registry, org.openehealth.ipf.commons.ihe.xds.core.requests.RemoveDocuments.class, org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.RemoveDocumentsRequestType.class, false,
            (type, exchange, value) -> org.openehealth.ipf.platform.camel.ihe.xds.core.converters.EbXML30Converters.convert((org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.RemoveDocumentsRequestType) value));
        addTypeConverter(registry, org.openehealth.ipf.commons.ihe.xds.core.requests.RemoveMetadata.class, org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.lcm.RemoveObjectsRequest.class, false,
            (type, exchange, value) -> org.openehealth.ipf.platform.camel.ihe.xds.core.converters.EbXML30Converters.convert((org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.lcm.RemoveObjectsRequest) value));
        addTypeConverter(registry, org.openehealth.ipf.commons.ihe.xds.core.requests.RetrieveDocumentSet.class, org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.RetrieveDocumentSetRequestType.class, false,
            (type, exchange, value) -> org.openehealth.ipf.platform.camel.ihe.xds.core.converters.EbXML30Converters.convert((org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.RetrieveDocumentSetRequestType) value));
        addTypeConverter(registry, org.openehealth.ipf.commons.ihe.xds.core.requests.RetrieveImagingDocumentSet.class, RetrieveImagingDocumentSetRequestType.class, false,
            (type, exchange, value) -> org.openehealth.ipf.platform.camel.ihe.xds.core.converters.EbXML30Converters.convert((RetrieveImagingDocumentSetRequestType) value));
        addTypeConverter(registry, org.openehealth.ipf.commons.ihe.xds.core.responses.QueryResponse.class, org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.query.AdhocQueryResponse.class, false,
            (type, exchange, value) -> org.openehealth.ipf.platform.camel.ihe.xds.core.converters.EbXML30Converters.convertToQueryResponse((org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.query.AdhocQueryResponse) value));
        addTypeConverter(registry, org.openehealth.ipf.commons.ihe.xds.core.responses.Response.class, org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.rs.RegistryResponseType.class, false,
            (type, exchange, value) -> org.openehealth.ipf.platform.camel.ihe.xds.core.converters.EbXML30Converters.convert((org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.rs.RegistryResponseType) value));
        addTypeConverter(registry, org.openehealth.ipf.commons.ihe.xds.core.responses.RetrievedDocumentSet.class, org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.RetrieveDocumentSetResponseType.class, false,
            (type, exchange, value) -> org.openehealth.ipf.platform.camel.ihe.xds.core.converters.EbXML30Converters.convert((org.openehealth.ipf.commons.ihe.xds.core.ebxml.ebxml30.RetrieveDocumentSetResponseType) value));
        addTypeConverter(registry, org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.lcm.RemoveObjectsRequest.class, org.openehealth.ipf.commons.ihe.xds.core.requests.RemoveMetadata.class, false,
            (type, exchange, value) -> org.openehealth.ipf.platform.camel.ihe.xds.core.converters.EbXML30Converters.convert((org.openehealth.ipf.commons.ihe.xds.core.requests.RemoveMetadata) value));
        addTypeConverter(registry, org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.lcm.SubmitObjectsRequest.class, org.openehealth.ipf.commons.ihe.xds.core.requests.RegisterDocumentSet.class, false,
            (type, exchange, value) -> org.openehealth.ipf.platform.camel.ihe.xds.core.converters.EbXML30Converters.convert((org.openehealth.ipf.commons.ihe.xds.core.requests.RegisterDocumentSet) value));
        addTypeConverter(registry, org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.query.AdhocQueryRequest.class, org.openehealth.ipf.commons.ihe.xds.core.requests.QueryRegistry.class, false,
            (type, exchange, value) -> org.openehealth.ipf.platform.camel.ihe.xds.core.converters.EbXML30Converters.convert((org.openehealth.ipf.commons.ihe.xds.core.requests.QueryRegistry) value));
        addTypeConverter(registry, org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.query.AdhocQueryResponse.class, org.openehealth.ipf.commons.ihe.xds.core.responses.QueryResponse.class, false,
            (type, exchange, value) -> org.openehealth.ipf.platform.camel.ihe.xds.core.converters.EbXML30Converters.convert((org.openehealth.ipf.commons.ihe.xds.core.responses.QueryResponse) value));
        addTypeConverter(registry, org.openehealth.ipf.commons.ihe.xds.core.stub.ebrs30.rs.RegistryResponseType.class, org.openehealth.ipf.commons.ihe.xds.core.responses.Response.class, false,
            (type, exchange, value) -> org.openehealth.ipf.platform.camel.ihe.xds.core.converters.EbXML30Converters.convert((org.openehealth.ipf.commons.ihe.xds.core.responses.Response) value));
    }

    private static void addTypeConverter(TypeConverterRegistry registry, Class<?> toType, Class<?> fromType, boolean allowNull, SimpleTypeConverter.ConversionMethod method) { 
        registry.addTypeConverter(toType, fromType, new SimpleTypeConverter(allowNull, method));
    }

}
