org.apache.camel.component.fhir.FhirReadEndpointConfigurationConfigurer Maven / Gradle / Ivy
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.fhir;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache.camel.spi.ConfigurerStrategy;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.util.CaseInsensitiveMap;
import org.apache.camel.component.fhir.FhirReadEndpointConfiguration;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@SuppressWarnings("unchecked")
public class FhirReadEndpointConfigurationConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
private static final Map ALL_OPTIONS;
static {
Map map = new CaseInsensitiveMap();
map.put("AccessToken", java.lang.String.class);
map.put("ApiName", org.apache.camel.component.fhir.internal.FhirApiName.class);
map.put("Client", ca.uhn.fhir.rest.client.api.IGenericClient.class);
map.put("ClientFactory", ca.uhn.fhir.rest.client.api.IRestfulClientFactory.class);
map.put("Compress", boolean.class);
map.put("ConnectionTimeout", java.lang.Integer.class);
map.put("DeferModelScanning", boolean.class);
map.put("Encoding", java.lang.String.class);
map.put("ExtraParameters", java.util.Map.class);
map.put("FhirContext", ca.uhn.fhir.context.FhirContext.class);
map.put("FhirVersion", java.lang.String.class);
map.put("ForceConformanceCheck", boolean.class);
map.put("IUrl", org.hl7.fhir.instance.model.api.IIdType.class);
map.put("Id", org.hl7.fhir.instance.model.api.IIdType.class);
map.put("IfVersionMatches", java.lang.String.class);
map.put("Log", boolean.class);
map.put("LongId", java.lang.Long.class);
map.put("MethodName", java.lang.String.class);
map.put("Password", java.lang.String.class);
map.put("PrettyPrint", boolean.class);
map.put("ProxyHost", java.lang.String.class);
map.put("ProxyPassword", java.lang.String.class);
map.put("ProxyPort", java.lang.Integer.class);
map.put("ProxyUser", java.lang.String.class);
map.put("Resource", java.lang.Class.class);
map.put("ResourceClass", java.lang.String.class);
map.put("ReturnNull", java.lang.Boolean.class);
map.put("ReturnResource", org.hl7.fhir.instance.model.api.IBaseResource.class);
map.put("ServerUrl", java.lang.String.class);
map.put("SessionCookie", java.lang.String.class);
map.put("SocketTimeout", java.lang.Integer.class);
map.put("StringId", java.lang.String.class);
map.put("Summary", java.lang.String.class);
map.put("ThrowError", java.lang.Boolean.class);
map.put("Url", java.lang.String.class);
map.put("Username", java.lang.String.class);
map.put("ValidationMode", java.lang.String.class);
map.put("Version", java.lang.String.class);
ALL_OPTIONS = map;
}
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
org.apache.camel.component.fhir.FhirReadEndpointConfiguration target = (org.apache.camel.component.fhir.FhirReadEndpointConfiguration) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "accesstoken":
case "AccessToken": target.setAccessToken(property(camelContext, java.lang.String.class, value)); return true;
case "apiname":
case "ApiName": target.setApiName(property(camelContext, org.apache.camel.component.fhir.internal.FhirApiName.class, value)); return true;
case "client":
case "Client": target.setClient(property(camelContext, ca.uhn.fhir.rest.client.api.IGenericClient.class, value)); return true;
case "clientfactory":
case "ClientFactory": target.setClientFactory(property(camelContext, ca.uhn.fhir.rest.client.api.IRestfulClientFactory.class, value)); return true;
case "compress":
case "Compress": target.setCompress(property(camelContext, boolean.class, value)); return true;
case "connectiontimeout":
case "ConnectionTimeout": target.setConnectionTimeout(property(camelContext, java.lang.Integer.class, value)); return true;
case "defermodelscanning":
case "DeferModelScanning": target.setDeferModelScanning(property(camelContext, boolean.class, value)); return true;
case "encoding":
case "Encoding": target.setEncoding(property(camelContext, java.lang.String.class, value)); return true;
case "extraparameters":
case "ExtraParameters": target.setExtraParameters(property(camelContext, java.util.Map.class, value)); return true;
case "fhircontext":
case "FhirContext": target.setFhirContext(property(camelContext, ca.uhn.fhir.context.FhirContext.class, value)); return true;
case "fhirversion":
case "FhirVersion": target.setFhirVersion(property(camelContext, java.lang.String.class, value)); return true;
case "forceconformancecheck":
case "ForceConformanceCheck": target.setForceConformanceCheck(property(camelContext, boolean.class, value)); return true;
case "iurl":
case "IUrl": target.setIUrl(property(camelContext, org.hl7.fhir.instance.model.api.IIdType.class, value)); return true;
case "id":
case "Id": target.setId(property(camelContext, org.hl7.fhir.instance.model.api.IIdType.class, value)); return true;
case "ifversionmatches":
case "IfVersionMatches": target.setIfVersionMatches(property(camelContext, java.lang.String.class, value)); return true;
case "log":
case "Log": target.setLog(property(camelContext, boolean.class, value)); return true;
case "longid":
case "LongId": target.setLongId(property(camelContext, java.lang.Long.class, value)); return true;
case "methodname":
case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true;
case "password":
case "Password": target.setPassword(property(camelContext, java.lang.String.class, value)); return true;
case "prettyprint":
case "PrettyPrint": target.setPrettyPrint(property(camelContext, boolean.class, value)); return true;
case "proxyhost":
case "ProxyHost": target.setProxyHost(property(camelContext, java.lang.String.class, value)); return true;
case "proxypassword":
case "ProxyPassword": target.setProxyPassword(property(camelContext, java.lang.String.class, value)); return true;
case "proxyport":
case "ProxyPort": target.setProxyPort(property(camelContext, java.lang.Integer.class, value)); return true;
case "proxyuser":
case "ProxyUser": target.setProxyUser(property(camelContext, java.lang.String.class, value)); return true;
case "resource":
case "Resource": target.setResource(property(camelContext, java.lang.Class.class, value)); return true;
case "resourceclass":
case "ResourceClass": target.setResourceClass(property(camelContext, java.lang.String.class, value)); return true;
case "returnnull":
case "ReturnNull": target.setReturnNull(property(camelContext, java.lang.Boolean.class, value)); return true;
case "returnresource":
case "ReturnResource": target.setReturnResource(property(camelContext, org.hl7.fhir.instance.model.api.IBaseResource.class, value)); return true;
case "serverurl":
case "ServerUrl": target.setServerUrl(property(camelContext, java.lang.String.class, value)); return true;
case "sessioncookie":
case "SessionCookie": target.setSessionCookie(property(camelContext, java.lang.String.class, value)); return true;
case "sockettimeout":
case "SocketTimeout": target.setSocketTimeout(property(camelContext, java.lang.Integer.class, value)); return true;
case "stringid":
case "StringId": target.setStringId(property(camelContext, java.lang.String.class, value)); return true;
case "summary":
case "Summary": target.setSummary(property(camelContext, java.lang.String.class, value)); return true;
case "throwerror":
case "ThrowError": target.setThrowError(property(camelContext, java.lang.Boolean.class, value)); return true;
case "url":
case "Url": target.setUrl(property(camelContext, java.lang.String.class, value)); return true;
case "username":
case "Username": target.setUsername(property(camelContext, java.lang.String.class, value)); return true;
case "validationmode":
case "ValidationMode": target.setValidationMode(property(camelContext, java.lang.String.class, value)); return true;
case "version":
case "Version": target.setVersion(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
@Override
public Map getAllOptions(Object target) {
return ALL_OPTIONS;
}
@Override
public Class> getOptionType(String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "accesstoken":
case "AccessToken": return java.lang.String.class;
case "apiname":
case "ApiName": return org.apache.camel.component.fhir.internal.FhirApiName.class;
case "client":
case "Client": return ca.uhn.fhir.rest.client.api.IGenericClient.class;
case "clientfactory":
case "ClientFactory": return ca.uhn.fhir.rest.client.api.IRestfulClientFactory.class;
case "compress":
case "Compress": return boolean.class;
case "connectiontimeout":
case "ConnectionTimeout": return java.lang.Integer.class;
case "defermodelscanning":
case "DeferModelScanning": return boolean.class;
case "encoding":
case "Encoding": return java.lang.String.class;
case "extraparameters":
case "ExtraParameters": return java.util.Map.class;
case "fhircontext":
case "FhirContext": return ca.uhn.fhir.context.FhirContext.class;
case "fhirversion":
case "FhirVersion": return java.lang.String.class;
case "forceconformancecheck":
case "ForceConformanceCheck": return boolean.class;
case "iurl":
case "IUrl": return org.hl7.fhir.instance.model.api.IIdType.class;
case "id":
case "Id": return org.hl7.fhir.instance.model.api.IIdType.class;
case "ifversionmatches":
case "IfVersionMatches": return java.lang.String.class;
case "log":
case "Log": return boolean.class;
case "longid":
case "LongId": return java.lang.Long.class;
case "methodname":
case "MethodName": return java.lang.String.class;
case "password":
case "Password": return java.lang.String.class;
case "prettyprint":
case "PrettyPrint": return boolean.class;
case "proxyhost":
case "ProxyHost": return java.lang.String.class;
case "proxypassword":
case "ProxyPassword": return java.lang.String.class;
case "proxyport":
case "ProxyPort": return java.lang.Integer.class;
case "proxyuser":
case "ProxyUser": return java.lang.String.class;
case "resource":
case "Resource": return java.lang.Class.class;
case "resourceclass":
case "ResourceClass": return java.lang.String.class;
case "returnnull":
case "ReturnNull": return java.lang.Boolean.class;
case "returnresource":
case "ReturnResource": return org.hl7.fhir.instance.model.api.IBaseResource.class;
case "serverurl":
case "ServerUrl": return java.lang.String.class;
case "sessioncookie":
case "SessionCookie": return java.lang.String.class;
case "sockettimeout":
case "SocketTimeout": return java.lang.Integer.class;
case "stringid":
case "StringId": return java.lang.String.class;
case "summary":
case "Summary": return java.lang.String.class;
case "throwerror":
case "ThrowError": return java.lang.Boolean.class;
case "url":
case "Url": return java.lang.String.class;
case "username":
case "Username": return java.lang.String.class;
case "validationmode":
case "ValidationMode": return java.lang.String.class;
case "version":
case "Version": return java.lang.String.class;
default: return null;
}
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
org.apache.camel.component.fhir.FhirReadEndpointConfiguration target = (org.apache.camel.component.fhir.FhirReadEndpointConfiguration) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "accesstoken":
case "AccessToken": return target.getAccessToken();
case "apiname":
case "ApiName": return target.getApiName();
case "client":
case "Client": return target.getClient();
case "clientfactory":
case "ClientFactory": return target.getClientFactory();
case "compress":
case "Compress": return target.isCompress();
case "connectiontimeout":
case "ConnectionTimeout": return target.getConnectionTimeout();
case "defermodelscanning":
case "DeferModelScanning": return target.isDeferModelScanning();
case "encoding":
case "Encoding": return target.getEncoding();
case "extraparameters":
case "ExtraParameters": return target.getExtraParameters();
case "fhircontext":
case "FhirContext": return target.getFhirContext();
case "fhirversion":
case "FhirVersion": return target.getFhirVersion();
case "forceconformancecheck":
case "ForceConformanceCheck": return target.isForceConformanceCheck();
case "iurl":
case "IUrl": return target.getIUrl();
case "id":
case "Id": return target.getId();
case "ifversionmatches":
case "IfVersionMatches": return target.getIfVersionMatches();
case "log":
case "Log": return target.isLog();
case "longid":
case "LongId": return target.getLongId();
case "methodname":
case "MethodName": return target.getMethodName();
case "password":
case "Password": return target.getPassword();
case "prettyprint":
case "PrettyPrint": return target.isPrettyPrint();
case "proxyhost":
case "ProxyHost": return target.getProxyHost();
case "proxypassword":
case "ProxyPassword": return target.getProxyPassword();
case "proxyport":
case "ProxyPort": return target.getProxyPort();
case "proxyuser":
case "ProxyUser": return target.getProxyUser();
case "resource":
case "Resource": return target.getResource();
case "resourceclass":
case "ResourceClass": return target.getResourceClass();
case "returnnull":
case "ReturnNull": return target.getReturnNull();
case "returnresource":
case "ReturnResource": return target.getReturnResource();
case "serverurl":
case "ServerUrl": return target.getServerUrl();
case "sessioncookie":
case "SessionCookie": return target.getSessionCookie();
case "sockettimeout":
case "SocketTimeout": return target.getSocketTimeout();
case "stringid":
case "StringId": return target.getStringId();
case "summary":
case "Summary": return target.getSummary();
case "throwerror":
case "ThrowError": return target.getThrowError();
case "url":
case "Url": return target.getUrl();
case "username":
case "Username": return target.getUsername();
case "validationmode":
case "ValidationMode": return target.getValidationMode();
case "version":
case "Version": return target.getVersion();
default: return null;
}
}
@Override
public Object getCollectionValueType(Object target, String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "extraparameters":
case "ExtraParameters": return java.lang.Object.class;
case "resource":
case "Resource": return org.hl7.fhir.instance.model.api.IBaseResource.class;
default: return null;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy