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

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 GoraEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {

    @Override
    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
        GoraEndpoint target = (GoraEndpoint) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "bridgeerrorhandler":
        case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
        case "concurrentconsumers":
        case "concurrentConsumers": target.getConfiguration().setConcurrentConsumers(property(camelContext, int.class, value)); return true;
        case "datastoreclass":
        case "dataStoreClass": target.getConfiguration().setDataStoreClass(property(camelContext, java.lang.String.class, value)); return true;
        case "endkey":
        case "endKey": target.getConfiguration().setEndKey(property(camelContext, java.lang.Object.class, value)); return true;
        case "endtime":
        case "endTime": target.getConfiguration().setEndTime(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 "fields": target.getConfiguration().setFields(property(camelContext, com.google.common.base.Strings.class, value)); return true;
        case "flushoneveryoperation":
        case "flushOnEveryOperation": target.getConfiguration().setFlushOnEveryOperation(property(camelContext, boolean.class, value)); return true;
        case "hadoopconfiguration":
        case "hadoopConfiguration": target.getConfiguration().setHadoopConfiguration(property(camelContext, org.apache.hadoop.conf.Configuration.class, value)); return true;
        case "keyclass":
        case "keyClass": target.getConfiguration().setKeyClass(property(camelContext, java.lang.String.class, value)); return true;
        case "keyrangefrom":
        case "keyRangeFrom": target.getConfiguration().setKeyRangeFrom(property(camelContext, java.lang.Object.class, value)); return true;
        case "keyrangeto":
        case "keyRangeTo": target.getConfiguration().setKeyRangeTo(property(camelContext, java.lang.Object.class, value)); return true;
        case "lazystartproducer":
        case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
        case "limit": target.getConfiguration().setLimit(property(camelContext, long.class, value)); return true;
        case "startkey":
        case "startKey": target.getConfiguration().setStartKey(property(camelContext, java.lang.Object.class, value)); return true;
        case "starttime":
        case "startTime": target.getConfiguration().setStartTime(property(camelContext, long.class, value)); return true;
        case "timerangefrom":
        case "timeRangeFrom": target.getConfiguration().setTimeRangeFrom(property(camelContext, long.class, value)); return true;
        case "timerangeto":
        case "timeRangeTo": target.getConfiguration().setTimeRangeTo(property(camelContext, long.class, value)); return true;
        case "timestamp": target.getConfiguration().setTimestamp(property(camelContext, long.class, value)); return true;
        case "valueclass":
        case "valueClass": target.getConfiguration().setValueClass(property(camelContext, java.lang.String.class, value)); return true;
        default: return false;
        }
    }

    @Override
    public Class<?> getOptionType(String name, boolean ignoreCase) {
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "bridgeerrorhandler":
        case "bridgeErrorHandler": return boolean.class;
        case "concurrentconsumers":
        case "concurrentConsumers": return int.class;
        case "datastoreclass":
        case "dataStoreClass": return java.lang.String.class;
        case "endkey":
        case "endKey": return java.lang.Object.class;
        case "endtime":
        case "endTime": 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 "fields": return com.google.common.base.Strings.class;
        case "flushoneveryoperation":
        case "flushOnEveryOperation": return boolean.class;
        case "hadoopconfiguration":
        case "hadoopConfiguration": return org.apache.hadoop.conf.Configuration.class;
        case "keyclass":
        case "keyClass": return java.lang.String.class;
        case "keyrangefrom":
        case "keyRangeFrom": return java.lang.Object.class;
        case "keyrangeto":
        case "keyRangeTo": return java.lang.Object.class;
        case "lazystartproducer":
        case "lazyStartProducer": return boolean.class;
        case "limit": return long.class;
        case "startkey":
        case "startKey": return java.lang.Object.class;
        case "starttime":
        case "startTime": return long.class;
        case "timerangefrom":
        case "timeRangeFrom": return long.class;
        case "timerangeto":
        case "timeRangeTo": return long.class;
        case "timestamp": return long.class;
        case "valueclass":
        case "valueClass": return java.lang.String.class;
        default: return null;
        }
    }

    @Override
    public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
        GoraEndpoint target = (GoraEndpoint) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "bridgeerrorhandler":
        case "bridgeErrorHandler": return target.isBridgeErrorHandler();
        case "concurrentconsumers":
        case "concurrentConsumers": return target.getConfiguration().getConcurrentConsumers();
        case "datastoreclass":
        case "dataStoreClass": return target.getConfiguration().getDataStoreClass();
        case "endkey":
        case "endKey": return target.getConfiguration().getEndKey();
        case "endtime":
        case "endTime": return target.getConfiguration().getEndTime();
        case "exceptionhandler":
        case "exceptionHandler": return target.getExceptionHandler();
        case "exchangepattern":
        case "exchangePattern": return target.getExchangePattern();
        case "fields": return target.getConfiguration().getFields();
        case "flushoneveryoperation":
        case "flushOnEveryOperation": return target.getConfiguration().isFlushOnEveryOperation();
        case "hadoopconfiguration":
        case "hadoopConfiguration": return target.getConfiguration().getHadoopConfiguration();
        case "keyclass":
        case "keyClass": return target.getConfiguration().getKeyClass();
        case "keyrangefrom":
        case "keyRangeFrom": return target.getConfiguration().getKeyRangeFrom();
        case "keyrangeto":
        case "keyRangeTo": return target.getConfiguration().getKeyRangeTo();
        case "lazystartproducer":
        case "lazyStartProducer": return target.isLazyStartProducer();
        case "limit": return target.getConfiguration().getLimit();
        case "startkey":
        case "startKey": return target.getConfiguration().getStartKey();
        case "starttime":
        case "startTime": return target.getConfiguration().getStartTime();
        case "timerangefrom":
        case "timeRangeFrom": return target.getConfiguration().getTimeRangeFrom();
        case "timerangeto":
        case "timeRangeTo": return target.getConfiguration().getTimeRangeTo();
        case "timestamp": return target.getConfiguration().getTimestamp();
        case "valueclass":
        case "valueClass": return target.getConfiguration().getValueClass();
        default: return null;
        }
    }
}

