All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.camel.component.braintree.DisputeGatewayEndpointConfigurationConfigurer Maven / Gradle / Ivy

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

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.component.braintree.DisputeGatewayEndpointConfiguration;

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

    private static final Map ALL_OPTIONS;
    static {
        Map map = new CaseInsensitiveMap();
        map.put("AccessToken", java.lang.String.class);
        map.put("ApiName", org.apache.camel.component.braintree.internal.BraintreeApiName.class);
        map.put("Content", java.lang.String.class);
        map.put("DisputeId", java.lang.String.class);
        map.put("DocumentId", java.lang.String.class);
        map.put("Environment", java.lang.String.class);
        map.put("EvidenceId", java.lang.String.class);
        map.put("FileEvidenceRequest", com.braintreegateway.FileEvidenceRequest.class);
        map.put("HttpLogLevel", java.lang.String.class);
        map.put("HttpLogName", java.lang.String.class);
        map.put("HttpReadTimeout", java.lang.Integer.class);
        map.put("Id", java.lang.String.class);
        map.put("LogHandlerEnabled", boolean.class);
        map.put("MerchantId", java.lang.String.class);
        map.put("MethodName", java.lang.String.class);
        map.put("PrivateKey", java.lang.String.class);
        map.put("ProxyHost", java.lang.String.class);
        map.put("ProxyPort", java.lang.Integer.class);
        map.put("PublicKey", java.lang.String.class);
        map.put("Query", com.braintreegateway.DisputeSearchRequest.class);
        map.put("TextEvidenceRequest", com.braintreegateway.TextEvidenceRequest.class);
        ALL_OPTIONS = map;
    }

    @Override
    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
        org.apache.camel.component.braintree.DisputeGatewayEndpointConfiguration target = (org.apache.camel.component.braintree.DisputeGatewayEndpointConfiguration) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "accesstoken":
        case "AccessToken": target.setAccessToken(property(camelContext, java.lang.String.class, value)); return true;
        case "apiname":
        case "ApiName": target.setApiName(property(camelContext, org.apache.camel.component.braintree.internal.BraintreeApiName.class, value)); return true;
        case "content":
        case "Content": target.setContent(property(camelContext, java.lang.String.class, value)); return true;
        case "disputeid":
        case "DisputeId": target.setDisputeId(property(camelContext, java.lang.String.class, value)); return true;
        case "documentid":
        case "DocumentId": target.setDocumentId(property(camelContext, java.lang.String.class, value)); return true;
        case "environment":
        case "Environment": target.setEnvironment(property(camelContext, java.lang.String.class, value)); return true;
        case "evidenceid":
        case "EvidenceId": target.setEvidenceId(property(camelContext, java.lang.String.class, value)); return true;
        case "fileevidencerequest":
        case "FileEvidenceRequest": target.setFileEvidenceRequest(property(camelContext, com.braintreegateway.FileEvidenceRequest.class, value)); return true;
        case "httploglevel":
        case "HttpLogLevel": target.setHttpLogLevel(property(camelContext, java.lang.String.class, value)); return true;
        case "httplogname":
        case "HttpLogName": target.setHttpLogName(property(camelContext, java.lang.String.class, value)); return true;
        case "httpreadtimeout":
        case "HttpReadTimeout": target.setHttpReadTimeout(property(camelContext, java.lang.Integer.class, value)); return true;
        case "id":
        case "Id": target.setId(property(camelContext, java.lang.String.class, value)); return true;
        case "loghandlerenabled":
        case "LogHandlerEnabled": target.setLogHandlerEnabled(property(camelContext, boolean.class, value)); return true;
        case "merchantid":
        case "MerchantId": target.setMerchantId(property(camelContext, java.lang.String.class, value)); return true;
        case "methodname":
        case "MethodName": target.setMethodName(property(camelContext, java.lang.String.class, value)); return true;
        case "privatekey":
        case "PrivateKey": target.setPrivateKey(property(camelContext, java.lang.String.class, value)); return true;
        case "proxyhost":
        case "ProxyHost": target.setProxyHost(property(camelContext, java.lang.String.class, value)); return true;
        case "proxyport":
        case "ProxyPort": target.setProxyPort(property(camelContext, java.lang.Integer.class, value)); return true;
        case "publickey":
        case "PublicKey": target.setPublicKey(property(camelContext, java.lang.String.class, value)); return true;
        case "query":
        case "Query": target.setQuery(property(camelContext, com.braintreegateway.DisputeSearchRequest.class, value)); return true;
        case "textevidencerequest":
        case "TextEvidenceRequest": target.setTextEvidenceRequest(property(camelContext, com.braintreegateway.TextEvidenceRequest.class, value)); return true;
        default: return false;
        }
    }

    @Override
    public Map getAllOptions(Object target) {
        return ALL_OPTIONS;
    }

    @Override
    public Class getOptionType(String name, boolean ignoreCase) {
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "accesstoken":
        case "AccessToken": return java.lang.String.class;
        case "apiname":
        case "ApiName": return org.apache.camel.component.braintree.internal.BraintreeApiName.class;
        case "content":
        case "Content": return java.lang.String.class;
        case "disputeid":
        case "DisputeId": return java.lang.String.class;
        case "documentid":
        case "DocumentId": return java.lang.String.class;
        case "environment":
        case "Environment": return java.lang.String.class;
        case "evidenceid":
        case "EvidenceId": return java.lang.String.class;
        case "fileevidencerequest":
        case "FileEvidenceRequest": return com.braintreegateway.FileEvidenceRequest.class;
        case "httploglevel":
        case "HttpLogLevel": return java.lang.String.class;
        case "httplogname":
        case "HttpLogName": return java.lang.String.class;
        case "httpreadtimeout":
        case "HttpReadTimeout": return java.lang.Integer.class;
        case "id":
        case "Id": return java.lang.String.class;
        case "loghandlerenabled":
        case "LogHandlerEnabled": return boolean.class;
        case "merchantid":
        case "MerchantId": return java.lang.String.class;
        case "methodname":
        case "MethodName": return java.lang.String.class;
        case "privatekey":
        case "PrivateKey": return java.lang.String.class;
        case "proxyhost":
        case "ProxyHost": return java.lang.String.class;
        case "proxyport":
        case "ProxyPort": return java.lang.Integer.class;
        case "publickey":
        case "PublicKey": return java.lang.String.class;
        case "query":
        case "Query": return com.braintreegateway.DisputeSearchRequest.class;
        case "textevidencerequest":
        case "TextEvidenceRequest": return com.braintreegateway.TextEvidenceRequest.class;
        default: return null;
        }
    }

    @Override
    public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
        org.apache.camel.component.braintree.DisputeGatewayEndpointConfiguration target = (org.apache.camel.component.braintree.DisputeGatewayEndpointConfiguration) obj;
        switch (ignoreCase ? name.toLowerCase() : name) {
        case "accesstoken":
        case "AccessToken": return target.getAccessToken();
        case "apiname":
        case "ApiName": return target.getApiName();
        case "content":
        case "Content": return target.getContent();
        case "disputeid":
        case "DisputeId": return target.getDisputeId();
        case "documentid":
        case "DocumentId": return target.getDocumentId();
        case "environment":
        case "Environment": return target.getEnvironment();
        case "evidenceid":
        case "EvidenceId": return target.getEvidenceId();
        case "fileevidencerequest":
        case "FileEvidenceRequest": return target.getFileEvidenceRequest();
        case "httploglevel":
        case "HttpLogLevel": return target.getHttpLogLevel();
        case "httplogname":
        case "HttpLogName": return target.getHttpLogName();
        case "httpreadtimeout":
        case "HttpReadTimeout": return target.getHttpReadTimeout();
        case "id":
        case "Id": return target.getId();
        case "loghandlerenabled":
        case "LogHandlerEnabled": return target.isLogHandlerEnabled();
        case "merchantid":
        case "MerchantId": return target.getMerchantId();
        case "methodname":
        case "MethodName": return target.getMethodName();
        case "privatekey":
        case "PrivateKey": return target.getPrivateKey();
        case "proxyhost":
        case "ProxyHost": return target.getProxyHost();
        case "proxyport":
        case "ProxyPort": return target.getProxyPort();
        case "publickey":
        case "PublicKey": return target.getPublicKey();
        case "query":
        case "Query": return target.getQuery();
        case "textevidencerequest":
        case "TextEvidenceRequest": return target.getTextEvidenceRequest();
        default: return null;
        }
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy