org.apache.camel.component.knative.spi.KnativeResourceConfigurer Maven / Gradle / Ivy
The newest version!
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.knative.spi;
import javax.annotation.processing.Generated;
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.knative.spi.KnativeResource;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.GenerateConfigurerMojo")
@SuppressWarnings("unchecked")
public class KnativeResourceConfigurer 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.component.knative.spi.KnativeResource target = (org.apache.camel.component.knative.spi.KnativeResource) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "ceoverrides":
case "ceOverrides": target.setCeOverrides(property(camelContext, java.util.Map.class, value)); return true;
case "cloudeventtype":
case "cloudEventType": target.setCloudEventType(property(camelContext, java.lang.String.class, value)); return true;
case "contenttype":
case "contentType": target.setContentType(property(camelContext, java.lang.String.class, value)); return true;
case "endpointkind":
case "endpointKind": target.setEndpointKind(property(camelContext, org.apache.camel.component.knative.spi.Knative.EndpointKind.class, value)); return true;
case "filters": target.setFilters(property(camelContext, java.util.Map.class, value)); return true;
case "metadata": target.setMetadata(property(camelContext, java.util.Map.class, value)); return true;
case "name": target.setName(property(camelContext, java.lang.String.class, value)); return true;
case "objectapiversion":
case "objectApiVersion": target.setObjectApiVersion(property(camelContext, java.lang.String.class, value)); return true;
case "objectkind":
case "objectKind": target.setObjectKind(property(camelContext, java.lang.String.class, value)); return true;
case "objectname":
case "objectName": target.setObjectName(property(camelContext, java.lang.String.class, value)); return true;
case "path": target.setPath(property(camelContext, java.lang.String.class, value)); return true;
case "reply": target.setReply(property(camelContext, java.lang.Boolean.class, value)); return true;
case "type": target.setType(property(camelContext, org.apache.camel.component.knative.spi.Knative.Type.class, value)); return true;
case "url": target.setUrl(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 "ceoverrides":
case "ceOverrides": return java.util.Map.class;
case "cloudeventtype":
case "cloudEventType": return java.lang.String.class;
case "contenttype":
case "contentType": return java.lang.String.class;
case "endpointkind":
case "endpointKind": return org.apache.camel.component.knative.spi.Knative.EndpointKind.class;
case "filters": return java.util.Map.class;
case "metadata": return java.util.Map.class;
case "name": return java.lang.String.class;
case "objectapiversion":
case "objectApiVersion": return java.lang.String.class;
case "objectkind":
case "objectKind": return java.lang.String.class;
case "objectname":
case "objectName": return java.lang.String.class;
case "path": return java.lang.String.class;
case "reply": return java.lang.Boolean.class;
case "type": return org.apache.camel.component.knative.spi.Knative.Type.class;
case "url": return java.lang.String.class;
default: return null;
}
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
org.apache.camel.component.knative.spi.KnativeResource target = (org.apache.camel.component.knative.spi.KnativeResource) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "ceoverrides":
case "ceOverrides": return target.getCeOverrides();
case "cloudeventtype":
case "cloudEventType": return target.getCloudEventType();
case "contenttype":
case "contentType": return target.getContentType();
case "endpointkind":
case "endpointKind": return target.getEndpointKind();
case "filters": return target.getFilters();
case "metadata": return target.getMetadata();
case "name": return target.getName();
case "objectapiversion":
case "objectApiVersion": return target.getObjectApiVersion();
case "objectkind":
case "objectKind": return target.getObjectKind();
case "objectname":
case "objectName": return target.getObjectName();
case "path": return target.getPath();
case "reply": return target.getReply();
case "type": return target.getType();
case "url": return target.getUrl();
default: return null;
}
}
@Override
public Object getCollectionValueType(Object target, String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "ceoverrides":
case "ceOverrides": return java.lang.String.class;
case "filters": return java.lang.String.class;
case "metadata": return java.lang.String.class;
default: return null;
}
}
}