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

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.main.LraConfigurationProperties;

/**
 * Generated by camel build tools - do NOT edit this file!
 */
@SuppressWarnings("unchecked")
public class LraConfigurationPropertiesConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {

    @Override
    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
        org.apache.camel.main.LraConfigurationProperties target = (org.apache.camel.main.LraConfigurationProperties) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "coordinatorcontextpath":
        case "CoordinatorContextPath": target.setCoordinatorContextPath(property(camelContext, java.lang.String.class, value)); return true;
        case "coordinatorurl":
        case "CoordinatorUrl": target.setCoordinatorUrl(property(camelContext, java.lang.String.class, value)); return true;
        case "localparticipantcontextpath":
        case "LocalParticipantContextPath": target.setLocalParticipantContextPath(property(camelContext, java.lang.String.class, value)); return true;
        case "localparticipanturl":
        case "LocalParticipantUrl": target.setLocalParticipantUrl(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 "coordinatorcontextpath":
        case "CoordinatorContextPath": return java.lang.String.class;
        case "coordinatorurl":
        case "CoordinatorUrl": return java.lang.String.class;
        case "localparticipantcontextpath":
        case "LocalParticipantContextPath": return java.lang.String.class;
        case "localparticipanturl":
        case "LocalParticipantUrl": return java.lang.String.class;
        default: return null;
        }
    }

    @Override
    public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
        org.apache.camel.main.LraConfigurationProperties target = (org.apache.camel.main.LraConfigurationProperties) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "coordinatorcontextpath":
        case "CoordinatorContextPath": return target.getCoordinatorContextPath();
        case "coordinatorurl":
        case "CoordinatorUrl": return target.getCoordinatorUrl();
        case "localparticipantcontextpath":
        case "LocalParticipantContextPath": return target.getLocalParticipantContextPath();
        case "localparticipanturl":
        case "LocalParticipantUrl": return target.getLocalParticipantUrl();
        default: return null;
        }
    }
}

