content: /* Generated by camel build tools - do NOT edit this file! */
  package org.apache.camel.dataformat.swift.mx;
  
  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.PackageDataFormatMojo")
  @SuppressWarnings("unchecked")
  public class SwiftMxDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
  
      private static final Map<String, Object> ALL_OPTIONS;
      static {
          Map<String, Object> map = new CaseInsensitiveMap();
          map.put("ReadConfig", com.prowidesoftware.swift.model.mx.MxReadConfiguration.class);
          map.put("ReadMessageId", com.prowidesoftware.swift.model.MxId.class);
          map.put("WriteConfig", com.prowidesoftware.swift.model.mx.MxWriteConfiguration.class);
          map.put("WriteInJson", boolean.class);
          ALL_OPTIONS = map;
      }
  
      @Override
      public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
          SwiftMxDataFormat target = (SwiftMxDataFormat) obj;
          switch (ignoreCase ? name.toLowerCase() : name) {
          case "readconfig":
          case "readConfig": target.setReadConfig(property(camelContext, com.prowidesoftware.swift.model.mx.MxReadConfiguration.class, value)); return true;
          case "readmessageid":
          case "readMessageId": target.setReadMessageId(property(camelContext, com.prowidesoftware.swift.model.MxId.class, value)); return true;
          case "writeconfig":
          case "writeConfig": target.setWriteConfig(property(camelContext, com.prowidesoftware.swift.model.mx.MxWriteConfiguration.class, value)); return true;
          case "writeinjson":
          case "writeInJson": target.setWriteInJson(property(camelContext, boolean.class, value)); return true;
          default: return false;
          }
      }
  
      @Override
      public Map<String, Object> getAllOptions(Object target) {
          return ALL_OPTIONS;
      }
  
      @Override
      public Class<?> getOptionType(String name, boolean ignoreCase) {
          switch (ignoreCase ? name.toLowerCase() : name) {
          case "readconfig":
          case "readConfig": return com.prowidesoftware.swift.model.mx.MxReadConfiguration.class;
          case "readmessageid":
          case "readMessageId": return com.prowidesoftware.swift.model.MxId.class;
          case "writeconfig":
          case "writeConfig": return com.prowidesoftware.swift.model.mx.MxWriteConfiguration.class;
          case "writeinjson":
          case "writeInJson": return boolean.class;
          default: return null;
          }
      }
  
      @Override
      public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
          SwiftMxDataFormat target = (SwiftMxDataFormat) obj;
          switch (ignoreCase ? name.toLowerCase() : name) {
          case "readconfig":
          case "readConfig": return target.getReadConfig();
          case "readmessageid":
          case "readMessageId": return target.getReadMessageId();
          case "writeconfig":
          case "writeConfig": return target.getWriteConfig();
          case "writeinjson":
          case "writeInJson": return target.isWriteInJson();
          default: return null;
          }
      }
  }
  
  