content: /* Generated by camel build tools - do NOT edit this file! */
  package org.apache.camel.component.infinispan.remote;
  
  import javax.annotation.processing.Generated;
  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.support.component.PropertyConfigurerSupport;
  
  /**
   * Generated by camel build tools - do NOT edit this file!
   */
  @Generated("org.apache.camel.maven.packaging.EndpointSchemaGeneratorMojo")
  @SuppressWarnings("unchecked")
  public class InfinispanRemoteComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
  
      private org.apache.camel.component.infinispan.remote.InfinispanRemoteConfiguration getOrCreateConfiguration(InfinispanRemoteComponent target) {
          if (target.getConfiguration() == null) {
              target.setConfiguration(new org.apache.camel.component.infinispan.remote.InfinispanRemoteConfiguration());
          }
          return target.getConfiguration();
      }
  
      @Override
      public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
          InfinispanRemoteComponent target = (InfinispanRemoteComponent) obj;
          switch (ignoreCase ? name.toLowerCase() : name) {
          case "autowiredenabled":
          case "autowiredEnabled": target.setAutowiredEnabled(property(camelContext, boolean.class, value)); return true;
          case "bridgeerrorhandler":
          case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
          case "cachecontainer":
          case "cacheContainer": getOrCreateConfiguration(target).setCacheContainer(property(camelContext, org.infinispan.client.hotrod.RemoteCacheManager.class, value)); return true;
          case "cachecontainerconfiguration":
          case "cacheContainerConfiguration": getOrCreateConfiguration(target).setCacheContainerConfiguration(property(camelContext, org.infinispan.client.hotrod.configuration.Configuration.class, value)); return true;
          case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.infinispan.remote.InfinispanRemoteConfiguration.class, value)); return true;
          case "configurationproperties":
          case "configurationProperties": getOrCreateConfiguration(target).setConfigurationProperties(property(camelContext, java.util.Map.class, value)); return true;
          case "configurationuri":
          case "configurationUri": getOrCreateConfiguration(target).setConfigurationUri(property(camelContext, java.lang.String.class, value)); return true;
          case "customlistener":
          case "customListener": getOrCreateConfiguration(target).setCustomListener(property(camelContext, org.apache.camel.component.infinispan.remote.InfinispanRemoteCustomListener.class, value)); return true;
          case "defaultvalue":
          case "defaultValue": getOrCreateConfiguration(target).setDefaultValue(property(camelContext, java.lang.Object.class, value)); return true;
          case "embeddingstoredimension":
          case "embeddingStoreDimension": getOrCreateConfiguration(target).setEmbeddingStoreDimension(property(camelContext, int.class, value)); return true;
          case "embeddingstoredistance":
          case "embeddingStoreDistance": getOrCreateConfiguration(target).setEmbeddingStoreDistance(property(camelContext, int.class, value)); return true;
          case "embeddingstoreenabled":
          case "embeddingStoreEnabled": getOrCreateConfiguration(target).setEmbeddingStoreEnabled(property(camelContext, boolean.class, value)); return true;
          case "embeddingstoreregisterschema":
          case "embeddingStoreRegisterSchema": getOrCreateConfiguration(target).setEmbeddingStoreRegisterSchema(property(camelContext, boolean.class, value)); return true;
          case "embeddingstoretypename":
          case "embeddingStoreTypeName": getOrCreateConfiguration(target).setEmbeddingStoreTypeName(property(camelContext, java.lang.String.class, value)); return true;
          case "embeddingstorevectorsimilarity":
          case "embeddingStoreVectorSimilarity": getOrCreateConfiguration(target).setEmbeddingStoreVectorSimilarity(property(camelContext, org.infinispan.api.annotations.indexing.option.VectorSimilarity.class, value)); return true;
          case "eventtypes":
          case "eventTypes": getOrCreateConfiguration(target).setEventTypes(property(camelContext, java.lang.String.class, value)); return true;
          case "flags": getOrCreateConfiguration(target).setFlags(property(camelContext, java.lang.String.class, value)); return true;
          case "hosts": getOrCreateConfiguration(target).setHosts(property(camelContext, java.lang.String.class, value)); return true;
          case "key": getOrCreateConfiguration(target).setKey(property(camelContext, java.lang.Object.class, value)); return true;
          case "lazystartproducer":
          case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
          case "oldvalue":
          case "oldValue": getOrCreateConfiguration(target).setOldValue(property(camelContext, java.lang.Object.class, value)); return true;
          case "operation": getOrCreateConfiguration(target).setOperation(property(camelContext, org.apache.camel.component.infinispan.InfinispanOperation.class, value)); return true;
          case "password": getOrCreateConfiguration(target).setPassword(property(camelContext, java.lang.String.class, value)); return true;
          case "querybuilder":
          case "queryBuilder": getOrCreateConfiguration(target).setQueryBuilder(property(camelContext, org.apache.camel.component.infinispan.InfinispanQueryBuilder.class, value)); return true;
          case "remappingfunction":
          case "remappingFunction": getOrCreateConfiguration(target).setRemappingFunction(property(camelContext, java.util.function.BiFunction.class, value)); return true;
          case "resultheader":
          case "resultHeader": getOrCreateConfiguration(target).setResultHeader(property(camelContext, java.lang.String.class, value)); return true;
          case "saslmechanism":
          case "saslMechanism": getOrCreateConfiguration(target).setSaslMechanism(property(camelContext, java.lang.String.class, value)); return true;
          case "secure": getOrCreateConfiguration(target).setSecure(property(camelContext, boolean.class, value)); return true;
          case "securityrealm":
          case "securityRealm": getOrCreateConfiguration(target).setSecurityRealm(property(camelContext, java.lang.String.class, value)); return true;
          case "securityservername":
          case "securityServerName": getOrCreateConfiguration(target).setSecurityServerName(property(camelContext, java.lang.String.class, value)); return true;
          case "username": getOrCreateConfiguration(target).setUsername(property(camelContext, java.lang.String.class, value)); return true;
          case "value": getOrCreateConfiguration(target).setValue(property(camelContext, java.lang.Object.class, value)); return true;
          default: return false;
          }
      }
  
      @Override
      public String[] getAutowiredNames() {
          return new String[]{"cacheContainer", "cacheContainerConfiguration"};
      }
  
      @Override
      public Class<?> getOptionType(String name, boolean ignoreCase) {
          switch (ignoreCase ? name.toLowerCase() : name) {
          case "autowiredenabled":
          case "autowiredEnabled": return boolean.class;
          case "bridgeerrorhandler":
          case "bridgeErrorHandler": return boolean.class;
          case "cachecontainer":
          case "cacheContainer": return org.infinispan.client.hotrod.RemoteCacheManager.class;
          case "cachecontainerconfiguration":
          case "cacheContainerConfiguration": return org.infinispan.client.hotrod.configuration.Configuration.class;
          case "configuration": return org.apache.camel.component.infinispan.remote.InfinispanRemoteConfiguration.class;
          case "configurationproperties":
          case "configurationProperties": return java.util.Map.class;
          case "configurationuri":
          case "configurationUri": return java.lang.String.class;
          case "customlistener":
          case "customListener": return org.apache.camel.component.infinispan.remote.InfinispanRemoteCustomListener.class;
          case "defaultvalue":
          case "defaultValue": return java.lang.Object.class;
          case "embeddingstoredimension":
          case "embeddingStoreDimension": return int.class;
          case "embeddingstoredistance":
          case "embeddingStoreDistance": return int.class;
          case "embeddingstoreenabled":
          case "embeddingStoreEnabled": return boolean.class;
          case "embeddingstoreregisterschema":
          case "embeddingStoreRegisterSchema": return boolean.class;
          case "embeddingstoretypename":
          case "embeddingStoreTypeName": return java.lang.String.class;
          case "embeddingstorevectorsimilarity":
          case "embeddingStoreVectorSimilarity": return org.infinispan.api.annotations.indexing.option.VectorSimilarity.class;
          case "eventtypes":
          case "eventTypes": return java.lang.String.class;
          case "flags": return java.lang.String.class;
          case "hosts": return java.lang.String.class;
          case "key": return java.lang.Object.class;
          case "lazystartproducer":
          case "lazyStartProducer": return boolean.class;
          case "oldvalue":
          case "oldValue": return java.lang.Object.class;
          case "operation": return org.apache.camel.component.infinispan.InfinispanOperation.class;
          case "password": return java.lang.String.class;
          case "querybuilder":
          case "queryBuilder": return org.apache.camel.component.infinispan.InfinispanQueryBuilder.class;
          case "remappingfunction":
          case "remappingFunction": return java.util.function.BiFunction.class;
          case "resultheader":
          case "resultHeader": return java.lang.String.class;
          case "saslmechanism":
          case "saslMechanism": return java.lang.String.class;
          case "secure": return boolean.class;
          case "securityrealm":
          case "securityRealm": return java.lang.String.class;
          case "securityservername":
          case "securityServerName": return java.lang.String.class;
          case "username": return java.lang.String.class;
          case "value": return java.lang.Object.class;
          default: return null;
          }
      }
  
      @Override
      public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
          InfinispanRemoteComponent target = (InfinispanRemoteComponent) obj;
          switch (ignoreCase ? name.toLowerCase() : name) {
          case "autowiredenabled":
          case "autowiredEnabled": return target.isAutowiredEnabled();
          case "bridgeerrorhandler":
          case "bridgeErrorHandler": return target.isBridgeErrorHandler();
          case "cachecontainer":
          case "cacheContainer": return getOrCreateConfiguration(target).getCacheContainer();
          case "cachecontainerconfiguration":
          case "cacheContainerConfiguration": return getOrCreateConfiguration(target).getCacheContainerConfiguration();
          case "configuration": return target.getConfiguration();
          case "configurationproperties":
          case "configurationProperties": return getOrCreateConfiguration(target).getConfigurationProperties();
          case "configurationuri":
          case "configurationUri": return getOrCreateConfiguration(target).getConfigurationUri();
          case "customlistener":
          case "customListener": return getOrCreateConfiguration(target).getCustomListener();
          case "defaultvalue":
          case "defaultValue": return getOrCreateConfiguration(target).getDefaultValue();
          case "embeddingstoredimension":
          case "embeddingStoreDimension": return getOrCreateConfiguration(target).getEmbeddingStoreDimension();
          case "embeddingstoredistance":
          case "embeddingStoreDistance": return getOrCreateConfiguration(target).getEmbeddingStoreDistance();
          case "embeddingstoreenabled":
          case "embeddingStoreEnabled": return getOrCreateConfiguration(target).isEmbeddingStoreEnabled();
          case "embeddingstoreregisterschema":
          case "embeddingStoreRegisterSchema": return getOrCreateConfiguration(target).isEmbeddingStoreRegisterSchema();
          case "embeddingstoretypename":
          case "embeddingStoreTypeName": return getOrCreateConfiguration(target).getEmbeddingStoreTypeName();
          case "embeddingstorevectorsimilarity":
          case "embeddingStoreVectorSimilarity": return getOrCreateConfiguration(target).getEmbeddingStoreVectorSimilarity();
          case "eventtypes":
          case "eventTypes": return getOrCreateConfiguration(target).getEventTypes();
          case "flags": return getOrCreateConfiguration(target).getFlags();
          case "hosts": return getOrCreateConfiguration(target).getHosts();
          case "key": return getOrCreateConfiguration(target).getKey();
          case "lazystartproducer":
          case "lazyStartProducer": return target.isLazyStartProducer();
          case "oldvalue":
          case "oldValue": return getOrCreateConfiguration(target).getOldValue();
          case "operation": return getOrCreateConfiguration(target).getOperation();
          case "password": return getOrCreateConfiguration(target).getPassword();
          case "querybuilder":
          case "queryBuilder": return getOrCreateConfiguration(target).getQueryBuilder();
          case "remappingfunction":
          case "remappingFunction": return getOrCreateConfiguration(target).getRemappingFunction();
          case "resultheader":
          case "resultHeader": return getOrCreateConfiguration(target).getResultHeader();
          case "saslmechanism":
          case "saslMechanism": return getOrCreateConfiguration(target).getSaslMechanism();
          case "secure": return getOrCreateConfiguration(target).isSecure();
          case "securityrealm":
          case "securityRealm": return getOrCreateConfiguration(target).getSecurityRealm();
          case "securityservername":
          case "securityServerName": return getOrCreateConfiguration(target).getSecurityServerName();
          case "username": return getOrCreateConfiguration(target).getUsername();
          case "value": return getOrCreateConfiguration(target).getValue();
          default: return null;
          }
      }
  
      @Override
      public Object getCollectionValueType(Object target, String name, boolean ignoreCase) {
          switch (ignoreCase ? name.toLowerCase() : name) {
          case "configurationproperties":
          case "configurationProperties": return java.lang.String.class;
          default: return null;
          }
      }
  }
  
  