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

import javax.annotation.processing.Generated;
import java.util.HashMap;
import java.util.Map;

import org.apache.camel.CamelContext;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
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 Base64DataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {

    @Override
    public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
        Base64DataFormat dataformat = (Base64DataFormat) target;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "linelength":
        case "lineLength": dataformat.setLineLength(property(camelContext, int.class, value)); return true;
        case "lineseparator":
        case "lineSeparator": dataformat.setLineSeparator(property(camelContext, byte[].class, value)); return true;
        case "urlsafe":
        case "urlSafe": dataformat.setUrlSafe(property(camelContext, boolean.class, value)); return true;
        default: return false;
        }
    }

}

