/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.hdfs;

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!
 */
@SuppressWarnings("unchecked")
public class HdfsEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {

    @Override
    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
        HdfsEndpoint target = (HdfsEndpoint) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "append": target.getConfig().setAppend(property(camelContext, boolean.class, value)); return true;
        case "backofferrorthreshold":
        case "backoffErrorThreshold": target.setBackoffErrorThreshold(property(camelContext, int.class, value)); return true;
        case "backoffidlethreshold":
        case "backoffIdleThreshold": target.setBackoffIdleThreshold(property(camelContext, int.class, value)); return true;
        case "backoffmultiplier":
        case "backoffMultiplier": target.setBackoffMultiplier(property(camelContext, int.class, value)); return true;
        case "blocksize":
        case "blockSize": target.getConfig().setBlockSize(property(camelContext, long.class, value)); return true;
        case "bridgeerrorhandler":
        case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
        case "buffersize":
        case "bufferSize": target.getConfig().setBufferSize(property(camelContext, int.class, value)); return true;
        case "checkidleinterval":
        case "checkIdleInterval": target.getConfig().setCheckIdleInterval(property(camelContext, int.class, value)); return true;
        case "chunksize":
        case "chunkSize": target.getConfig().setChunkSize(property(camelContext, int.class, value)); return true;
        case "compressioncodec":
        case "compressionCodec": target.getConfig().setCompressionCodec(property(camelContext, org.apache.camel.component.hdfs.HdfsCompressionCodec.class, value)); return true;
        case "compressiontype":
        case "compressionType": target.getConfig().setCompressionType(property(camelContext, org.apache.hadoop.io.SequenceFile.CompressionType.class, value)); return true;
        case "connectonstartup":
        case "connectOnStartup": target.getConfig().setConnectOnStartup(property(camelContext, boolean.class, value)); return true;
        case "delay": target.setDelay(property(camelContext, long.class, value)); return true;
        case "exceptionhandler":
        case "exceptionHandler": target.setExceptionHandler(property(camelContext, org.apache.camel.spi.ExceptionHandler.class, value)); return true;
        case "exchangepattern":
        case "exchangePattern": target.setExchangePattern(property(camelContext, org.apache.camel.ExchangePattern.class, value)); return true;
        case "filesystemtype":
        case "fileSystemType": target.getConfig().setFileSystemType(property(camelContext, org.apache.camel.component.hdfs.HdfsFileSystemType.class, value)); return true;
        case "filetype":
        case "fileType": target.getConfig().setFileType(property(camelContext, org.apache.camel.component.hdfs.HdfsFileType.class, value)); return true;
        case "greedy": target.setGreedy(property(camelContext, boolean.class, value)); return true;
        case "initialdelay":
        case "initialDelay": target.setInitialDelay(property(camelContext, long.class, value)); return true;
        case "kerberosconfigfilelocation":
        case "kerberosConfigFileLocation": target.getConfig().setKerberosConfigFileLocation(property(camelContext, java.lang.String.class, value)); return true;
        case "kerberoskeytablocation":
        case "kerberosKeytabLocation": target.getConfig().setKerberosKeytabLocation(property(camelContext, java.lang.String.class, value)); return true;
        case "kerberosusername":
        case "kerberosUsername": target.getConfig().setKerberosUsername(property(camelContext, java.lang.String.class, value)); return true;
        case "keytype":
        case "keyType": target.getConfig().setKeyType(property(camelContext, org.apache.camel.component.hdfs.WritableType.class, value)); return true;
        case "lazystartproducer":
        case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
        case "maxmessagesperpoll":
        case "maxMessagesPerPoll": target.getConfig().setMaxMessagesPerPoll(property(camelContext, int.class, value)); return true;
        case "namednodes":
        case "namedNodes": target.getConfig().setNamedNodes(property(camelContext, java.lang.String.class, value)); return true;
        case "openedsuffix":
        case "openedSuffix": target.getConfig().setOpenedSuffix(property(camelContext, java.lang.String.class, value)); return true;
        case "overwrite": target.getConfig().setOverwrite(property(camelContext, boolean.class, value)); return true;
        case "owner": target.getConfig().setOwner(property(camelContext, java.lang.String.class, value)); return true;
        case "pattern": target.getConfig().setPattern(property(camelContext, java.lang.String.class, value)); return true;
        case "pollstrategy":
        case "pollStrategy": target.setPollStrategy(property(camelContext, org.apache.camel.spi.PollingConsumerPollStrategy.class, value)); return true;
        case "readsuffix":
        case "readSuffix": target.getConfig().setReadSuffix(property(camelContext, java.lang.String.class, value)); return true;
        case "repeatcount":
        case "repeatCount": target.setRepeatCount(property(camelContext, long.class, value)); return true;
        case "replication": target.getConfig().setReplication(property(camelContext, short.class, value)); return true;
        case "runlogginglevel":
        case "runLoggingLevel": target.setRunLoggingLevel(property(camelContext, org.apache.camel.LoggingLevel.class, value)); return true;
        case "scheduledexecutorservice":
        case "scheduledExecutorService": target.setScheduledExecutorService(property(camelContext, java.util.concurrent.ScheduledExecutorService.class, value)); return true;
        case "scheduler": target.setScheduler(property(camelContext, java.lang.Object.class, value)); return true;
        case "schedulerproperties":
        case "schedulerProperties": target.setSchedulerProperties(property(camelContext, java.util.Map.class, value)); return true;
        case "sendemptymessagewhenidle":
        case "sendEmptyMessageWhenIdle": target.setSendEmptyMessageWhenIdle(property(camelContext, boolean.class, value)); return true;
        case "splitstrategy":
        case "splitStrategy": target.getConfig().setSplitStrategy(property(camelContext, java.lang.String.class, value)); return true;
        case "startscheduler":
        case "startScheduler": target.setStartScheduler(property(camelContext, boolean.class, value)); return true;
        case "streamdownload":
        case "streamDownload": target.getConfig().setStreamDownload(property(camelContext, boolean.class, value)); return true;
        case "timeunit":
        case "timeUnit": target.setTimeUnit(property(camelContext, java.util.concurrent.TimeUnit.class, value)); return true;
        case "usefixeddelay":
        case "useFixedDelay": target.setUseFixedDelay(property(camelContext, boolean.class, value)); return true;
        case "valuetype":
        case "valueType": target.getConfig().setValueType(property(camelContext, org.apache.camel.component.hdfs.WritableType.class, value)); return true;
        default: return false;
        }
    }

    @Override
    public Class<?> getOptionType(String name, boolean ignoreCase) {
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "append": return boolean.class;
        case "backofferrorthreshold":
        case "backoffErrorThreshold": return int.class;
        case "backoffidlethreshold":
        case "backoffIdleThreshold": return int.class;
        case "backoffmultiplier":
        case "backoffMultiplier": return int.class;
        case "blocksize":
        case "blockSize": return long.class;
        case "bridgeerrorhandler":
        case "bridgeErrorHandler": return boolean.class;
        case "buffersize":
        case "bufferSize": return int.class;
        case "checkidleinterval":
        case "checkIdleInterval": return int.class;
        case "chunksize":
        case "chunkSize": return int.class;
        case "compressioncodec":
        case "compressionCodec": return org.apache.camel.component.hdfs.HdfsCompressionCodec.class;
        case "compressiontype":
        case "compressionType": return org.apache.hadoop.io.SequenceFile.CompressionType.class;
        case "connectonstartup":
        case "connectOnStartup": return boolean.class;
        case "delay": return long.class;
        case "exceptionhandler":
        case "exceptionHandler": return org.apache.camel.spi.ExceptionHandler.class;
        case "exchangepattern":
        case "exchangePattern": return org.apache.camel.ExchangePattern.class;
        case "filesystemtype":
        case "fileSystemType": return org.apache.camel.component.hdfs.HdfsFileSystemType.class;
        case "filetype":
        case "fileType": return org.apache.camel.component.hdfs.HdfsFileType.class;
        case "greedy": return boolean.class;
        case "initialdelay":
        case "initialDelay": return long.class;
        case "kerberosconfigfilelocation":
        case "kerberosConfigFileLocation": return java.lang.String.class;
        case "kerberoskeytablocation":
        case "kerberosKeytabLocation": return java.lang.String.class;
        case "kerberosusername":
        case "kerberosUsername": return java.lang.String.class;
        case "keytype":
        case "keyType": return org.apache.camel.component.hdfs.WritableType.class;
        case "lazystartproducer":
        case "lazyStartProducer": return boolean.class;
        case "maxmessagesperpoll":
        case "maxMessagesPerPoll": return int.class;
        case "namednodes":
        case "namedNodes": return java.lang.String.class;
        case "openedsuffix":
        case "openedSuffix": return java.lang.String.class;
        case "overwrite": return boolean.class;
        case "owner": return java.lang.String.class;
        case "pattern": return java.lang.String.class;
        case "pollstrategy":
        case "pollStrategy": return org.apache.camel.spi.PollingConsumerPollStrategy.class;
        case "readsuffix":
        case "readSuffix": return java.lang.String.class;
        case "repeatcount":
        case "repeatCount": return long.class;
        case "replication": return short.class;
        case "runlogginglevel":
        case "runLoggingLevel": return org.apache.camel.LoggingLevel.class;
        case "scheduledexecutorservice":
        case "scheduledExecutorService": return java.util.concurrent.ScheduledExecutorService.class;
        case "scheduler": return java.lang.Object.class;
        case "schedulerproperties":
        case "schedulerProperties": return java.util.Map.class;
        case "sendemptymessagewhenidle":
        case "sendEmptyMessageWhenIdle": return boolean.class;
        case "splitstrategy":
        case "splitStrategy": return java.lang.String.class;
        case "startscheduler":
        case "startScheduler": return boolean.class;
        case "streamdownload":
        case "streamDownload": return boolean.class;
        case "timeunit":
        case "timeUnit": return java.util.concurrent.TimeUnit.class;
        case "usefixeddelay":
        case "useFixedDelay": return boolean.class;
        case "valuetype":
        case "valueType": return org.apache.camel.component.hdfs.WritableType.class;
        default: return null;
        }
    }

    @Override
    public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
        HdfsEndpoint target = (HdfsEndpoint) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "append": return target.getConfig().isAppend();
        case "backofferrorthreshold":
        case "backoffErrorThreshold": return target.getBackoffErrorThreshold();
        case "backoffidlethreshold":
        case "backoffIdleThreshold": return target.getBackoffIdleThreshold();
        case "backoffmultiplier":
        case "backoffMultiplier": return target.getBackoffMultiplier();
        case "blocksize":
        case "blockSize": return target.getConfig().getBlockSize();
        case "bridgeerrorhandler":
        case "bridgeErrorHandler": return target.isBridgeErrorHandler();
        case "buffersize":
        case "bufferSize": return target.getConfig().getBufferSize();
        case "checkidleinterval":
        case "checkIdleInterval": return target.getConfig().getCheckIdleInterval();
        case "chunksize":
        case "chunkSize": return target.getConfig().getChunkSize();
        case "compressioncodec":
        case "compressionCodec": return target.getConfig().getCompressionCodec();
        case "compressiontype":
        case "compressionType": return target.getConfig().getCompressionType();
        case "connectonstartup":
        case "connectOnStartup": return target.getConfig().isConnectOnStartup();
        case "delay": return target.getDelay();
        case "exceptionhandler":
        case "exceptionHandler": return target.getExceptionHandler();
        case "exchangepattern":
        case "exchangePattern": return target.getExchangePattern();
        case "filesystemtype":
        case "fileSystemType": return target.getConfig().getFileSystemType();
        case "filetype":
        case "fileType": return target.getConfig().getFileType();
        case "greedy": return target.isGreedy();
        case "initialdelay":
        case "initialDelay": return target.getInitialDelay();
        case "kerberosconfigfilelocation":
        case "kerberosConfigFileLocation": return target.getConfig().getKerberosConfigFileLocation();
        case "kerberoskeytablocation":
        case "kerberosKeytabLocation": return target.getConfig().getKerberosKeytabLocation();
        case "kerberosusername":
        case "kerberosUsername": return target.getConfig().getKerberosUsername();
        case "keytype":
        case "keyType": return target.getConfig().getKeyType();
        case "lazystartproducer":
        case "lazyStartProducer": return target.isLazyStartProducer();
        case "maxmessagesperpoll":
        case "maxMessagesPerPoll": return target.getConfig().getMaxMessagesPerPoll();
        case "namednodes":
        case "namedNodes": return target.getConfig().getNamedNodes();
        case "openedsuffix":
        case "openedSuffix": return target.getConfig().getOpenedSuffix();
        case "overwrite": return target.getConfig().isOverwrite();
        case "owner": return target.getConfig().getOwner();
        case "pattern": return target.getConfig().getPattern();
        case "pollstrategy":
        case "pollStrategy": return target.getPollStrategy();
        case "readsuffix":
        case "readSuffix": return target.getConfig().getReadSuffix();
        case "repeatcount":
        case "repeatCount": return target.getRepeatCount();
        case "replication": return target.getConfig().getReplication();
        case "runlogginglevel":
        case "runLoggingLevel": return target.getRunLoggingLevel();
        case "scheduledexecutorservice":
        case "scheduledExecutorService": return target.getScheduledExecutorService();
        case "scheduler": return target.getScheduler();
        case "schedulerproperties":
        case "schedulerProperties": return target.getSchedulerProperties();
        case "sendemptymessagewhenidle":
        case "sendEmptyMessageWhenIdle": return target.isSendEmptyMessageWhenIdle();
        case "splitstrategy":
        case "splitStrategy": return target.getConfig().getSplitStrategy();
        case "startscheduler":
        case "startScheduler": return target.isStartScheduler();
        case "streamdownload":
        case "streamDownload": return target.getConfig().isStreamDownload();
        case "timeunit":
        case "timeUnit": return target.getTimeUnit();
        case "usefixeddelay":
        case "useFixedDelay": return target.isUseFixedDelay();
        case "valuetype":
        case "valueType": return target.getConfig().getValueType();
        default: return null;
        }
    }

    @Override
    public Object getCollectionValueType(Object target, String name, boolean ignoreCase) {
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "schedulerproperties":
        case "schedulerProperties": return java.lang.Object.class;
        default: return null;
        }
    }
}

