org.apache.camel.component.fhir.FhirJsonDataFormatConfigurer Maven / Gradle / Ivy
The newest version!
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.fhir;
import javax.annotation.processing.Generated;
import java.util.HashMap;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.support.component.PropertyConfigurerSupport;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
public class FhirJsonDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
@Override
public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
FhirJsonDataFormat dataformat = (FhirJsonDataFormat) target;
switch (ignoreCase ? name.toLowerCase() : name) {
case "fhircontext":
case "fhirContext": dataformat.setFhirContext(property(camelContext, ca.uhn.fhir.context.FhirContext.class, value)); return true;
case "fhirversion":
case "fhirVersion": dataformat.setFhirVersion(property(camelContext, java.lang.String.class, value)); return true;
case "contenttypeheader":
case "contentTypeHeader": dataformat.setContentTypeHeader(property(camelContext, boolean.class, value)); return true;
case "parsererrorhandler":
case "parserErrorHandler": dataformat.setParserErrorHandler(property(camelContext, ca.uhn.fhir.parser.IParserErrorHandler.class, value)); return true;
case "parseroptions":
case "parserOptions": dataformat.setParserOptions(property(camelContext, ca.uhn.fhir.context.ParserOptions.class, value)); return true;
case "serverbaseurl":
case "serverBaseUrl": dataformat.setServerBaseUrl(property(camelContext, java.lang.String.class, value)); return true;
case "prettyprint":
case "prettyPrint": dataformat.setPrettyPrint(property(camelContext, boolean.class, value)); return true;
case "prefertypes":
case "preferTypes": dataformat.setPreferTypes(property(camelContext, java.util.List.class, value)); return true;
case "omitresourceid":
case "omitResourceId": dataformat.setOmitResourceId(property(camelContext, boolean.class, value)); return true;
case "forceresourceid":
case "forceResourceId": dataformat.setForceResourceId(property(camelContext, org.hl7.fhir.instance.model.api.IIdType.class, value)); return true;
case "encodeelementsappliestochildresourcesonly":
case "encodeElementsAppliesToChildResourcesOnly": dataformat.setEncodeElementsAppliesToChildResourcesOnly(property(camelContext, boolean.class, value)); return true;
case "encodeelements":
case "encodeElements": dataformat.setEncodeElements(property(camelContext, java.util.Set.class, value)); return true;
case "dontencodeelements":
case "dontEncodeElements": dataformat.setDontEncodeElements(property(camelContext, java.util.Set.class, value)); return true;
case "stripversionsfromreferences":
case "stripVersionsFromReferences": dataformat.setStripVersionsFromReferences(property(camelContext, java.lang.Boolean.class, value)); return true;
case "overrideresourceidwithbundleentryfullurl":
case "overrideResourceIdWithBundleEntryFullUrl": dataformat.setOverrideResourceIdWithBundleEntryFullUrl(property(camelContext, java.lang.Boolean.class, value)); return true;
case "summarymode":
case "summaryMode": dataformat.setSummaryMode(property(camelContext, boolean.class, value)); return true;
case "suppressnarratives":
case "suppressNarratives": dataformat.setSuppressNarratives(property(camelContext, boolean.class, value)); return true;
case "dontstripversionsfromreferencesatpaths":
case "dontStripVersionsFromReferencesAtPaths": dataformat.setDontStripVersionsFromReferencesAtPaths(property(camelContext, java.util.List.class, value)); return true;
default: return false;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy