You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2025/08/16 07:29:56 UTC
(camel) 01/03: CAMEL-22352: data formats configurer should have more details
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch df
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 256e472b6fe4c2c9658752bb1ae3d6f66bb6c1bd
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Aug 15 14:01:52 2025 +0200
CAMEL-22352: data formats configurer should have more details
---
.../dataformat/asn1/ASN1DataFormatConfigurer.java | 54 +++++-
.../dataformat/avro/AvroDataFormatConfigurer.java | 45 ++++-
.../barcode/BarcodeDataFormatConfigurer.java | 36 +++-
.../base64/Base64DataFormatConfigurer.java | 59 +++++-
.../beanio/BeanIODataFormatConfigurer.java | 98 ++++++++--
.../bindy/csv/BindyCsvDataFormatConfigurer.java | 66 ++++++-
.../BindyFixedLengthDataFormatConfigurer.java | 66 ++++++-
.../kvp/BindyKeyValuePairDataFormatConfigurer.java | 66 ++++++-
.../component/cbor/CBORDataFormatConfigurer.java | 116 +++++++++--
.../converter/crypto/PGPDataFormatConfigurer.java | 134 ++++++++++---
.../converter/crypto/PGPKeyAccessDataFormat.java | 4 +-
.../crypto/CryptoDataFormatConfigurer.java | 73 +++++--
.../camel/converter/crypto/CryptoDataFormat.java | 20 ++
.../dataformat/csv/CsvDataFormatConfigurer.java | 215 +++++++++++++++++----
.../dataformat/dfdl/DfdlDataFormatConfigurer.java | 61 +++++-
.../fastjson/FastjsonDataFormatConfigurer.java | 54 +++++-
.../fhir/FhirJsonDataFormatConfigurer.java | 184 ++++++++++++++----
.../fhir/FhirXmlDataFormatConfigurer.java | 184 ++++++++++++++----
.../flatpack/FlatpackDataFormatConfigurer.java | 85 ++++++--
.../component/fory/ForyDataFormatConfigurer.java | 61 +++++-
.../component/grok/GrokDataFormatConfigurer.java | 62 +++++-
.../camel/component/grok/GrokDataFormat.java | 16 ++
.../component/gson/GsonDataFormatConfigurer.java | 72 +++++--
.../component/hl7/HL7DataFormatConfigurer.java | 43 ++++-
.../component/ical/ICalDataFormatConfigurer.java | 43 ++++-
.../iso8583/Iso8583DataFormatConfigurer.java | 52 ++++-
.../avro/JacksonAvroDataFormatConfigurer.java | 36 +++-
.../JacksonProtobufDataFormatConfigurer.java | 36 +++-
.../jackson/JacksonDataFormatConfigurer.java | 210 ++++++++++++++++----
.../jacksonxml/JacksonXMLDataFormatConfigurer.java | 167 +++++++++++++---
.../converter/jaxb/JaxbDataFormatConfigurer.java | 183 ++++++++++++++----
.../jsonapi/JsonApiDataFormatConfigurer.java | 52 ++++-
.../component/jsonb/JsonbDataFormatConfigurer.java | 61 +++++-
.../dataformat/lzf/LZFDataFormatConfigurer.java | 45 ++++-
.../MimeMultipartDataFormatConfigurer.java | 77 ++++++--
.../mime/multipart/MimeMultipartDataFormat.java | 40 +++-
.../avro/ParquetAvroDataFormatConfigurer.java | 54 +++++-
.../protobuf/ProtobufDataFormatConfigurer.java | 54 +++++-
.../dataformat/protobuf/ProtobufDataFormat.java | 9 +-
.../dataformat/rss/RssDataFormatConfigurer.java | 36 +++-
.../smooks/SmooksDataFormatConfigurer.java | 45 ++++-
.../snakeyaml/SnakeYAMLDataFormatConfigurer.java | 108 +++++++++--
.../dataformat/soap/SoapDataFormatConfigurer.java | 43 ++++-
.../swift/mt/SwiftMtDataFormatConfigurer.java | 45 ++++-
.../swift/mx/SwiftMxDataFormatConfigurer.java | 54 +++++-
.../syslog/SyslogDataFormatConfigurer.java | 36 +++-
.../tarfile/TarFileDataFormatConfigurer.java | 70 +++++--
.../thrift/ThriftDataFormatConfigurer.java | 54 +++++-
.../camel/dataformat/thrift/ThriftDataFormat.java | 4 +
.../UniVocityCsvDataFormatConfigurer.java | 167 +++++++++++++---
.../UniVocityFixedDataFormatConfigurer.java | 164 +++++++++++++---
.../UniVocityTsvDataFormatConfigurer.java | 148 +++++++++++---
.../XMLSecurityDataFormatConfigurer.java | 118 +++++++++--
.../xmlsecurity/XMLSecurityDataFormat.java | 4 +
.../deflater/GzipDeflaterDataFormatConfigurer.java | 36 +++-
.../deflater/ZipDeflaterDataFormatConfigurer.java | 45 ++++-
.../zipfile/ZipFileDataFormatConfigurer.java | 70 +++++--
.../reifier/dataformat/DataFormatReifier.java | 14 +-
.../maven/packaging/PackageDataFormatMojo.java | 14 +-
59 files changed, 3566 insertions(+), 702 deletions(-)
diff --git a/components/camel-asn1/src/generated/java/org/apache/camel/dataformat/asn1/ASN1DataFormatConfigurer.java b/components/camel-asn1/src/generated/java/org/apache/camel/dataformat/asn1/ASN1DataFormatConfigurer.java
index d8324775485..19e7ce816d7 100644
--- a/components/camel-asn1/src/generated/java/org/apache/camel/dataformat/asn1/ASN1DataFormatConfigurer.java
+++ b/components/camel-asn1/src/generated/java/org/apache/camel/dataformat/asn1/ASN1DataFormatConfigurer.java
@@ -2,31 +2,69 @@
package org.apache.camel.dataformat.asn1;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.asn1.ASN1DataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class ASN1DataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class ASN1DataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("UnmarshalType", java.lang.Class.class);
+ map.put("UsingIterator", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- ASN1DataFormat dataformat = (ASN1DataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ ASN1DataFormat target = (ASN1DataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "usingiterator":
- case "usingIterator": dataformat.setUsingIterator(property(camelContext, boolean.class, value)); return true;
case "unmarshaltype":
- case "unmarshalType": dataformat.setUnmarshalType(property(camelContext, java.lang.Class.class, value)); return true;
+ case "unmarshalType": target.setUnmarshalType(property(camelContext, java.lang.Class.class, value)); return true;
+ case "usingiterator":
+ case "usingIterator": target.setUsingIterator(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "unmarshaltype":
+ case "unmarshalType": return java.lang.Class.class;
+ case "usingiterator":
+ case "usingIterator": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ ASN1DataFormat target = (ASN1DataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "unmarshaltype":
+ case "unmarshalType": return target.getUnmarshalType();
+ case "usingiterator":
+ case "usingIterator": return target.isUsingIterator();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-avro/src/generated/java/org/apache/camel/dataformat/avro/AvroDataFormatConfigurer.java b/components/camel-avro/src/generated/java/org/apache/camel/dataformat/avro/AvroDataFormatConfigurer.java
index 7d959b2dab2..725710f01b5 100644
--- a/components/camel-avro/src/generated/java/org/apache/camel/dataformat/avro/AvroDataFormatConfigurer.java
+++ b/components/camel-avro/src/generated/java/org/apache/camel/dataformat/avro/AvroDataFormatConfigurer.java
@@ -2,29 +2,62 @@
package org.apache.camel.dataformat.avro;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.avro.AvroDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class AvroDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class AvroDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("InstanceClassName", java.lang.String.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- AvroDataFormat dataformat = (AvroDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ AvroDataFormat target = (AvroDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "instanceclassname":
- case "instanceClassName": dataformat.setInstanceClassName(property(camelContext, java.lang.String.class, value)); return true;
+ case "instanceClassName": target.setInstanceClassName(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "instanceclassname":
+ case "instanceClassName": return java.lang.String.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ AvroDataFormat target = (AvroDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "instanceclassname":
+ case "instanceClassName": return target.getInstanceClassName();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-barcode/src/generated/java/org/apache/camel/dataformat/barcode/BarcodeDataFormatConfigurer.java b/components/camel-barcode/src/generated/java/org/apache/camel/dataformat/barcode/BarcodeDataFormatConfigurer.java
index 65f26340706..0584e37628b 100644
--- a/components/camel-barcode/src/generated/java/org/apache/camel/dataformat/barcode/BarcodeDataFormatConfigurer.java
+++ b/components/camel-barcode/src/generated/java/org/apache/camel/dataformat/barcode/BarcodeDataFormatConfigurer.java
@@ -2,27 +2,47 @@
package org.apache.camel.dataformat.barcode;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.barcode.BarcodeDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class BarcodeDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class BarcodeDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ ALL_OPTIONS = map;
+ }
+
+ @Override
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ return false;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- BarcodeDataFormat dataformat = (BarcodeDataFormat) target;
- switch (ignoreCase ? name.toLowerCase() : name) {
- default: return false;
- }
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
}
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ return null;
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ return null;
+ }
}
diff --git a/components/camel-base64/src/generated/java/org/apache/camel/dataformat/base64/Base64DataFormatConfigurer.java b/components/camel-base64/src/generated/java/org/apache/camel/dataformat/base64/Base64DataFormatConfigurer.java
index 1859a98b2b4..3f82cb48758 100644
--- a/components/camel-base64/src/generated/java/org/apache/camel/dataformat/base64/Base64DataFormatConfigurer.java
+++ b/components/camel-base64/src/generated/java/org/apache/camel/dataformat/base64/Base64DataFormatConfigurer.java
@@ -2,33 +2,76 @@
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.ExtendedPropertyConfigurerGetter;
+import org.apache.camel.spi.PropertyConfigurerGetter;
+import org.apache.camel.spi.ConfigurerStrategy;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
-import org.apache.camel.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.base64.Base64DataFormat;
/**
* 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 {
+public class Base64DataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("LineLength", int.class);
+ map.put("LineSeparator", byte[].class);
+ map.put("UrlSafe", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- Base64DataFormat dataformat = (Base64DataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ Base64DataFormat target = (Base64DataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "linelength":
- case "lineLength": dataformat.setLineLength(property(camelContext, int.class, value)); return true;
+ case "lineLength": target.setLineLength(property(camelContext, int.class, value)); return true;
case "lineseparator":
- case "lineSeparator": dataformat.setLineSeparator(property(camelContext, byte[].class, value)); return true;
+ case "lineSeparator": target.setLineSeparator(property(camelContext, byte[].class, value)); return true;
case "urlsafe":
- case "urlSafe": dataformat.setUrlSafe(property(camelContext, boolean.class, value)); return true;
+ case "urlSafe": target.setUrlSafe(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "linelength":
+ case "lineLength": return int.class;
+ case "lineseparator":
+ case "lineSeparator": return byte[].class;
+ case "urlsafe":
+ case "urlSafe": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ Base64DataFormat target = (Base64DataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "linelength":
+ case "lineLength": return target.getLineLength();
+ case "lineseparator":
+ case "lineSeparator": return target.getLineSeparator();
+ case "urlsafe":
+ case "urlSafe": return target.isUrlSafe();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-beanio/src/generated/java/org/apache/camel/dataformat/beanio/BeanIODataFormatConfigurer.java b/components/camel-beanio/src/generated/java/org/apache/camel/dataformat/beanio/BeanIODataFormatConfigurer.java
index 0b19289ada3..d8ba68a3627 100644
--- a/components/camel-beanio/src/generated/java/org/apache/camel/dataformat/beanio/BeanIODataFormatConfigurer.java
+++ b/components/camel-beanio/src/generated/java/org/apache/camel/dataformat/beanio/BeanIODataFormatConfigurer.java
@@ -2,41 +2,105 @@
package org.apache.camel.dataformat.beanio;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.beanio.BeanIODataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class BeanIODataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class BeanIODataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("BeanReaderErrorHandlerType", java.lang.String.class);
+ map.put("Encoding", java.nio.charset.Charset.class);
+ map.put("IgnoreInvalidRecords", boolean.class);
+ map.put("IgnoreUnexpectedRecords", boolean.class);
+ map.put("IgnoreUnidentifiedRecords", boolean.class);
+ map.put("Mapping", java.lang.String.class);
+ map.put("StreamName", java.lang.String.class);
+ map.put("UnmarshalSingleObject", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- BeanIODataFormat dataformat = (BeanIODataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ BeanIODataFormat target = (BeanIODataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "streamname":
- case "streamName": dataformat.setStreamName(property(camelContext, java.lang.String.class, value)); return true;
- case "mapping": dataformat.setMapping(property(camelContext, java.lang.String.class, value)); return true;
- case "ignoreunidentifiedrecords":
- case "ignoreUnidentifiedRecords": dataformat.setIgnoreUnidentifiedRecords(property(camelContext, boolean.class, value)); return true;
- case "ignoreunexpectedrecords":
- case "ignoreUnexpectedRecords": dataformat.setIgnoreUnexpectedRecords(property(camelContext, boolean.class, value)); return true;
- case "ignoreinvalidrecords":
- case "ignoreInvalidRecords": dataformat.setIgnoreInvalidRecords(property(camelContext, boolean.class, value)); return true;
- case "encoding": dataformat.setEncoding(property(camelContext, java.nio.charset.Charset.class, value)); return true;
case "beanreadererrorhandlertype":
- case "beanReaderErrorHandlerType": dataformat.setBeanReaderErrorHandlerType(property(camelContext, java.lang.String.class, value)); return true;
+ case "beanReaderErrorHandlerType": target.setBeanReaderErrorHandlerType(property(camelContext, java.lang.String.class, value)); return true;
+ case "encoding": target.setEncoding(property(camelContext, java.nio.charset.Charset.class, value)); return true;
+ case "ignoreinvalidrecords":
+ case "ignoreInvalidRecords": target.setIgnoreInvalidRecords(property(camelContext, boolean.class, value)); return true;
+ case "ignoreunexpectedrecords":
+ case "ignoreUnexpectedRecords": target.setIgnoreUnexpectedRecords(property(camelContext, boolean.class, value)); return true;
+ case "ignoreunidentifiedrecords":
+ case "ignoreUnidentifiedRecords": target.setIgnoreUnidentifiedRecords(property(camelContext, boolean.class, value)); return true;
+ case "mapping": target.setMapping(property(camelContext, java.lang.String.class, value)); return true;
+ case "streamname":
+ case "streamName": target.setStreamName(property(camelContext, java.lang.String.class, value)); return true;
case "unmarshalsingleobject":
- case "unmarshalSingleObject": dataformat.setUnmarshalSingleObject(property(camelContext, boolean.class, value)); return true;
+ case "unmarshalSingleObject": target.setUnmarshalSingleObject(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "beanreadererrorhandlertype":
+ case "beanReaderErrorHandlerType": return java.lang.String.class;
+ case "encoding": return java.nio.charset.Charset.class;
+ case "ignoreinvalidrecords":
+ case "ignoreInvalidRecords": return boolean.class;
+ case "ignoreunexpectedrecords":
+ case "ignoreUnexpectedRecords": return boolean.class;
+ case "ignoreunidentifiedrecords":
+ case "ignoreUnidentifiedRecords": return boolean.class;
+ case "mapping": return java.lang.String.class;
+ case "streamname":
+ case "streamName": return java.lang.String.class;
+ case "unmarshalsingleobject":
+ case "unmarshalSingleObject": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ BeanIODataFormat target = (BeanIODataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "beanreadererrorhandlertype":
+ case "beanReaderErrorHandlerType": return target.getBeanReaderErrorHandlerType();
+ case "encoding": return target.getEncoding();
+ case "ignoreinvalidrecords":
+ case "ignoreInvalidRecords": return target.isIgnoreInvalidRecords();
+ case "ignoreunexpectedrecords":
+ case "ignoreUnexpectedRecords": return target.isIgnoreUnexpectedRecords();
+ case "ignoreunidentifiedrecords":
+ case "ignoreUnidentifiedRecords": return target.isIgnoreUnidentifiedRecords();
+ case "mapping": return target.getMapping();
+ case "streamname":
+ case "streamName": return target.getStreamName();
+ case "unmarshalsingleobject":
+ case "unmarshalSingleObject": return target.isUnmarshalSingleObject();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-bindy/src/generated/java/org/apache/camel/dataformat/bindy/csv/BindyCsvDataFormatConfigurer.java b/components/camel-bindy/src/generated/java/org/apache/camel/dataformat/bindy/csv/BindyCsvDataFormatConfigurer.java
index d2db7f1fec0..2f61273de2c 100644
--- a/components/camel-bindy/src/generated/java/org/apache/camel/dataformat/bindy/csv/BindyCsvDataFormatConfigurer.java
+++ b/components/camel-bindy/src/generated/java/org/apache/camel/dataformat/bindy/csv/BindyCsvDataFormatConfigurer.java
@@ -2,34 +2,80 @@
package org.apache.camel.dataformat.bindy.csv;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class BindyCsvDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class BindyCsvDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("AllowEmptyStream", boolean.class);
+ map.put("ClassType", java.lang.Class.class);
+ map.put("Locale", java.lang.String.class);
+ map.put("UnwrapSingleInstance", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- BindyCsvDataFormat dataformat = (BindyCsvDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ BindyCsvDataFormat target = (BindyCsvDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "locale": dataformat.setLocale(property(camelContext, java.lang.String.class, value)); return true;
+ case "allowemptystream":
+ case "allowEmptyStream": target.setAllowEmptyStream(property(camelContext, boolean.class, value)); return true;
case "classtype":
- case "classType": dataformat.setClassType(property(camelContext, java.lang.Class.class, value)); return true;
+ case "classType": target.setClassType(property(camelContext, java.lang.Class.class, value)); return true;
+ case "locale": target.setLocale(property(camelContext, java.lang.String.class, value)); return true;
case "unwrapsingleinstance":
- case "unwrapSingleInstance": dataformat.setUnwrapSingleInstance(property(camelContext, boolean.class, value)); return true;
- case "allowemptystream":
- case "allowEmptyStream": dataformat.setAllowEmptyStream(property(camelContext, boolean.class, value)); return true;
+ case "unwrapSingleInstance": target.setUnwrapSingleInstance(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowemptystream":
+ case "allowEmptyStream": return boolean.class;
+ case "classtype":
+ case "classType": return java.lang.Class.class;
+ case "locale": return java.lang.String.class;
+ case "unwrapsingleinstance":
+ case "unwrapSingleInstance": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ BindyCsvDataFormat target = (BindyCsvDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowemptystream":
+ case "allowEmptyStream": return target.isAllowEmptyStream();
+ case "classtype":
+ case "classType": return target.getClassType();
+ case "locale": return target.getLocale();
+ case "unwrapsingleinstance":
+ case "unwrapSingleInstance": return target.isUnwrapSingleInstance();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-bindy/src/generated/java/org/apache/camel/dataformat/bindy/fixed/BindyFixedLengthDataFormatConfigurer.java b/components/camel-bindy/src/generated/java/org/apache/camel/dataformat/bindy/fixed/BindyFixedLengthDataFormatConfigurer.java
index 66057cece5b..206c5502778 100644
--- a/components/camel-bindy/src/generated/java/org/apache/camel/dataformat/bindy/fixed/BindyFixedLengthDataFormatConfigurer.java
+++ b/components/camel-bindy/src/generated/java/org/apache/camel/dataformat/bindy/fixed/BindyFixedLengthDataFormatConfigurer.java
@@ -2,34 +2,80 @@
package org.apache.camel.dataformat.bindy.fixed;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.bindy.fixed.BindyFixedLengthDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class BindyFixedLengthDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class BindyFixedLengthDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("AllowEmptyStream", boolean.class);
+ map.put("ClassType", java.lang.Class.class);
+ map.put("Locale", java.lang.String.class);
+ map.put("UnwrapSingleInstance", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- BindyFixedLengthDataFormat dataformat = (BindyFixedLengthDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ BindyFixedLengthDataFormat target = (BindyFixedLengthDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "locale": dataformat.setLocale(property(camelContext, java.lang.String.class, value)); return true;
+ case "allowemptystream":
+ case "allowEmptyStream": target.setAllowEmptyStream(property(camelContext, boolean.class, value)); return true;
case "classtype":
- case "classType": dataformat.setClassType(property(camelContext, java.lang.Class.class, value)); return true;
+ case "classType": target.setClassType(property(camelContext, java.lang.Class.class, value)); return true;
+ case "locale": target.setLocale(property(camelContext, java.lang.String.class, value)); return true;
case "unwrapsingleinstance":
- case "unwrapSingleInstance": dataformat.setUnwrapSingleInstance(property(camelContext, boolean.class, value)); return true;
- case "allowemptystream":
- case "allowEmptyStream": dataformat.setAllowEmptyStream(property(camelContext, boolean.class, value)); return true;
+ case "unwrapSingleInstance": target.setUnwrapSingleInstance(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowemptystream":
+ case "allowEmptyStream": return boolean.class;
+ case "classtype":
+ case "classType": return java.lang.Class.class;
+ case "locale": return java.lang.String.class;
+ case "unwrapsingleinstance":
+ case "unwrapSingleInstance": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ BindyFixedLengthDataFormat target = (BindyFixedLengthDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowemptystream":
+ case "allowEmptyStream": return target.isAllowEmptyStream();
+ case "classtype":
+ case "classType": return target.getClassType();
+ case "locale": return target.getLocale();
+ case "unwrapsingleinstance":
+ case "unwrapSingleInstance": return target.isUnwrapSingleInstance();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-bindy/src/generated/java/org/apache/camel/dataformat/bindy/kvp/BindyKeyValuePairDataFormatConfigurer.java b/components/camel-bindy/src/generated/java/org/apache/camel/dataformat/bindy/kvp/BindyKeyValuePairDataFormatConfigurer.java
index 6585a658920..61af16f2c6b 100644
--- a/components/camel-bindy/src/generated/java/org/apache/camel/dataformat/bindy/kvp/BindyKeyValuePairDataFormatConfigurer.java
+++ b/components/camel-bindy/src/generated/java/org/apache/camel/dataformat/bindy/kvp/BindyKeyValuePairDataFormatConfigurer.java
@@ -2,34 +2,80 @@
package org.apache.camel.dataformat.bindy.kvp;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.bindy.kvp.BindyKeyValuePairDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class BindyKeyValuePairDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class BindyKeyValuePairDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("AllowEmptyStream", boolean.class);
+ map.put("ClassType", java.lang.Class.class);
+ map.put("Locale", java.lang.String.class);
+ map.put("UnwrapSingleInstance", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- BindyKeyValuePairDataFormat dataformat = (BindyKeyValuePairDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ BindyKeyValuePairDataFormat target = (BindyKeyValuePairDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "locale": dataformat.setLocale(property(camelContext, java.lang.String.class, value)); return true;
+ case "allowemptystream":
+ case "allowEmptyStream": target.setAllowEmptyStream(property(camelContext, boolean.class, value)); return true;
case "classtype":
- case "classType": dataformat.setClassType(property(camelContext, java.lang.Class.class, value)); return true;
+ case "classType": target.setClassType(property(camelContext, java.lang.Class.class, value)); return true;
+ case "locale": target.setLocale(property(camelContext, java.lang.String.class, value)); return true;
case "unwrapsingleinstance":
- case "unwrapSingleInstance": dataformat.setUnwrapSingleInstance(property(camelContext, boolean.class, value)); return true;
- case "allowemptystream":
- case "allowEmptyStream": dataformat.setAllowEmptyStream(property(camelContext, boolean.class, value)); return true;
+ case "unwrapSingleInstance": target.setUnwrapSingleInstance(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowemptystream":
+ case "allowEmptyStream": return boolean.class;
+ case "classtype":
+ case "classType": return java.lang.Class.class;
+ case "locale": return java.lang.String.class;
+ case "unwrapsingleinstance":
+ case "unwrapSingleInstance": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ BindyKeyValuePairDataFormat target = (BindyKeyValuePairDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowemptystream":
+ case "allowEmptyStream": return target.isAllowEmptyStream();
+ case "classtype":
+ case "classType": return target.getClassType();
+ case "locale": return target.getLocale();
+ case "unwrapsingleinstance":
+ case "unwrapSingleInstance": return target.isUnwrapSingleInstance();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-cbor/src/generated/java/org/apache/camel/component/cbor/CBORDataFormatConfigurer.java b/components/camel-cbor/src/generated/java/org/apache/camel/component/cbor/CBORDataFormatConfigurer.java
index d847c366a74..e88c0e52364 100644
--- a/components/camel-cbor/src/generated/java/org/apache/camel/component/cbor/CBORDataFormatConfigurer.java
+++ b/components/camel-cbor/src/generated/java/org/apache/camel/component/cbor/CBORDataFormatConfigurer.java
@@ -2,47 +2,125 @@
package org.apache.camel.component.cbor;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.component.cbor.CBORDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class CBORDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class CBORDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("AllowJmsType", boolean.class);
+ map.put("AllowUnmarshallType", boolean.class);
+ map.put("CollectionType", java.lang.Class.class);
+ map.put("DisableFeatures", java.lang.String.class);
+ map.put("EnableFeatures", java.lang.String.class);
+ map.put("ObjectMapper", com.fasterxml.jackson.databind.ObjectMapper.class);
+ map.put("PrettyPrint", boolean.class);
+ map.put("UnmarshalType", java.lang.Class.class);
+ map.put("UseDefaultObjectMapper", boolean.class);
+ map.put("UseList", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- CBORDataFormat dataformat = (CBORDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ CBORDataFormat target = (CBORDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowjmstype":
+ case "allowJmsType": target.setAllowJmsType(property(camelContext, boolean.class, value)); return true;
+ case "allowunmarshalltype":
+ case "allowUnmarshallType": target.setAllowUnmarshallType(property(camelContext, boolean.class, value)); return true;
+ case "collectiontype":
+ case "collectionType": target.setCollectionType(property(camelContext, java.lang.Class.class, value)); return true;
+ case "disablefeatures":
+ case "disableFeatures": target.setDisableFeatures(property(camelContext, java.lang.String.class, value)); return true;
+ case "enablefeatures":
+ case "enableFeatures": target.setEnableFeatures(property(camelContext, java.lang.String.class, value)); return true;
case "objectmapper":
- case "objectMapper": dataformat.setObjectMapper(property(camelContext, com.fasterxml.jackson.databind.ObjectMapper.class, value)); return true;
+ case "objectMapper": target.setObjectMapper(property(camelContext, com.fasterxml.jackson.databind.ObjectMapper.class, value)); return true;
+ case "prettyprint":
+ case "prettyPrint": target.setPrettyPrint(property(camelContext, boolean.class, value)); return true;
case "unmarshaltype":
- case "unmarshalType": dataformat.setUnmarshalType(property(camelContext, java.lang.Class.class, value)); return true;
+ case "unmarshalType": target.setUnmarshalType(property(camelContext, java.lang.Class.class, value)); return true;
case "usedefaultobjectmapper":
- case "useDefaultObjectMapper": dataformat.setUseDefaultObjectMapper(property(camelContext, boolean.class, value)); return true;
+ case "useDefaultObjectMapper": target.setUseDefaultObjectMapper(property(camelContext, boolean.class, value)); return true;
+ case "uselist":
+ case "useList": target.setUseList(property(camelContext, boolean.class, value)); return true;
+ default: return false;
+ }
+ }
+
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowjmstype":
+ case "allowJmsType": return boolean.class;
case "allowunmarshalltype":
- case "allowUnmarshallType": dataformat.setAllowUnmarshallType(property(camelContext, boolean.class, value)); return true;
+ case "allowUnmarshallType": return boolean.class;
case "collectiontype":
- case "collectionType": dataformat.setCollectionType(property(camelContext, java.lang.Class.class, value)); return true;
- case "uselist":
- case "useList": dataformat.setUseList(property(camelContext, boolean.class, value)); return true;
+ case "collectionType": return java.lang.Class.class;
+ case "disablefeatures":
+ case "disableFeatures": return java.lang.String.class;
+ case "enablefeatures":
+ case "enableFeatures": return java.lang.String.class;
+ case "objectmapper":
+ case "objectMapper": return com.fasterxml.jackson.databind.ObjectMapper.class;
case "prettyprint":
- case "prettyPrint": dataformat.setPrettyPrint(property(camelContext, boolean.class, value)); return true;
+ case "prettyPrint": return boolean.class;
+ case "unmarshaltype":
+ case "unmarshalType": return java.lang.Class.class;
+ case "usedefaultobjectmapper":
+ case "useDefaultObjectMapper": return boolean.class;
+ case "uselist":
+ case "useList": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ CBORDataFormat target = (CBORDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
case "allowjmstype":
- case "allowJmsType": dataformat.setAllowJmsType(property(camelContext, boolean.class, value)); return true;
- case "enablefeatures":
- case "enableFeatures": dataformat.setEnableFeatures(property(camelContext, java.lang.String.class, value)); return true;
+ case "allowJmsType": return target.isAllowJmsType();
+ case "allowunmarshalltype":
+ case "allowUnmarshallType": return target.isAllowUnmarshallType();
+ case "collectiontype":
+ case "collectionType": return target.getCollectionType();
case "disablefeatures":
- case "disableFeatures": dataformat.setDisableFeatures(property(camelContext, java.lang.String.class, value)); return true;
- default: return false;
+ case "disableFeatures": return target.getDisableFeatures();
+ case "enablefeatures":
+ case "enableFeatures": return target.getEnableFeatures();
+ case "objectmapper":
+ case "objectMapper": return target.getObjectMapper();
+ case "prettyprint":
+ case "prettyPrint": return target.isPrettyPrint();
+ case "unmarshaltype":
+ case "unmarshalType": return target.getUnmarshalType();
+ case "usedefaultobjectmapper":
+ case "useDefaultObjectMapper": return target.isUseDefaultObjectMapper();
+ case "uselist":
+ case "useList": return target.isUseList();
+ default: return null;
}
}
-
}
diff --git a/components/camel-crypto-pgp/src/generated/java/org/apache/camel/converter/crypto/PGPDataFormatConfigurer.java b/components/camel-crypto-pgp/src/generated/java/org/apache/camel/converter/crypto/PGPDataFormatConfigurer.java
index 0f88f6da1cc..782ef7a179c 100644
--- a/components/camel-crypto-pgp/src/generated/java/org/apache/camel/converter/crypto/PGPDataFormatConfigurer.java
+++ b/components/camel-crypto-pgp/src/generated/java/org/apache/camel/converter/crypto/PGPDataFormatConfigurer.java
@@ -2,50 +2,138 @@
package org.apache.camel.converter.crypto;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.converter.crypto.PGPDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class PGPDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class PGPDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("Algorithm", int.class);
+ map.put("Armored", boolean.class);
+ map.put("CompressionAlgorithm", int.class);
+ map.put("HashAlgorithm", int.class);
+ map.put("Integrity", boolean.class);
+ map.put("KeyFileName", java.lang.String.class);
+ map.put("KeyUserid", java.lang.String.class);
+ map.put("Password", java.lang.String.class);
+ map.put("Provider", java.lang.String.class);
+ map.put("SignatureKeyFileName", java.lang.String.class);
+ map.put("SignatureKeyRing", byte[].class);
+ map.put("SignatureKeyUserid", java.lang.String.class);
+ map.put("SignaturePassword", java.lang.String.class);
+ map.put("SignatureVerificationOption", java.lang.String.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- PGPDataFormat dataformat = (PGPDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ PGPDataFormat target = (PGPDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "password": dataformat.setPassword(property(camelContext, java.lang.String.class, value)); return true;
+ case "algorithm": target.setAlgorithm(property(camelContext, int.class, value)); return true;
+ case "armored": target.setArmored(property(camelContext, boolean.class, value)); return true;
+ case "compressionalgorithm":
+ case "compressionAlgorithm": target.setCompressionAlgorithm(property(camelContext, int.class, value)); return true;
+ case "hashalgorithm":
+ case "hashAlgorithm": target.setHashAlgorithm(property(camelContext, int.class, value)); return true;
+ case "integrity": target.setIntegrity(property(camelContext, boolean.class, value)); return true;
case "keyfilename":
- case "keyFileName": dataformat.setKeyFileName(property(camelContext, java.lang.String.class, value)); return true;
- case "signaturepassword":
- case "signaturePassword": dataformat.setSignaturePassword(property(camelContext, java.lang.String.class, value)); return true;
+ case "keyFileName": target.setKeyFileName(property(camelContext, java.lang.String.class, value)); return true;
+ case "keyuserid":
+ case "keyUserid": target.setKeyUserid(property(camelContext, java.lang.String.class, value)); return true;
+ case "password": target.setPassword(property(camelContext, java.lang.String.class, value)); return true;
+ case "provider": target.setProvider(property(camelContext, java.lang.String.class, value)); return true;
case "signaturekeyfilename":
- case "signatureKeyFileName": dataformat.setSignatureKeyFileName(property(camelContext, java.lang.String.class, value)); return true;
+ case "signatureKeyFileName": target.setSignatureKeyFileName(property(camelContext, java.lang.String.class, value)); return true;
case "signaturekeyring":
- case "signatureKeyRing": dataformat.setSignatureKeyRing(property(camelContext, byte[].class, value)); return true;
- case "provider": dataformat.setProvider(property(camelContext, java.lang.String.class, value)); return true;
- case "keyuserid":
- case "keyUserid": dataformat.setKeyUserid(property(camelContext, java.lang.String.class, value)); return true;
+ case "signatureKeyRing": target.setSignatureKeyRing(property(camelContext, byte[].class, value)); return true;
case "signaturekeyuserid":
- case "signatureKeyUserid": dataformat.setSignatureKeyUserid(property(camelContext, java.lang.String.class, value)); return true;
- case "armored": dataformat.setArmored(property(camelContext, boolean.class, value)); return true;
- case "integrity": dataformat.setIntegrity(property(camelContext, boolean.class, value)); return true;
- case "hashalgorithm":
- case "hashAlgorithm": dataformat.setHashAlgorithm(property(camelContext, int.class, value)); return true;
- case "algorithm": dataformat.setAlgorithm(property(camelContext, int.class, value)); return true;
- case "compressionalgorithm":
- case "compressionAlgorithm": dataformat.setCompressionAlgorithm(property(camelContext, int.class, value)); return true;
+ case "signatureKeyUserid": target.setSignatureKeyUserid(property(camelContext, java.lang.String.class, value)); return true;
+ case "signaturepassword":
+ case "signaturePassword": target.setSignaturePassword(property(camelContext, java.lang.String.class, value)); return true;
case "signatureverificationoption":
- case "signatureVerificationOption": dataformat.setSignatureVerificationOption(property(camelContext, java.lang.String.class, value)); return true;
+ case "signatureVerificationOption": target.setSignatureVerificationOption(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "algorithm": return int.class;
+ case "armored": return boolean.class;
+ case "compressionalgorithm":
+ case "compressionAlgorithm": return int.class;
+ case "hashalgorithm":
+ case "hashAlgorithm": return int.class;
+ case "integrity": return boolean.class;
+ case "keyfilename":
+ case "keyFileName": return java.lang.String.class;
+ case "keyuserid":
+ case "keyUserid": return java.lang.String.class;
+ case "password": return java.lang.String.class;
+ case "provider": return java.lang.String.class;
+ case "signaturekeyfilename":
+ case "signatureKeyFileName": return java.lang.String.class;
+ case "signaturekeyring":
+ case "signatureKeyRing": return byte[].class;
+ case "signaturekeyuserid":
+ case "signatureKeyUserid": return java.lang.String.class;
+ case "signaturepassword":
+ case "signaturePassword": return java.lang.String.class;
+ case "signatureverificationoption":
+ case "signatureVerificationOption": return java.lang.String.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ PGPDataFormat target = (PGPDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "algorithm": return target.getAlgorithm();
+ case "armored": return target.isArmored();
+ case "compressionalgorithm":
+ case "compressionAlgorithm": return target.getCompressionAlgorithm();
+ case "hashalgorithm":
+ case "hashAlgorithm": return target.getHashAlgorithm();
+ case "integrity": return target.isIntegrity();
+ case "keyfilename":
+ case "keyFileName": return target.getKeyFileName();
+ case "keyuserid":
+ case "keyUserid": return target.getKeyUserid();
+ case "password": return target.getPassword();
+ case "provider": return target.getProvider();
+ case "signaturekeyfilename":
+ case "signatureKeyFileName": return target.getSignatureKeyFileName();
+ case "signaturekeyring":
+ case "signatureKeyRing": return target.getSignatureKeyRing();
+ case "signaturekeyuserid":
+ case "signatureKeyUserid": return target.getSignatureKeyUserid();
+ case "signaturepassword":
+ case "signaturePassword": return target.getSignaturePassword();
+ case "signatureverificationoption":
+ case "signatureVerificationOption": return target.getSignatureVerificationOption();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-crypto-pgp/src/main/java/org/apache/camel/converter/crypto/PGPKeyAccessDataFormat.java b/components/camel-crypto-pgp/src/main/java/org/apache/camel/converter/crypto/PGPKeyAccessDataFormat.java
index 639f1710ba6..36fca4cee3b 100644
--- a/components/camel-crypto-pgp/src/main/java/org/apache/camel/converter/crypto/PGPKeyAccessDataFormat.java
+++ b/components/camel-crypto-pgp/src/main/java/org/apache/camel/converter/crypto/PGPKeyAccessDataFormat.java
@@ -542,7 +542,7 @@ public class PGPKeyAccessDataFormat extends ServiceSupport implements DataFormat
this.armored = armored;
}
- public boolean getArmored() {
+ public boolean isArmored() {
return this.armored;
}
@@ -553,7 +553,7 @@ public class PGPKeyAccessDataFormat extends ServiceSupport implements DataFormat
this.integrity = integrity;
}
- public boolean getIntegrity() {
+ public boolean isIntegrity() {
return this.integrity;
}
diff --git a/components/camel-crypto/src/generated/java/org/apache/camel/converter/crypto/CryptoDataFormatConfigurer.java b/components/camel-crypto/src/generated/java/org/apache/camel/converter/crypto/CryptoDataFormatConfigurer.java
index 85e9b5e3e5f..2890ab4353e 100644
--- a/components/camel-crypto/src/generated/java/org/apache/camel/converter/crypto/CryptoDataFormatConfigurer.java
+++ b/components/camel-crypto/src/generated/java/org/apache/camel/converter/crypto/CryptoDataFormatConfigurer.java
@@ -2,36 +2,87 @@
package org.apache.camel.converter.crypto;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.converter.crypto.CryptoDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class CryptoDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class CryptoDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("Algorithm", java.lang.String.class);
+ map.put("BufferSize", int.class);
+ map.put("CryptoProvider", java.lang.String.class);
+ map.put("MacAlgorithm", java.lang.String.class);
+ map.put("ShouldAppendHMAC", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- CryptoDataFormat dataformat = (CryptoDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ CryptoDataFormat target = (CryptoDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "algorithm": dataformat.setAlgorithm(property(camelContext, java.lang.String.class, value)); return true;
- case "cryptoprovider":
- case "cryptoProvider": dataformat.setCryptoProvider(property(camelContext, java.lang.String.class, value)); return true;
+ case "algorithm": target.setAlgorithm(property(camelContext, java.lang.String.class, value)); return true;
case "buffersize":
- case "bufferSize": dataformat.setBufferSize(property(camelContext, int.class, value)); return true;
+ case "bufferSize": target.setBufferSize(property(camelContext, int.class, value)); return true;
+ case "cryptoprovider":
+ case "cryptoProvider": target.setCryptoProvider(property(camelContext, java.lang.String.class, value)); return true;
case "macalgorithm":
- case "macAlgorithm": dataformat.setMacAlgorithm(property(camelContext, java.lang.String.class, value)); return true;
+ case "macAlgorithm": target.setMacAlgorithm(property(camelContext, java.lang.String.class, value)); return true;
case "shouldappendhmac":
- case "shouldAppendHMAC": dataformat.setShouldAppendHMAC(property(camelContext, boolean.class, value)); return true;
+ case "shouldAppendHMAC": target.setShouldAppendHMAC(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "algorithm": return java.lang.String.class;
+ case "buffersize":
+ case "bufferSize": return int.class;
+ case "cryptoprovider":
+ case "cryptoProvider": return java.lang.String.class;
+ case "macalgorithm":
+ case "macAlgorithm": return java.lang.String.class;
+ case "shouldappendhmac":
+ case "shouldAppendHMAC": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ CryptoDataFormat target = (CryptoDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "algorithm": return target.getAlgorithm();
+ case "buffersize":
+ case "bufferSize": return target.getBufferSize();
+ case "cryptoprovider":
+ case "cryptoProvider": return target.getCryptoProvider();
+ case "macalgorithm":
+ case "macAlgorithm": return target.getMacAlgorithm();
+ case "shouldappendhmac":
+ case "shouldAppendHMAC": return target.isShouldAppendHMAC();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/CryptoDataFormat.java b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/CryptoDataFormat.java
index b5f9ac1f085..1fbb1ddd138 100644
--- a/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/CryptoDataFormat.java
+++ b/components/camel-crypto/src/main/java/org/apache/camel/converter/crypto/CryptoDataFormat.java
@@ -283,6 +283,10 @@ public class CryptoDataFormat extends ServiceSupport implements DataFormat, Data
this.inline = inline;
}
+ public String getAlgorithm() {
+ return algorithm;
+ }
+
/**
* Sets the JCE name of the Encryption Algorithm that should be used
*/
@@ -298,6 +302,10 @@ public class CryptoDataFormat extends ServiceSupport implements DataFormat, Data
this.parameterSpec = parameterSpec;
}
+ public String getCryptoProvider() {
+ return cryptoProvider;
+ }
+
/**
* Sets the name of the JCE provider e.g. SUN or BC for Bouncy
*/
@@ -305,6 +313,10 @@ public class CryptoDataFormat extends ServiceSupport implements DataFormat, Data
this.cryptoProvider = cryptoProvider;
}
+ public String getMacAlgorithm() {
+ return macAlgorithm;
+ }
+
/**
* Sets the algorithm used to create the Hash-based Message Authentication Code (HMAC) appended to the stream.
*/
@@ -312,6 +324,10 @@ public class CryptoDataFormat extends ServiceSupport implements DataFormat, Data
this.macAlgorithm = macAlgorithm;
}
+ public boolean isShouldAppendHMAC() {
+ return shouldAppendHMAC;
+ }
+
/**
* Whether a Hash-based Message Authentication Code (HMAC) should be calculated and appended to the stream.
*/
@@ -326,6 +342,10 @@ public class CryptoDataFormat extends ServiceSupport implements DataFormat, Data
this.configuredkey = key;
}
+ public int getBufferSize() {
+ return bufferSize;
+ }
+
/**
* Set the size of the buffer used to
*/
diff --git a/components/camel-csv/src/generated/java/org/apache/camel/dataformat/csv/CsvDataFormatConfigurer.java b/components/camel-csv/src/generated/java/org/apache/camel/dataformat/csv/CsvDataFormatConfigurer.java
index ca00aa5506d..4976280976f 100644
--- a/components/camel-csv/src/generated/java/org/apache/camel/dataformat/csv/CsvDataFormatConfigurer.java
+++ b/components/camel-csv/src/generated/java/org/apache/camel/dataformat/csv/CsvDataFormatConfigurer.java
@@ -2,72 +2,215 @@
package org.apache.camel.dataformat.csv;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.csv.CsvDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class CsvDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class CsvDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("AllowMissingColumnNames", java.lang.Boolean.class);
+ map.put("CaptureHeaderRecord", boolean.class);
+ map.put("CommentMarker", java.lang.Character.class);
+ map.put("CommentMarkerDisabled", boolean.class);
+ map.put("Delimiter", java.lang.Character.class);
+ map.put("Escape", java.lang.Character.class);
+ map.put("EscapeDisabled", boolean.class);
+ map.put("Header", java.lang.String.class);
+ map.put("HeaderDisabled", boolean.class);
+ map.put("IgnoreEmptyLines", java.lang.Boolean.class);
+ map.put("IgnoreHeaderCase", java.lang.Boolean.class);
+ map.put("IgnoreSurroundingSpaces", java.lang.Boolean.class);
+ map.put("LazyLoad", boolean.class);
+ map.put("NullString", java.lang.String.class);
+ map.put("NullStringDisabled", boolean.class);
+ map.put("Quote", java.lang.Character.class);
+ map.put("QuoteDisabled", boolean.class);
+ map.put("QuoteMode", org.apache.commons.csv.QuoteMode.class);
+ map.put("RecordSeparator", java.lang.String.class);
+ map.put("RecordSeparatorDisabled", boolean.class);
+ map.put("SkipHeaderRecord", java.lang.Boolean.class);
+ map.put("TrailingDelimiter", java.lang.Boolean.class);
+ map.put("Trim", java.lang.Boolean.class);
+ map.put("UseMaps", boolean.class);
+ map.put("UseOrderedMaps", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- CsvDataFormat dataformat = (CsvDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ CsvDataFormat target = (CsvDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "commentmarkerdisabled":
- case "commentMarkerDisabled": dataformat.setCommentMarkerDisabled(property(camelContext, boolean.class, value)); return true;
+ case "allowmissingcolumnnames":
+ case "allowMissingColumnNames": target.setAllowMissingColumnNames(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "captureheaderrecord":
+ case "captureHeaderRecord": target.setCaptureHeaderRecord(property(camelContext, boolean.class, value)); return true;
case "commentmarker":
- case "commentMarker": dataformat.setCommentMarker(property(camelContext, java.lang.Character.class, value)); return true;
- case "delimiter": dataformat.setDelimiter(property(camelContext, java.lang.Character.class, value)); return true;
+ case "commentMarker": target.setCommentMarker(property(camelContext, java.lang.Character.class, value)); return true;
+ case "commentmarkerdisabled":
+ case "commentMarkerDisabled": target.setCommentMarkerDisabled(property(camelContext, boolean.class, value)); return true;
+ case "delimiter": target.setDelimiter(property(camelContext, java.lang.Character.class, value)); return true;
+ case "escape": target.setEscape(property(camelContext, java.lang.Character.class, value)); return true;
case "escapedisabled":
- case "escapeDisabled": dataformat.setEscapeDisabled(property(camelContext, boolean.class, value)); return true;
- case "escape": dataformat.setEscape(property(camelContext, java.lang.Character.class, value)); return true;
+ case "escapeDisabled": target.setEscapeDisabled(property(camelContext, boolean.class, value)); return true;
+ case "header": target.setHeader(property(camelContext, java.lang.String.class, value)); return true;
case "headerdisabled":
- case "headerDisabled": dataformat.setHeaderDisabled(property(camelContext, boolean.class, value)); return true;
- case "header": dataformat.setHeader(property(camelContext, java.lang.String.class, value)); return true;
- case "allowmissingcolumnnames":
- case "allowMissingColumnNames": dataformat.setAllowMissingColumnNames(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "headerDisabled": target.setHeaderDisabled(property(camelContext, boolean.class, value)); return true;
case "ignoreemptylines":
- case "ignoreEmptyLines": dataformat.setIgnoreEmptyLines(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "ignoreEmptyLines": target.setIgnoreEmptyLines(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "ignoreheadercase":
+ case "ignoreHeaderCase": target.setIgnoreHeaderCase(property(camelContext, java.lang.Boolean.class, value)); return true;
case "ignoresurroundingspaces":
- case "ignoreSurroundingSpaces": dataformat.setIgnoreSurroundingSpaces(property(camelContext, java.lang.Boolean.class, value)); return true;
- case "nullstringdisabled":
- case "nullStringDisabled": dataformat.setNullStringDisabled(property(camelContext, boolean.class, value)); return true;
+ case "ignoreSurroundingSpaces": target.setIgnoreSurroundingSpaces(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "lazyload":
+ case "lazyLoad": target.setLazyLoad(property(camelContext, boolean.class, value)); return true;
case "nullstring":
- case "nullString": dataformat.setNullString(property(camelContext, java.lang.String.class, value)); return true;
+ case "nullString": target.setNullString(property(camelContext, java.lang.String.class, value)); return true;
+ case "nullstringdisabled":
+ case "nullStringDisabled": target.setNullStringDisabled(property(camelContext, boolean.class, value)); return true;
+ case "quote": target.setQuote(property(camelContext, java.lang.Character.class, value)); return true;
case "quotedisabled":
- case "quoteDisabled": dataformat.setQuoteDisabled(property(camelContext, boolean.class, value)); return true;
- case "quote": dataformat.setQuote(property(camelContext, java.lang.Character.class, value)); return true;
+ case "quoteDisabled": target.setQuoteDisabled(property(camelContext, boolean.class, value)); return true;
case "quotemode":
- case "quoteMode": dataformat.setQuoteMode(property(camelContext, org.apache.commons.csv.QuoteMode.class, value)); return true;
- case "recordseparatordisabled":
- case "recordSeparatorDisabled": dataformat.setRecordSeparatorDisabled(property(camelContext, boolean.class, value)); return true;
+ case "quoteMode": target.setQuoteMode(property(camelContext, org.apache.commons.csv.QuoteMode.class, value)); return true;
case "recordseparator":
- case "recordSeparator": dataformat.setRecordSeparator(property(camelContext, java.lang.String.class, value)); return true;
+ case "recordSeparator": target.setRecordSeparator(property(camelContext, java.lang.String.class, value)); return true;
+ case "recordseparatordisabled":
+ case "recordSeparatorDisabled": target.setRecordSeparatorDisabled(property(camelContext, boolean.class, value)); return true;
case "skipheaderrecord":
- case "skipHeaderRecord": dataformat.setSkipHeaderRecord(property(camelContext, java.lang.Boolean.class, value)); return true;
- case "trim": dataformat.setTrim(property(camelContext, java.lang.Boolean.class, value)); return true;
- case "ignoreheadercase":
- case "ignoreHeaderCase": dataformat.setIgnoreHeaderCase(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "skipHeaderRecord": target.setSkipHeaderRecord(property(camelContext, java.lang.Boolean.class, value)); return true;
case "trailingdelimiter":
- case "trailingDelimiter": dataformat.setTrailingDelimiter(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "trailingDelimiter": target.setTrailingDelimiter(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "trim": target.setTrim(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "usemaps":
+ case "useMaps": target.setUseMaps(property(camelContext, boolean.class, value)); return true;
+ case "useorderedmaps":
+ case "useOrderedMaps": target.setUseOrderedMaps(property(camelContext, boolean.class, value)); return true;
+ default: return false;
+ }
+ }
+
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowmissingcolumnnames":
+ case "allowMissingColumnNames": return java.lang.Boolean.class;
case "captureheaderrecord":
- case "captureHeaderRecord": dataformat.setCaptureHeaderRecord(property(camelContext, boolean.class, value)); return true;
+ case "captureHeaderRecord": return boolean.class;
+ case "commentmarker":
+ case "commentMarker": return java.lang.Character.class;
+ case "commentmarkerdisabled":
+ case "commentMarkerDisabled": return boolean.class;
+ case "delimiter": return java.lang.Character.class;
+ case "escape": return java.lang.Character.class;
+ case "escapedisabled":
+ case "escapeDisabled": return boolean.class;
+ case "header": return java.lang.String.class;
+ case "headerdisabled":
+ case "headerDisabled": return boolean.class;
+ case "ignoreemptylines":
+ case "ignoreEmptyLines": return java.lang.Boolean.class;
+ case "ignoreheadercase":
+ case "ignoreHeaderCase": return java.lang.Boolean.class;
+ case "ignoresurroundingspaces":
+ case "ignoreSurroundingSpaces": return java.lang.Boolean.class;
case "lazyload":
- case "lazyLoad": dataformat.setLazyLoad(property(camelContext, boolean.class, value)); return true;
+ case "lazyLoad": return boolean.class;
+ case "nullstring":
+ case "nullString": return java.lang.String.class;
+ case "nullstringdisabled":
+ case "nullStringDisabled": return boolean.class;
+ case "quote": return java.lang.Character.class;
+ case "quotedisabled":
+ case "quoteDisabled": return boolean.class;
+ case "quotemode":
+ case "quoteMode": return org.apache.commons.csv.QuoteMode.class;
+ case "recordseparator":
+ case "recordSeparator": return java.lang.String.class;
+ case "recordseparatordisabled":
+ case "recordSeparatorDisabled": return boolean.class;
+ case "skipheaderrecord":
+ case "skipHeaderRecord": return java.lang.Boolean.class;
+ case "trailingdelimiter":
+ case "trailingDelimiter": return java.lang.Boolean.class;
+ case "trim": return java.lang.Boolean.class;
case "usemaps":
- case "useMaps": dataformat.setUseMaps(property(camelContext, boolean.class, value)); return true;
+ case "useMaps": return boolean.class;
case "useorderedmaps":
- case "useOrderedMaps": dataformat.setUseOrderedMaps(property(camelContext, boolean.class, value)); return true;
- default: return false;
+ case "useOrderedMaps": return boolean.class;
+ default: return null;
}
}
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ CsvDataFormat target = (CsvDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowmissingcolumnnames":
+ case "allowMissingColumnNames": return target.getAllowMissingColumnNames();
+ case "captureheaderrecord":
+ case "captureHeaderRecord": return target.isCaptureHeaderRecord();
+ case "commentmarker":
+ case "commentMarker": return target.getCommentMarker();
+ case "commentmarkerdisabled":
+ case "commentMarkerDisabled": return target.isCommentMarkerDisabled();
+ case "delimiter": return target.getDelimiter();
+ case "escape": return target.getEscape();
+ case "escapedisabled":
+ case "escapeDisabled": return target.isEscapeDisabled();
+ case "header": return target.getHeader();
+ case "headerdisabled":
+ case "headerDisabled": return target.isHeaderDisabled();
+ case "ignoreemptylines":
+ case "ignoreEmptyLines": return target.getIgnoreEmptyLines();
+ case "ignoreheadercase":
+ case "ignoreHeaderCase": return target.getIgnoreHeaderCase();
+ case "ignoresurroundingspaces":
+ case "ignoreSurroundingSpaces": return target.getIgnoreSurroundingSpaces();
+ case "lazyload":
+ case "lazyLoad": return target.isLazyLoad();
+ case "nullstring":
+ case "nullString": return target.getNullString();
+ case "nullstringdisabled":
+ case "nullStringDisabled": return target.isNullStringDisabled();
+ case "quote": return target.getQuote();
+ case "quotedisabled":
+ case "quoteDisabled": return target.isQuoteDisabled();
+ case "quotemode":
+ case "quoteMode": return target.getQuoteMode();
+ case "recordseparator":
+ case "recordSeparator": return target.getRecordSeparator();
+ case "recordseparatordisabled":
+ case "recordSeparatorDisabled": return target.isRecordSeparatorDisabled();
+ case "skipheaderrecord":
+ case "skipHeaderRecord": return target.getSkipHeaderRecord();
+ case "trailingdelimiter":
+ case "trailingDelimiter": return target.getTrailingDelimiter();
+ case "trim": return target.getTrim();
+ case "usemaps":
+ case "useMaps": return target.isUseMaps();
+ case "useorderedmaps":
+ case "useOrderedMaps": return target.isUseOrderedMaps();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-dfdl/src/generated/java/org/apache/camel/dataformat/dfdl/DfdlDataFormatConfigurer.java b/components/camel-dfdl/src/generated/java/org/apache/camel/dataformat/dfdl/DfdlDataFormatConfigurer.java
index 6e5bbd2d9d3..2fbe0b34e41 100644
--- a/components/camel-dfdl/src/generated/java/org/apache/camel/dataformat/dfdl/DfdlDataFormatConfigurer.java
+++ b/components/camel-dfdl/src/generated/java/org/apache/camel/dataformat/dfdl/DfdlDataFormatConfigurer.java
@@ -2,33 +2,76 @@
package org.apache.camel.dataformat.dfdl;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.dfdl.DfdlDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class DfdlDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class DfdlDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("RootElement", java.lang.String.class);
+ map.put("RootNamespace", java.lang.String.class);
+ map.put("SchemaUri", java.lang.String.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- DfdlDataFormat dataformat = (DfdlDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ DfdlDataFormat target = (DfdlDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "schemauri":
- case "schemaUri": dataformat.setSchemaUri(property(camelContext, java.lang.String.class, value)); return true;
case "rootelement":
- case "rootElement": dataformat.setRootElement(property(camelContext, java.lang.String.class, value)); return true;
+ case "rootElement": target.setRootElement(property(camelContext, java.lang.String.class, value)); return true;
case "rootnamespace":
- case "rootNamespace": dataformat.setRootNamespace(property(camelContext, java.lang.String.class, value)); return true;
+ case "rootNamespace": target.setRootNamespace(property(camelContext, java.lang.String.class, value)); return true;
+ case "schemauri":
+ case "schemaUri": target.setSchemaUri(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "rootelement":
+ case "rootElement": return java.lang.String.class;
+ case "rootnamespace":
+ case "rootNamespace": return java.lang.String.class;
+ case "schemauri":
+ case "schemaUri": return java.lang.String.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ DfdlDataFormat target = (DfdlDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "rootelement":
+ case "rootElement": return target.getRootElement();
+ case "rootnamespace":
+ case "rootNamespace": return target.getRootNamespace();
+ case "schemauri":
+ case "schemaUri": return target.getSchemaUri();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-fastjson/src/generated/java/org/apache/camel/component/fastjson/FastjsonDataFormatConfigurer.java b/components/camel-fastjson/src/generated/java/org/apache/camel/component/fastjson/FastjsonDataFormatConfigurer.java
index 63be7d2e58a..a9c1f152020 100644
--- a/components/camel-fastjson/src/generated/java/org/apache/camel/component/fastjson/FastjsonDataFormatConfigurer.java
+++ b/components/camel-fastjson/src/generated/java/org/apache/camel/component/fastjson/FastjsonDataFormatConfigurer.java
@@ -2,31 +2,69 @@
package org.apache.camel.component.fastjson;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.component.fastjson.FastjsonDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class FastjsonDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class FastjsonDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("ContentTypeHeader", boolean.class);
+ map.put("UnmarshalType", java.lang.Class.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- FastjsonDataFormat dataformat = (FastjsonDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ FastjsonDataFormat target = (FastjsonDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "unmarshaltype":
- case "unmarshalType": dataformat.setUnmarshalType(property(camelContext, java.lang.Class.class, value)); return true;
case "contenttypeheader":
- case "contentTypeHeader": dataformat.setContentTypeHeader(property(camelContext, boolean.class, value)); return true;
+ case "contentTypeHeader": target.setContentTypeHeader(property(camelContext, boolean.class, value)); return true;
+ case "unmarshaltype":
+ case "unmarshalType": target.setUnmarshalType(property(camelContext, java.lang.Class.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "contenttypeheader":
+ case "contentTypeHeader": return boolean.class;
+ case "unmarshaltype":
+ case "unmarshalType": return java.lang.Class.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ FastjsonDataFormat target = (FastjsonDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "contenttypeheader":
+ case "contentTypeHeader": return target.isContentTypeHeader();
+ case "unmarshaltype":
+ case "unmarshalType": return target.getUnmarshalType();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-fhir/camel-fhir-component/src/generated/java/org/apache/camel/component/fhir/FhirJsonDataFormatConfigurer.java b/components/camel-fhir/camel-fhir-component/src/generated/java/org/apache/camel/component/fhir/FhirJsonDataFormatConfigurer.java
index 562f65a1a6e..af459e5648e 100644
--- a/components/camel-fhir/camel-fhir-component/src/generated/java/org/apache/camel/component/fhir/FhirJsonDataFormatConfigurer.java
+++ b/components/camel-fhir/camel-fhir-component/src/generated/java/org/apache/camel/component/fhir/FhirJsonDataFormatConfigurer.java
@@ -2,63 +2,181 @@
package org.apache.camel.component.fhir;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.component.fhir.FhirJsonDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class FhirJsonDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class FhirJsonDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("ContentTypeHeader", boolean.class);
+ map.put("DontEncodeElements", java.util.Set.class);
+ map.put("DontStripVersionsFromReferencesAtPaths", java.util.List.class);
+ map.put("EncodeElements", java.util.Set.class);
+ map.put("EncodeElementsAppliesToChildResourcesOnly", boolean.class);
+ map.put("FhirContext", ca.uhn.fhir.context.FhirContext.class);
+ map.put("FhirVersion", java.lang.String.class);
+ map.put("ForceResourceId", org.hl7.fhir.instance.model.api.IIdType.class);
+ map.put("OmitResourceId", boolean.class);
+ map.put("OverrideResourceIdWithBundleEntryFullUrl", java.lang.Boolean.class);
+ map.put("ParserErrorHandler", ca.uhn.fhir.parser.IParserErrorHandler.class);
+ map.put("ParserOptions", ca.uhn.fhir.context.ParserOptions.class);
+ map.put("PreferTypes", java.util.List.class);
+ map.put("PrettyPrint", boolean.class);
+ map.put("ServerBaseUrl", java.lang.String.class);
+ map.put("StripVersionsFromReferences", java.lang.Boolean.class);
+ map.put("SummaryMode", boolean.class);
+ map.put("SuppressNarratives", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- FhirJsonDataFormat dataformat = (FhirJsonDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ FhirJsonDataFormat target = (FhirJsonDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
+ case "contenttypeheader":
+ case "contentTypeHeader": target.setContentTypeHeader(property(camelContext, boolean.class, value)); return true;
+ case "dontencodeelements":
+ case "dontEncodeElements": target.setDontEncodeElements(property(camelContext, java.util.Set.class, value)); return true;
+ case "dontstripversionsfromreferencesatpaths":
+ case "dontStripVersionsFromReferencesAtPaths": target.setDontStripVersionsFromReferencesAtPaths(property(camelContext, java.util.List.class, value)); return true;
+ case "encodeelements":
+ case "encodeElements": target.setEncodeElements(property(camelContext, java.util.Set.class, value)); return true;
+ case "encodeelementsappliestochildresourcesonly":
+ case "encodeElementsAppliesToChildResourcesOnly": target.setEncodeElementsAppliesToChildResourcesOnly(property(camelContext, boolean.class, value)); return true;
case "fhircontext":
- case "fhirContext": dataformat.setFhirContext(property(camelContext, ca.uhn.fhir.context.FhirContext.class, value)); return true;
+ case "fhirContext": target.setFhirContext(property(camelContext, ca.uhn.fhir.context.FhirContext.class, value)); return true;
case "fhirversion":
- case "fhirVersion": dataformat.setFhirVersion(property(camelContext, java.lang.String.class, value)); return true;
- case "contenttypeheader":
- case "contentTypeHeader": dataformat.setContentTypeHeader(property(camelContext, boolean.class, value)); return true;
+ case "fhirVersion": target.setFhirVersion(property(camelContext, java.lang.String.class, value)); return true;
+ case "forceresourceid":
+ case "forceResourceId": target.setForceResourceId(property(camelContext, org.hl7.fhir.instance.model.api.IIdType.class, value)); return true;
+ case "omitresourceid":
+ case "omitResourceId": target.setOmitResourceId(property(camelContext, boolean.class, value)); return true;
+ case "overrideresourceidwithbundleentryfullurl":
+ case "overrideResourceIdWithBundleEntryFullUrl": target.setOverrideResourceIdWithBundleEntryFullUrl(property(camelContext, java.lang.Boolean.class, value)); return true;
case "parsererrorhandler":
- case "parserErrorHandler": dataformat.setParserErrorHandler(property(camelContext, ca.uhn.fhir.parser.IParserErrorHandler.class, value)); return true;
+ case "parserErrorHandler": target.setParserErrorHandler(property(camelContext, ca.uhn.fhir.parser.IParserErrorHandler.class, value)); return true;
case "parseroptions":
- case "parserOptions": dataformat.setParserOptions(property(camelContext, ca.uhn.fhir.context.ParserOptions.class, value)); return true;
- case "serverbaseurl":
- case "serverBaseUrl": dataformat.setServerBaseUrl(property(camelContext, java.lang.String.class, value)); return true;
- case "prettyprint":
- case "prettyPrint": dataformat.setPrettyPrint(property(camelContext, boolean.class, value)); return true;
+ case "parserOptions": target.setParserOptions(property(camelContext, ca.uhn.fhir.context.ParserOptions.class, value)); return true;
case "prefertypes":
- case "preferTypes": dataformat.setPreferTypes(property(camelContext, java.util.List.class, value)); return true;
- case "omitresourceid":
- case "omitResourceId": dataformat.setOmitResourceId(property(camelContext, boolean.class, value)); return true;
- case "forceresourceid":
- case "forceResourceId": dataformat.setForceResourceId(property(camelContext, org.hl7.fhir.instance.model.api.IIdType.class, value)); return true;
- case "encodeelementsappliestochildresourcesonly":
- case "encodeElementsAppliesToChildResourcesOnly": dataformat.setEncodeElementsAppliesToChildResourcesOnly(property(camelContext, boolean.class, value)); return true;
- case "encodeelements":
- case "encodeElements": dataformat.setEncodeElements(property(camelContext, java.util.Set.class, value)); return true;
- case "dontencodeelements":
- case "dontEncodeElements": dataformat.setDontEncodeElements(property(camelContext, java.util.Set.class, value)); return true;
+ case "preferTypes": target.setPreferTypes(property(camelContext, java.util.List.class, value)); return true;
+ case "prettyprint":
+ case "prettyPrint": target.setPrettyPrint(property(camelContext, boolean.class, value)); return true;
+ case "serverbaseurl":
+ case "serverBaseUrl": target.setServerBaseUrl(property(camelContext, java.lang.String.class, value)); return true;
case "stripversionsfromreferences":
- case "stripVersionsFromReferences": dataformat.setStripVersionsFromReferences(property(camelContext, java.lang.Boolean.class, value)); return true;
- case "overrideresourceidwithbundleentryfullurl":
- case "overrideResourceIdWithBundleEntryFullUrl": dataformat.setOverrideResourceIdWithBundleEntryFullUrl(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "stripVersionsFromReferences": target.setStripVersionsFromReferences(property(camelContext, java.lang.Boolean.class, value)); return true;
case "summarymode":
- case "summaryMode": dataformat.setSummaryMode(property(camelContext, boolean.class, value)); return true;
+ case "summaryMode": target.setSummaryMode(property(camelContext, boolean.class, value)); return true;
case "suppressnarratives":
- case "suppressNarratives": dataformat.setSuppressNarratives(property(camelContext, boolean.class, value)); return true;
- case "dontstripversionsfromreferencesatpaths":
- case "dontStripVersionsFromReferencesAtPaths": dataformat.setDontStripVersionsFromReferencesAtPaths(property(camelContext, java.util.List.class, value)); return true;
+ case "suppressNarratives": target.setSuppressNarratives(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "contenttypeheader":
+ case "contentTypeHeader": return boolean.class;
+ case "dontencodeelements":
+ case "dontEncodeElements": return java.util.Set.class;
+ case "dontstripversionsfromreferencesatpaths":
+ case "dontStripVersionsFromReferencesAtPaths": return java.util.List.class;
+ case "encodeelements":
+ case "encodeElements": return java.util.Set.class;
+ case "encodeelementsappliestochildresourcesonly":
+ case "encodeElementsAppliesToChildResourcesOnly": return boolean.class;
+ case "fhircontext":
+ case "fhirContext": return ca.uhn.fhir.context.FhirContext.class;
+ case "fhirversion":
+ case "fhirVersion": return java.lang.String.class;
+ case "forceresourceid":
+ case "forceResourceId": return org.hl7.fhir.instance.model.api.IIdType.class;
+ case "omitresourceid":
+ case "omitResourceId": return boolean.class;
+ case "overrideresourceidwithbundleentryfullurl":
+ case "overrideResourceIdWithBundleEntryFullUrl": return java.lang.Boolean.class;
+ case "parsererrorhandler":
+ case "parserErrorHandler": return ca.uhn.fhir.parser.IParserErrorHandler.class;
+ case "parseroptions":
+ case "parserOptions": return ca.uhn.fhir.context.ParserOptions.class;
+ case "prefertypes":
+ case "preferTypes": return java.util.List.class;
+ case "prettyprint":
+ case "prettyPrint": return boolean.class;
+ case "serverbaseurl":
+ case "serverBaseUrl": return java.lang.String.class;
+ case "stripversionsfromreferences":
+ case "stripVersionsFromReferences": return java.lang.Boolean.class;
+ case "summarymode":
+ case "summaryMode": return boolean.class;
+ case "suppressnarratives":
+ case "suppressNarratives": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ FhirJsonDataFormat target = (FhirJsonDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "contenttypeheader":
+ case "contentTypeHeader": return target.isContentTypeHeader();
+ case "dontencodeelements":
+ case "dontEncodeElements": return target.getDontEncodeElements();
+ case "dontstripversionsfromreferencesatpaths":
+ case "dontStripVersionsFromReferencesAtPaths": return target.getDontStripVersionsFromReferencesAtPaths();
+ case "encodeelements":
+ case "encodeElements": return target.getEncodeElements();
+ case "encodeelementsappliestochildresourcesonly":
+ case "encodeElementsAppliesToChildResourcesOnly": return target.isEncodeElementsAppliesToChildResourcesOnly();
+ case "fhircontext":
+ case "fhirContext": return target.getFhirContext();
+ case "fhirversion":
+ case "fhirVersion": return target.getFhirVersion();
+ case "forceresourceid":
+ case "forceResourceId": return target.getForceResourceId();
+ case "omitresourceid":
+ case "omitResourceId": return target.isOmitResourceId();
+ case "overrideresourceidwithbundleentryfullurl":
+ case "overrideResourceIdWithBundleEntryFullUrl": return target.getOverrideResourceIdWithBundleEntryFullUrl();
+ case "parsererrorhandler":
+ case "parserErrorHandler": return target.getParserErrorHandler();
+ case "parseroptions":
+ case "parserOptions": return target.getParserOptions();
+ case "prefertypes":
+ case "preferTypes": return target.getPreferTypes();
+ case "prettyprint":
+ case "prettyPrint": return target.isPrettyPrint();
+ case "serverbaseurl":
+ case "serverBaseUrl": return target.getServerBaseUrl();
+ case "stripversionsfromreferences":
+ case "stripVersionsFromReferences": return target.getStripVersionsFromReferences();
+ case "summarymode":
+ case "summaryMode": return target.isSummaryMode();
+ case "suppressnarratives":
+ case "suppressNarratives": return target.isSuppressNarratives();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-fhir/camel-fhir-component/src/generated/java/org/apache/camel/component/fhir/FhirXmlDataFormatConfigurer.java b/components/camel-fhir/camel-fhir-component/src/generated/java/org/apache/camel/component/fhir/FhirXmlDataFormatConfigurer.java
index 4d7d5890313..d3d8cb67e66 100644
--- a/components/camel-fhir/camel-fhir-component/src/generated/java/org/apache/camel/component/fhir/FhirXmlDataFormatConfigurer.java
+++ b/components/camel-fhir/camel-fhir-component/src/generated/java/org/apache/camel/component/fhir/FhirXmlDataFormatConfigurer.java
@@ -2,63 +2,181 @@
package org.apache.camel.component.fhir;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.component.fhir.FhirXmlDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class FhirXmlDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class FhirXmlDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("ContentTypeHeader", boolean.class);
+ map.put("DontEncodeElements", java.util.Set.class);
+ map.put("DontStripVersionsFromReferencesAtPaths", java.util.List.class);
+ map.put("EncodeElements", java.util.Set.class);
+ map.put("EncodeElementsAppliesToChildResourcesOnly", boolean.class);
+ map.put("FhirContext", ca.uhn.fhir.context.FhirContext.class);
+ map.put("FhirVersion", java.lang.String.class);
+ map.put("ForceResourceId", org.hl7.fhir.instance.model.api.IIdType.class);
+ map.put("OmitResourceId", boolean.class);
+ map.put("OverrideResourceIdWithBundleEntryFullUrl", java.lang.Boolean.class);
+ map.put("ParserErrorHandler", ca.uhn.fhir.parser.IParserErrorHandler.class);
+ map.put("ParserOptions", ca.uhn.fhir.context.ParserOptions.class);
+ map.put("PreferTypes", java.util.List.class);
+ map.put("PrettyPrint", boolean.class);
+ map.put("ServerBaseUrl", java.lang.String.class);
+ map.put("StripVersionsFromReferences", java.lang.Boolean.class);
+ map.put("SummaryMode", boolean.class);
+ map.put("SuppressNarratives", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- FhirXmlDataFormat dataformat = (FhirXmlDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ FhirXmlDataFormat target = (FhirXmlDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
+ case "contenttypeheader":
+ case "contentTypeHeader": target.setContentTypeHeader(property(camelContext, boolean.class, value)); return true;
+ case "dontencodeelements":
+ case "dontEncodeElements": target.setDontEncodeElements(property(camelContext, java.util.Set.class, value)); return true;
+ case "dontstripversionsfromreferencesatpaths":
+ case "dontStripVersionsFromReferencesAtPaths": target.setDontStripVersionsFromReferencesAtPaths(property(camelContext, java.util.List.class, value)); return true;
+ case "encodeelements":
+ case "encodeElements": target.setEncodeElements(property(camelContext, java.util.Set.class, value)); return true;
+ case "encodeelementsappliestochildresourcesonly":
+ case "encodeElementsAppliesToChildResourcesOnly": target.setEncodeElementsAppliesToChildResourcesOnly(property(camelContext, boolean.class, value)); return true;
case "fhircontext":
- case "fhirContext": dataformat.setFhirContext(property(camelContext, ca.uhn.fhir.context.FhirContext.class, value)); return true;
+ case "fhirContext": target.setFhirContext(property(camelContext, ca.uhn.fhir.context.FhirContext.class, value)); return true;
case "fhirversion":
- case "fhirVersion": dataformat.setFhirVersion(property(camelContext, java.lang.String.class, value)); return true;
- case "contenttypeheader":
- case "contentTypeHeader": dataformat.setContentTypeHeader(property(camelContext, boolean.class, value)); return true;
+ case "fhirVersion": target.setFhirVersion(property(camelContext, java.lang.String.class, value)); return true;
+ case "forceresourceid":
+ case "forceResourceId": target.setForceResourceId(property(camelContext, org.hl7.fhir.instance.model.api.IIdType.class, value)); return true;
+ case "omitresourceid":
+ case "omitResourceId": target.setOmitResourceId(property(camelContext, boolean.class, value)); return true;
+ case "overrideresourceidwithbundleentryfullurl":
+ case "overrideResourceIdWithBundleEntryFullUrl": target.setOverrideResourceIdWithBundleEntryFullUrl(property(camelContext, java.lang.Boolean.class, value)); return true;
case "parsererrorhandler":
- case "parserErrorHandler": dataformat.setParserErrorHandler(property(camelContext, ca.uhn.fhir.parser.IParserErrorHandler.class, value)); return true;
+ case "parserErrorHandler": target.setParserErrorHandler(property(camelContext, ca.uhn.fhir.parser.IParserErrorHandler.class, value)); return true;
case "parseroptions":
- case "parserOptions": dataformat.setParserOptions(property(camelContext, ca.uhn.fhir.context.ParserOptions.class, value)); return true;
- case "serverbaseurl":
- case "serverBaseUrl": dataformat.setServerBaseUrl(property(camelContext, java.lang.String.class, value)); return true;
- case "prettyprint":
- case "prettyPrint": dataformat.setPrettyPrint(property(camelContext, boolean.class, value)); return true;
+ case "parserOptions": target.setParserOptions(property(camelContext, ca.uhn.fhir.context.ParserOptions.class, value)); return true;
case "prefertypes":
- case "preferTypes": dataformat.setPreferTypes(property(camelContext, java.util.List.class, value)); return true;
- case "omitresourceid":
- case "omitResourceId": dataformat.setOmitResourceId(property(camelContext, boolean.class, value)); return true;
- case "forceresourceid":
- case "forceResourceId": dataformat.setForceResourceId(property(camelContext, org.hl7.fhir.instance.model.api.IIdType.class, value)); return true;
- case "encodeelementsappliestochildresourcesonly":
- case "encodeElementsAppliesToChildResourcesOnly": dataformat.setEncodeElementsAppliesToChildResourcesOnly(property(camelContext, boolean.class, value)); return true;
- case "encodeelements":
- case "encodeElements": dataformat.setEncodeElements(property(camelContext, java.util.Set.class, value)); return true;
- case "dontencodeelements":
- case "dontEncodeElements": dataformat.setDontEncodeElements(property(camelContext, java.util.Set.class, value)); return true;
+ case "preferTypes": target.setPreferTypes(property(camelContext, java.util.List.class, value)); return true;
+ case "prettyprint":
+ case "prettyPrint": target.setPrettyPrint(property(camelContext, boolean.class, value)); return true;
+ case "serverbaseurl":
+ case "serverBaseUrl": target.setServerBaseUrl(property(camelContext, java.lang.String.class, value)); return true;
case "stripversionsfromreferences":
- case "stripVersionsFromReferences": dataformat.setStripVersionsFromReferences(property(camelContext, java.lang.Boolean.class, value)); return true;
- case "overrideresourceidwithbundleentryfullurl":
- case "overrideResourceIdWithBundleEntryFullUrl": dataformat.setOverrideResourceIdWithBundleEntryFullUrl(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "stripVersionsFromReferences": target.setStripVersionsFromReferences(property(camelContext, java.lang.Boolean.class, value)); return true;
case "summarymode":
- case "summaryMode": dataformat.setSummaryMode(property(camelContext, boolean.class, value)); return true;
+ case "summaryMode": target.setSummaryMode(property(camelContext, boolean.class, value)); return true;
case "suppressnarratives":
- case "suppressNarratives": dataformat.setSuppressNarratives(property(camelContext, boolean.class, value)); return true;
- case "dontstripversionsfromreferencesatpaths":
- case "dontStripVersionsFromReferencesAtPaths": dataformat.setDontStripVersionsFromReferencesAtPaths(property(camelContext, java.util.List.class, value)); return true;
+ case "suppressNarratives": target.setSuppressNarratives(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "contenttypeheader":
+ case "contentTypeHeader": return boolean.class;
+ case "dontencodeelements":
+ case "dontEncodeElements": return java.util.Set.class;
+ case "dontstripversionsfromreferencesatpaths":
+ case "dontStripVersionsFromReferencesAtPaths": return java.util.List.class;
+ case "encodeelements":
+ case "encodeElements": return java.util.Set.class;
+ case "encodeelementsappliestochildresourcesonly":
+ case "encodeElementsAppliesToChildResourcesOnly": return boolean.class;
+ case "fhircontext":
+ case "fhirContext": return ca.uhn.fhir.context.FhirContext.class;
+ case "fhirversion":
+ case "fhirVersion": return java.lang.String.class;
+ case "forceresourceid":
+ case "forceResourceId": return org.hl7.fhir.instance.model.api.IIdType.class;
+ case "omitresourceid":
+ case "omitResourceId": return boolean.class;
+ case "overrideresourceidwithbundleentryfullurl":
+ case "overrideResourceIdWithBundleEntryFullUrl": return java.lang.Boolean.class;
+ case "parsererrorhandler":
+ case "parserErrorHandler": return ca.uhn.fhir.parser.IParserErrorHandler.class;
+ case "parseroptions":
+ case "parserOptions": return ca.uhn.fhir.context.ParserOptions.class;
+ case "prefertypes":
+ case "preferTypes": return java.util.List.class;
+ case "prettyprint":
+ case "prettyPrint": return boolean.class;
+ case "serverbaseurl":
+ case "serverBaseUrl": return java.lang.String.class;
+ case "stripversionsfromreferences":
+ case "stripVersionsFromReferences": return java.lang.Boolean.class;
+ case "summarymode":
+ case "summaryMode": return boolean.class;
+ case "suppressnarratives":
+ case "suppressNarratives": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ FhirXmlDataFormat target = (FhirXmlDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "contenttypeheader":
+ case "contentTypeHeader": return target.isContentTypeHeader();
+ case "dontencodeelements":
+ case "dontEncodeElements": return target.getDontEncodeElements();
+ case "dontstripversionsfromreferencesatpaths":
+ case "dontStripVersionsFromReferencesAtPaths": return target.getDontStripVersionsFromReferencesAtPaths();
+ case "encodeelements":
+ case "encodeElements": return target.getEncodeElements();
+ case "encodeelementsappliestochildresourcesonly":
+ case "encodeElementsAppliesToChildResourcesOnly": return target.isEncodeElementsAppliesToChildResourcesOnly();
+ case "fhircontext":
+ case "fhirContext": return target.getFhirContext();
+ case "fhirversion":
+ case "fhirVersion": return target.getFhirVersion();
+ case "forceresourceid":
+ case "forceResourceId": return target.getForceResourceId();
+ case "omitresourceid":
+ case "omitResourceId": return target.isOmitResourceId();
+ case "overrideresourceidwithbundleentryfullurl":
+ case "overrideResourceIdWithBundleEntryFullUrl": return target.getOverrideResourceIdWithBundleEntryFullUrl();
+ case "parsererrorhandler":
+ case "parserErrorHandler": return target.getParserErrorHandler();
+ case "parseroptions":
+ case "parserOptions": return target.getParserOptions();
+ case "prefertypes":
+ case "preferTypes": return target.getPreferTypes();
+ case "prettyprint":
+ case "prettyPrint": return target.isPrettyPrint();
+ case "serverbaseurl":
+ case "serverBaseUrl": return target.getServerBaseUrl();
+ case "stripversionsfromreferences":
+ case "stripVersionsFromReferences": return target.getStripVersionsFromReferences();
+ case "summarymode":
+ case "summaryMode": return target.isSummaryMode();
+ case "suppressnarratives":
+ case "suppressNarratives": return target.isSuppressNarratives();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-flatpack/src/generated/java/org/apache/camel/dataformat/flatpack/FlatpackDataFormatConfigurer.java b/components/camel-flatpack/src/generated/java/org/apache/camel/dataformat/flatpack/FlatpackDataFormatConfigurer.java
index 7b398e7a562..f62a9b9885f 100644
--- a/components/camel-flatpack/src/generated/java/org/apache/camel/dataformat/flatpack/FlatpackDataFormatConfigurer.java
+++ b/components/camel-flatpack/src/generated/java/org/apache/camel/dataformat/flatpack/FlatpackDataFormatConfigurer.java
@@ -2,38 +2,95 @@
package org.apache.camel.dataformat.flatpack;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.flatpack.FlatpackDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class FlatpackDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class FlatpackDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("AllowShortLines", boolean.class);
+ map.put("Definition", java.lang.String.class);
+ map.put("Delimiter", char.class);
+ map.put("Fixed", boolean.class);
+ map.put("IgnoreExtraColumns", boolean.class);
+ map.put("IgnoreFirstRecord", boolean.class);
+ map.put("TextQualifier", char.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- FlatpackDataFormat dataformat = (FlatpackDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ FlatpackDataFormat target = (FlatpackDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "delimiter": dataformat.setDelimiter(property(camelContext, char.class, value)); return true;
- case "textqualifier":
- case "textQualifier": dataformat.setTextQualifier(property(camelContext, char.class, value)); return true;
- case "ignorefirstrecord":
- case "ignoreFirstRecord": dataformat.setIgnoreFirstRecord(property(camelContext, boolean.class, value)); return true;
- case "fixed": dataformat.setFixed(property(camelContext, boolean.class, value)); return true;
case "allowshortlines":
- case "allowShortLines": dataformat.setAllowShortLines(property(camelContext, boolean.class, value)); return true;
+ case "allowShortLines": target.setAllowShortLines(property(camelContext, boolean.class, value)); return true;
+ case "definition": target.setDefinition(property(camelContext, java.lang.String.class, value)); return true;
+ case "delimiter": target.setDelimiter(property(camelContext, char.class, value)); return true;
+ case "fixed": target.setFixed(property(camelContext, boolean.class, value)); return true;
case "ignoreextracolumns":
- case "ignoreExtraColumns": dataformat.setIgnoreExtraColumns(property(camelContext, boolean.class, value)); return true;
- case "definition": dataformat.setDefinition(property(camelContext, java.lang.String.class, value)); return true;
+ case "ignoreExtraColumns": target.setIgnoreExtraColumns(property(camelContext, boolean.class, value)); return true;
+ case "ignorefirstrecord":
+ case "ignoreFirstRecord": target.setIgnoreFirstRecord(property(camelContext, boolean.class, value)); return true;
+ case "textqualifier":
+ case "textQualifier": target.setTextQualifier(property(camelContext, char.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowshortlines":
+ case "allowShortLines": return boolean.class;
+ case "definition": return java.lang.String.class;
+ case "delimiter": return char.class;
+ case "fixed": return boolean.class;
+ case "ignoreextracolumns":
+ case "ignoreExtraColumns": return boolean.class;
+ case "ignorefirstrecord":
+ case "ignoreFirstRecord": return boolean.class;
+ case "textqualifier":
+ case "textQualifier": return char.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ FlatpackDataFormat target = (FlatpackDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowshortlines":
+ case "allowShortLines": return target.isAllowShortLines();
+ case "definition": return target.getDefinition();
+ case "delimiter": return target.getDelimiter();
+ case "fixed": return target.isFixed();
+ case "ignoreextracolumns":
+ case "ignoreExtraColumns": return target.isIgnoreExtraColumns();
+ case "ignorefirstrecord":
+ case "ignoreFirstRecord": return target.isIgnoreFirstRecord();
+ case "textqualifier":
+ case "textQualifier": return target.getTextQualifier();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-fory/src/generated/java/org/apache/camel/component/fory/ForyDataFormatConfigurer.java b/components/camel-fory/src/generated/java/org/apache/camel/component/fory/ForyDataFormatConfigurer.java
index be91e5ce0cc..1ce38778afc 100644
--- a/components/camel-fory/src/generated/java/org/apache/camel/component/fory/ForyDataFormatConfigurer.java
+++ b/components/camel-fory/src/generated/java/org/apache/camel/component/fory/ForyDataFormatConfigurer.java
@@ -2,33 +2,76 @@
package org.apache.camel.component.fory;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.component.fory.ForyDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class ForyDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class ForyDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("RequireClassRegistration", boolean.class);
+ map.put("ThreadSafe", boolean.class);
+ map.put("UnmarshalType", java.lang.Class.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- ForyDataFormat dataformat = (ForyDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ ForyDataFormat target = (ForyDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "unmarshaltype":
- case "unmarshalType": dataformat.setUnmarshalType(property(camelContext, java.lang.Class.class, value)); return true;
case "requireclassregistration":
- case "requireClassRegistration": dataformat.setRequireClassRegistration(property(camelContext, boolean.class, value)); return true;
+ case "requireClassRegistration": target.setRequireClassRegistration(property(camelContext, boolean.class, value)); return true;
case "threadsafe":
- case "threadSafe": dataformat.setThreadSafe(property(camelContext, boolean.class, value)); return true;
+ case "threadSafe": target.setThreadSafe(property(camelContext, boolean.class, value)); return true;
+ case "unmarshaltype":
+ case "unmarshalType": target.setUnmarshalType(property(camelContext, java.lang.Class.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "requireclassregistration":
+ case "requireClassRegistration": return boolean.class;
+ case "threadsafe":
+ case "threadSafe": return boolean.class;
+ case "unmarshaltype":
+ case "unmarshalType": return java.lang.Class.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ ForyDataFormat target = (ForyDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "requireclassregistration":
+ case "requireClassRegistration": return target.isRequireClassRegistration();
+ case "threadsafe":
+ case "threadSafe": return target.isThreadSafe();
+ case "unmarshaltype":
+ case "unmarshalType": return target.getUnmarshalType();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-grok/src/generated/java/org/apache/camel/component/grok/GrokDataFormatConfigurer.java b/components/camel-grok/src/generated/java/org/apache/camel/component/grok/GrokDataFormatConfigurer.java
index 55718c7b840..1b627d5aaa7 100644
--- a/components/camel-grok/src/generated/java/org/apache/camel/component/grok/GrokDataFormatConfigurer.java
+++ b/components/camel-grok/src/generated/java/org/apache/camel/component/grok/GrokDataFormatConfigurer.java
@@ -2,33 +2,77 @@
package org.apache.camel.component.grok;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.component.grok.GrokDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class GrokDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class GrokDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("AllowMultipleMatchesPerLine", boolean.class);
+ map.put("Flattened", boolean.class);
+ map.put("NamedOnly", boolean.class);
+ map.put("Pattern", java.lang.String.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- GrokDataFormat dataformat = (GrokDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ GrokDataFormat target = (GrokDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "allowmultiplematchesperline":
- case "allowMultipleMatchesPerLine": dataformat.setAllowMultipleMatchesPerLine(property(camelContext, boolean.class, value)); return true;
- case "flattened": dataformat.setFlattened(property(camelContext, boolean.class, value)); return true;
+ case "allowMultipleMatchesPerLine": target.setAllowMultipleMatchesPerLine(property(camelContext, boolean.class, value)); return true;
+ case "flattened": target.setFlattened(property(camelContext, boolean.class, value)); return true;
case "namedonly":
- case "namedOnly": dataformat.setNamedOnly(property(camelContext, boolean.class, value)); return true;
- case "pattern": dataformat.setPattern(property(camelContext, java.lang.String.class, value)); return true;
+ case "namedOnly": target.setNamedOnly(property(camelContext, boolean.class, value)); return true;
+ case "pattern": target.setPattern(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowmultiplematchesperline":
+ case "allowMultipleMatchesPerLine": return boolean.class;
+ case "flattened": return boolean.class;
+ case "namedonly":
+ case "namedOnly": return boolean.class;
+ case "pattern": return java.lang.String.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ GrokDataFormat target = (GrokDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowmultiplematchesperline":
+ case "allowMultipleMatchesPerLine": return target.isAllowMultipleMatchesPerLine();
+ case "flattened": return target.isFlattened();
+ case "namedonly":
+ case "namedOnly": return target.isNamedOnly();
+ case "pattern": return target.getPattern();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-grok/src/main/java/org/apache/camel/component/grok/GrokDataFormat.java b/components/camel-grok/src/main/java/org/apache/camel/component/grok/GrokDataFormat.java
index 8d47841e820..d5b2a45cc99 100644
--- a/components/camel-grok/src/main/java/org/apache/camel/component/grok/GrokDataFormat.java
+++ b/components/camel-grok/src/main/java/org/apache/camel/component/grok/GrokDataFormat.java
@@ -72,11 +72,19 @@ public class GrokDataFormat extends ServiceSupport implements DataFormat, DataFo
return registerPatternDefinition(new GrokPattern(name, pattern));
}
+ public String getPattern() {
+ return pattern;
+ }
+
public GrokDataFormat setPattern(String pattern) {
this.pattern = pattern;
return this;
}
+ public boolean isFlattened() {
+ return flattened;
+ }
+
/**
* Sets the flattened mode flag
*
@@ -87,11 +95,19 @@ public class GrokDataFormat extends ServiceSupport implements DataFormat, DataFo
return this;
}
+ public boolean isAllowMultipleMatchesPerLine() {
+ return allowMultipleMatchesPerLine;
+ }
+
public GrokDataFormat setAllowMultipleMatchesPerLine(boolean allowMultipleMatchesPerLine) {
this.allowMultipleMatchesPerLine = allowMultipleMatchesPerLine;
return this;
}
+ public boolean isNamedOnly() {
+ return namedOnly;
+ }
+
/**
* Whether to capture named expressions only or not (i.e. %{IP:ip} but not ${IP})
*/
diff --git a/components/camel-gson/src/generated/java/org/apache/camel/component/gson/GsonDataFormatConfigurer.java b/components/camel-gson/src/generated/java/org/apache/camel/component/gson/GsonDataFormatConfigurer.java
index 18fe2aa177a..d42cf61e74b 100644
--- a/components/camel-gson/src/generated/java/org/apache/camel/component/gson/GsonDataFormatConfigurer.java
+++ b/components/camel-gson/src/generated/java/org/apache/camel/component/gson/GsonDataFormatConfigurer.java
@@ -2,35 +2,83 @@
package org.apache.camel.component.gson;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.component.gson.GsonDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class GsonDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class GsonDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("ContentTypeHeader", boolean.class);
+ map.put("DateFormatPattern", java.lang.String.class);
+ map.put("PrettyPrint", boolean.class);
+ map.put("UnmarshalType", java.lang.Class.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- GsonDataFormat dataformat = (GsonDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ GsonDataFormat target = (GsonDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "unmarshaltype":
- case "unmarshalType": dataformat.setUnmarshalType(property(camelContext, java.lang.Class.class, value)); return true;
- case "prettyprint":
- case "prettyPrint": dataformat.setPrettyPrint(property(camelContext, boolean.class, value)); return true;
- case "dateformatpattern":
- case "dateFormatPattern": dataformat.setDateFormatPattern(property(camelContext, java.lang.String.class, value)); return true;
case "contenttypeheader":
- case "contentTypeHeader": dataformat.setContentTypeHeader(property(camelContext, boolean.class, value)); return true;
+ case "contentTypeHeader": target.setContentTypeHeader(property(camelContext, boolean.class, value)); return true;
+ case "dateformatpattern":
+ case "dateFormatPattern": target.setDateFormatPattern(property(camelContext, java.lang.String.class, value)); return true;
+ case "prettyprint":
+ case "prettyPrint": target.setPrettyPrint(property(camelContext, boolean.class, value)); return true;
+ case "unmarshaltype":
+ case "unmarshalType": target.setUnmarshalType(property(camelContext, java.lang.Class.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "contenttypeheader":
+ case "contentTypeHeader": return boolean.class;
+ case "dateformatpattern":
+ case "dateFormatPattern": return java.lang.String.class;
+ case "prettyprint":
+ case "prettyPrint": return boolean.class;
+ case "unmarshaltype":
+ case "unmarshalType": return java.lang.Class.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ GsonDataFormat target = (GsonDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "contenttypeheader":
+ case "contentTypeHeader": return target.isContentTypeHeader();
+ case "dateformatpattern":
+ case "dateFormatPattern": return target.getDateFormatPattern();
+ case "prettyprint":
+ case "prettyPrint": return target.isPrettyPrint();
+ case "unmarshaltype":
+ case "unmarshalType": return target.getUnmarshalType();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-hl7/src/generated/java/org/apache/camel/component/hl7/HL7DataFormatConfigurer.java b/components/camel-hl7/src/generated/java/org/apache/camel/component/hl7/HL7DataFormatConfigurer.java
index 9410b95e34d..7914809b278 100644
--- a/components/camel-hl7/src/generated/java/org/apache/camel/component/hl7/HL7DataFormatConfigurer.java
+++ b/components/camel-hl7/src/generated/java/org/apache/camel/component/hl7/HL7DataFormatConfigurer.java
@@ -2,28 +2,59 @@
package org.apache.camel.component.hl7;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.component.hl7.HL7DataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class HL7DataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class HL7DataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("Validate", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- HL7DataFormat dataformat = (HL7DataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ HL7DataFormat target = (HL7DataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "validate": dataformat.setValidate(property(camelContext, boolean.class, value)); return true;
+ case "validate": target.setValidate(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "validate": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ HL7DataFormat target = (HL7DataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "validate": return target.isValidate();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-ical/src/generated/java/org/apache/camel/component/ical/ICalDataFormatConfigurer.java b/components/camel-ical/src/generated/java/org/apache/camel/component/ical/ICalDataFormatConfigurer.java
index 66b931f2ac8..b2cc439e4ad 100644
--- a/components/camel-ical/src/generated/java/org/apache/camel/component/ical/ICalDataFormatConfigurer.java
+++ b/components/camel-ical/src/generated/java/org/apache/camel/component/ical/ICalDataFormatConfigurer.java
@@ -2,28 +2,59 @@
package org.apache.camel.component.ical;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.component.ical.ICalDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class ICalDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class ICalDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("Validating", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- ICalDataFormat dataformat = (ICalDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ ICalDataFormat target = (ICalDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "validating": dataformat.setValidating(property(camelContext, boolean.class, value)); return true;
+ case "validating": target.setValidating(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "validating": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ ICalDataFormat target = (ICalDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "validating": return target.isValidating();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-iso8583/src/generated/java/org/apache/camel/dataformat/iso8583/Iso8583DataFormatConfigurer.java b/components/camel-iso8583/src/generated/java/org/apache/camel/dataformat/iso8583/Iso8583DataFormatConfigurer.java
index 6dc760c9bd3..dce61a6af4b 100644
--- a/components/camel-iso8583/src/generated/java/org/apache/camel/dataformat/iso8583/Iso8583DataFormatConfigurer.java
+++ b/components/camel-iso8583/src/generated/java/org/apache/camel/dataformat/iso8583/Iso8583DataFormatConfigurer.java
@@ -2,31 +2,69 @@
package org.apache.camel.dataformat.iso8583;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.iso8583.Iso8583DataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class Iso8583DataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class Iso8583DataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("ConfigFile", java.lang.String.class);
+ map.put("IsoType", java.lang.String.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- Iso8583DataFormat dataformat = (Iso8583DataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ Iso8583DataFormat target = (Iso8583DataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "configfile":
- case "configFile": dataformat.setConfigFile(property(camelContext, java.lang.String.class, value)); return true;
+ case "configFile": target.setConfigFile(property(camelContext, java.lang.String.class, value)); return true;
case "isotype":
- case "isoType": dataformat.setIsoType(property(camelContext, java.lang.String.class, value)); return true;
+ case "isoType": target.setIsoType(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "configfile":
+ case "configFile": return java.lang.String.class;
+ case "isotype":
+ case "isoType": return java.lang.String.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ Iso8583DataFormat target = (Iso8583DataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "configfile":
+ case "configFile": return target.getConfigFile();
+ case "isotype":
+ case "isoType": return target.getIsoType();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-jackson-avro/src/generated/java/org/apache/camel/component/jackson/avro/JacksonAvroDataFormatConfigurer.java b/components/camel-jackson-avro/src/generated/java/org/apache/camel/component/jackson/avro/JacksonAvroDataFormatConfigurer.java
index 77cc1236b87..e819e09c193 100644
--- a/components/camel-jackson-avro/src/generated/java/org/apache/camel/component/jackson/avro/JacksonAvroDataFormatConfigurer.java
+++ b/components/camel-jackson-avro/src/generated/java/org/apache/camel/component/jackson/avro/JacksonAvroDataFormatConfigurer.java
@@ -2,27 +2,47 @@
package org.apache.camel.component.jackson.avro;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.component.jackson.avro.JacksonAvroDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class JacksonAvroDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class JacksonAvroDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ ALL_OPTIONS = map;
+ }
+
+ @Override
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ return false;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- JacksonAvroDataFormat dataformat = (JacksonAvroDataFormat) target;
- switch (ignoreCase ? name.toLowerCase() : name) {
- default: return false;
- }
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
}
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ return null;
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ return null;
+ }
}
diff --git a/components/camel-jackson-protobuf/src/generated/java/org/apache/camel/component/jackson/protobuf/JacksonProtobufDataFormatConfigurer.java b/components/camel-jackson-protobuf/src/generated/java/org/apache/camel/component/jackson/protobuf/JacksonProtobufDataFormatConfigurer.java
index 3314678fe4b..5dc52770a0b 100644
--- a/components/camel-jackson-protobuf/src/generated/java/org/apache/camel/component/jackson/protobuf/JacksonProtobufDataFormatConfigurer.java
+++ b/components/camel-jackson-protobuf/src/generated/java/org/apache/camel/component/jackson/protobuf/JacksonProtobufDataFormatConfigurer.java
@@ -2,27 +2,47 @@
package org.apache.camel.component.jackson.protobuf;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.component.jackson.protobuf.JacksonProtobufDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class JacksonProtobufDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class JacksonProtobufDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ ALL_OPTIONS = map;
+ }
+
+ @Override
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ return false;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- JacksonProtobufDataFormat dataformat = (JacksonProtobufDataFormat) target;
- switch (ignoreCase ? name.toLowerCase() : name) {
- default: return false;
- }
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
}
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ return null;
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ return null;
+ }
}
diff --git a/components/camel-jackson/src/generated/java/org/apache/camel/component/jackson/JacksonDataFormatConfigurer.java b/components/camel-jackson/src/generated/java/org/apache/camel/component/jackson/JacksonDataFormatConfigurer.java
index 655bb9a4eea..f6afa2c494c 100644
--- a/components/camel-jackson/src/generated/java/org/apache/camel/component/jackson/JacksonDataFormatConfigurer.java
+++ b/components/camel-jackson/src/generated/java/org/apache/camel/component/jackson/JacksonDataFormatConfigurer.java
@@ -2,69 +2,203 @@
package org.apache.camel.component.jackson;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.component.jackson.JacksonDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class JacksonDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class JacksonDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("AllowJmsType", boolean.class);
+ map.put("AllowUnmarshallType", boolean.class);
+ map.put("AutoDiscoverObjectMapper", boolean.class);
+ map.put("AutoDiscoverSchemaResolver", boolean.class);
+ map.put("CollectionType", java.lang.Class.class);
+ map.put("CombineUnicodeSurrogates", boolean.class);
+ map.put("ContentTypeHeader", boolean.class);
+ map.put("DisableFeatures", java.lang.String.class);
+ map.put("EnableFeatures", java.lang.String.class);
+ map.put("Include", java.lang.String.class);
+ map.put("JsonView", java.lang.Class.class);
+ map.put("MaxStringLength", int.class);
+ map.put("ModuleClassNames", java.lang.String.class);
+ map.put("ModuleRefs", java.lang.String.class);
+ map.put("NamingStrategy", java.lang.String.class);
+ map.put("ObjectMapper", com.fasterxml.jackson.databind.ObjectMapper.class);
+ map.put("PrettyPrint", boolean.class);
+ map.put("SchemaResolver", org.apache.camel.component.jackson.SchemaResolver.class);
+ map.put("Timezone", java.util.TimeZone.class);
+ map.put("UnmarshalType", java.lang.Class.class);
+ map.put("UseDefaultObjectMapper", boolean.class);
+ map.put("UseList", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- JacksonDataFormat dataformat = (JacksonDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ JacksonDataFormat target = (JacksonDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "objectmapper":
- case "objectMapper": dataformat.setObjectMapper(property(camelContext, com.fasterxml.jackson.databind.ObjectMapper.class, value)); return true;
- case "usedefaultobjectmapper":
- case "useDefaultObjectMapper": dataformat.setUseDefaultObjectMapper(property(camelContext, boolean.class, value)); return true;
- case "combineunicodesurrogates":
- case "combineUnicodeSurrogates": dataformat.setCombineUnicodeSurrogates(property(camelContext, boolean.class, value)); return true;
+ case "allowjmstype":
+ case "allowJmsType": target.setAllowJmsType(property(camelContext, boolean.class, value)); return true;
+ case "allowunmarshalltype":
+ case "allowUnmarshallType": target.setAllowUnmarshallType(property(camelContext, boolean.class, value)); return true;
+ case "autodiscoverobjectmapper":
+ case "autoDiscoverObjectMapper": target.setAutoDiscoverObjectMapper(property(camelContext, boolean.class, value)); return true;
+ case "autodiscoverschemaresolver":
+ case "autoDiscoverSchemaResolver": target.setAutoDiscoverSchemaResolver(property(camelContext, boolean.class, value)); return true;
case "collectiontype":
- case "collectionType": dataformat.setCollectionType(property(camelContext, java.lang.Class.class, value)); return true;
+ case "collectionType": target.setCollectionType(property(camelContext, java.lang.Class.class, value)); return true;
+ case "combineunicodesurrogates":
+ case "combineUnicodeSurrogates": target.setCombineUnicodeSurrogates(property(camelContext, boolean.class, value)); return true;
+ case "contenttypeheader":
+ case "contentTypeHeader": target.setContentTypeHeader(property(camelContext, boolean.class, value)); return true;
+ case "disablefeatures":
+ case "disableFeatures": target.setDisableFeatures(property(camelContext, java.lang.String.class, value)); return true;
+ case "enablefeatures":
+ case "enableFeatures": target.setEnableFeatures(property(camelContext, java.lang.String.class, value)); return true;
+ case "include": target.setInclude(property(camelContext, java.lang.String.class, value)); return true;
+ case "jsonview":
+ case "jsonView": target.setJsonView(property(camelContext, java.lang.Class.class, value)); return true;
+ case "maxstringlength":
+ case "maxStringLength": target.setMaxStringLength(property(camelContext, int.class, value)); return true;
case "moduleclassnames":
- case "moduleClassNames": dataformat.setModuleClassNames(property(camelContext, java.lang.String.class, value)); return true;
+ case "moduleClassNames": target.setModuleClassNames(property(camelContext, java.lang.String.class, value)); return true;
case "modulerefs":
- case "moduleRefs": dataformat.setModuleRefs(property(camelContext, java.lang.String.class, value)); return true;
+ case "moduleRefs": target.setModuleRefs(property(camelContext, java.lang.String.class, value)); return true;
+ case "namingstrategy":
+ case "namingStrategy": target.setNamingStrategy(property(camelContext, java.lang.String.class, value)); return true;
+ case "objectmapper":
+ case "objectMapper": target.setObjectMapper(property(camelContext, com.fasterxml.jackson.databind.ObjectMapper.class, value)); return true;
+ case "prettyprint":
+ case "prettyPrint": target.setPrettyPrint(property(camelContext, boolean.class, value)); return true;
+ case "schemaresolver":
+ case "schemaResolver": target.setSchemaResolver(property(camelContext, org.apache.camel.component.jackson.SchemaResolver.class, value)); return true;
+ case "timezone": target.setTimezone(property(camelContext, java.util.TimeZone.class, value)); return true;
case "unmarshaltype":
- case "unmarshalType": dataformat.setUnmarshalType(property(camelContext, java.lang.Class.class, value)); return true;
+ case "unmarshalType": target.setUnmarshalType(property(camelContext, java.lang.Class.class, value)); return true;
+ case "usedefaultobjectmapper":
+ case "useDefaultObjectMapper": target.setUseDefaultObjectMapper(property(camelContext, boolean.class, value)); return true;
+ case "uselist":
+ case "useList": target.setUseList(property(camelContext, boolean.class, value)); return true;
+ default: return false;
+ }
+ }
+
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowjmstype":
+ case "allowJmsType": return boolean.class;
+ case "allowunmarshalltype":
+ case "allowUnmarshallType": return boolean.class;
+ case "autodiscoverobjectmapper":
+ case "autoDiscoverObjectMapper": return boolean.class;
+ case "autodiscoverschemaresolver":
+ case "autoDiscoverSchemaResolver": return boolean.class;
+ case "collectiontype":
+ case "collectionType": return java.lang.Class.class;
+ case "combineunicodesurrogates":
+ case "combineUnicodeSurrogates": return boolean.class;
+ case "contenttypeheader":
+ case "contentTypeHeader": return boolean.class;
+ case "disablefeatures":
+ case "disableFeatures": return java.lang.String.class;
+ case "enablefeatures":
+ case "enableFeatures": return java.lang.String.class;
+ case "include": return java.lang.String.class;
case "jsonview":
- case "jsonView": dataformat.setJsonView(property(camelContext, java.lang.Class.class, value)); return true;
- case "include": dataformat.setInclude(property(camelContext, java.lang.String.class, value)); return true;
+ case "jsonView": return java.lang.Class.class;
+ case "maxstringlength":
+ case "maxStringLength": return int.class;
+ case "moduleclassnames":
+ case "moduleClassNames": return java.lang.String.class;
+ case "modulerefs":
+ case "moduleRefs": return java.lang.String.class;
+ case "namingstrategy":
+ case "namingStrategy": return java.lang.String.class;
+ case "objectmapper":
+ case "objectMapper": return com.fasterxml.jackson.databind.ObjectMapper.class;
case "prettyprint":
- case "prettyPrint": dataformat.setPrettyPrint(property(camelContext, boolean.class, value)); return true;
- case "allowjmstype":
- case "allowJmsType": dataformat.setAllowJmsType(property(camelContext, boolean.class, value)); return true;
+ case "prettyPrint": return boolean.class;
+ case "schemaresolver":
+ case "schemaResolver": return org.apache.camel.component.jackson.SchemaResolver.class;
+ case "timezone": return java.util.TimeZone.class;
+ case "unmarshaltype":
+ case "unmarshalType": return java.lang.Class.class;
+ case "usedefaultobjectmapper":
+ case "useDefaultObjectMapper": return boolean.class;
case "uselist":
- case "useList": dataformat.setUseList(property(camelContext, boolean.class, value)); return true;
- case "enablefeatures":
- case "enableFeatures": dataformat.setEnableFeatures(property(camelContext, java.lang.String.class, value)); return true;
- case "disablefeatures":
- case "disableFeatures": dataformat.setDisableFeatures(property(camelContext, java.lang.String.class, value)); return true;
+ case "useList": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ JacksonDataFormat target = (JacksonDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowjmstype":
+ case "allowJmsType": return target.isAllowJmsType();
case "allowunmarshalltype":
- case "allowUnmarshallType": dataformat.setAllowUnmarshallType(property(camelContext, boolean.class, value)); return true;
- case "contenttypeheader":
- case "contentTypeHeader": dataformat.setContentTypeHeader(property(camelContext, boolean.class, value)); return true;
- case "timezone": dataformat.setTimezone(property(camelContext, java.util.TimeZone.class, value)); return true;
+ case "allowUnmarshallType": return target.isAllowUnmarshallType();
case "autodiscoverobjectmapper":
- case "autoDiscoverObjectMapper": dataformat.setAutoDiscoverObjectMapper(property(camelContext, boolean.class, value)); return true;
- case "schemaresolver":
- case "schemaResolver": dataformat.setSchemaResolver(property(camelContext, org.apache.camel.component.jackson.SchemaResolver.class, value)); return true;
+ case "autoDiscoverObjectMapper": return target.isAutoDiscoverObjectMapper();
case "autodiscoverschemaresolver":
- case "autoDiscoverSchemaResolver": dataformat.setAutoDiscoverSchemaResolver(property(camelContext, boolean.class, value)); return true;
- case "namingstrategy":
- case "namingStrategy": dataformat.setNamingStrategy(property(camelContext, java.lang.String.class, value)); return true;
+ case "autoDiscoverSchemaResolver": return target.isAutoDiscoverSchemaResolver();
+ case "collectiontype":
+ case "collectionType": return target.getCollectionType();
+ case "combineunicodesurrogates":
+ case "combineUnicodeSurrogates": return target.isCombineUnicodeSurrogates();
+ case "contenttypeheader":
+ case "contentTypeHeader": return target.isContentTypeHeader();
+ case "disablefeatures":
+ case "disableFeatures": return target.getDisableFeatures();
+ case "enablefeatures":
+ case "enableFeatures": return target.getEnableFeatures();
+ case "include": return target.getInclude();
+ case "jsonview":
+ case "jsonView": return target.getJsonView();
case "maxstringlength":
- case "maxStringLength": dataformat.setMaxStringLength(property(camelContext, int.class, value)); return true;
- default: return false;
+ case "maxStringLength": return target.getMaxStringLength();
+ case "moduleclassnames":
+ case "moduleClassNames": return target.getModuleClassNames();
+ case "modulerefs":
+ case "moduleRefs": return target.getModuleRefs();
+ case "namingstrategy":
+ case "namingStrategy": return target.getNamingStrategy();
+ case "objectmapper":
+ case "objectMapper": return target.getObjectMapper();
+ case "prettyprint":
+ case "prettyPrint": return target.isPrettyPrint();
+ case "schemaresolver":
+ case "schemaResolver": return target.getSchemaResolver();
+ case "timezone": return target.getTimezone();
+ case "unmarshaltype":
+ case "unmarshalType": return target.getUnmarshalType();
+ case "usedefaultobjectmapper":
+ case "useDefaultObjectMapper": return target.isUseDefaultObjectMapper();
+ case "uselist":
+ case "useList": return target.isUseList();
+ default: return null;
}
}
-
}
diff --git a/components/camel-jacksonxml/src/generated/java/org/apache/camel/component/jacksonxml/JacksonXMLDataFormatConfigurer.java b/components/camel-jacksonxml/src/generated/java/org/apache/camel/component/jacksonxml/JacksonXMLDataFormatConfigurer.java
index 6b5ec1d09cb..cf23216ee9f 100644
--- a/components/camel-jacksonxml/src/generated/java/org/apache/camel/component/jacksonxml/JacksonXMLDataFormatConfigurer.java
+++ b/components/camel-jacksonxml/src/generated/java/org/apache/camel/component/jacksonxml/JacksonXMLDataFormatConfigurer.java
@@ -2,59 +2,168 @@
package org.apache.camel.component.jacksonxml;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.component.jacksonxml.JacksonXMLDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class JacksonXMLDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class JacksonXMLDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("AllowJmsType", boolean.class);
+ map.put("AllowUnmarshallType", boolean.class);
+ map.put("CollectionType", java.lang.Class.class);
+ map.put("ContentTypeHeader", boolean.class);
+ map.put("DisableFeatures", java.lang.String.class);
+ map.put("EnableFeatures", java.lang.String.class);
+ map.put("EnableJaxbAnnotationModule", boolean.class);
+ map.put("Include", java.lang.String.class);
+ map.put("JsonView", java.lang.Class.class);
+ map.put("MaxStringLength", int.class);
+ map.put("ModuleClassNames", java.lang.String.class);
+ map.put("ModuleRefs", java.lang.String.class);
+ map.put("PrettyPrint", boolean.class);
+ map.put("Timezone", java.util.TimeZone.class);
+ map.put("UnmarshalType", java.lang.Class.class);
+ map.put("UseList", boolean.class);
+ map.put("XmlMapper", com.fasterxml.jackson.dataformat.xml.XmlMapper.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- JacksonXMLDataFormat dataformat = (JacksonXMLDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ JacksonXMLDataFormat target = (JacksonXMLDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "xmlmapper":
- case "xmlMapper": dataformat.setXmlMapper(property(camelContext, com.fasterxml.jackson.dataformat.xml.XmlMapper.class, value)); return true;
+ case "allowjmstype":
+ case "allowJmsType": target.setAllowJmsType(property(camelContext, boolean.class, value)); return true;
+ case "allowunmarshalltype":
+ case "allowUnmarshallType": target.setAllowUnmarshallType(property(camelContext, boolean.class, value)); return true;
case "collectiontype":
- case "collectionType": dataformat.setCollectionType(property(camelContext, java.lang.Class.class, value)); return true;
+ case "collectionType": target.setCollectionType(property(camelContext, java.lang.Class.class, value)); return true;
+ case "contenttypeheader":
+ case "contentTypeHeader": target.setContentTypeHeader(property(camelContext, boolean.class, value)); return true;
+ case "disablefeatures":
+ case "disableFeatures": target.setDisableFeatures(property(camelContext, java.lang.String.class, value)); return true;
+ case "enablefeatures":
+ case "enableFeatures": target.setEnableFeatures(property(camelContext, java.lang.String.class, value)); return true;
+ case "enablejaxbannotationmodule":
+ case "enableJaxbAnnotationModule": target.setEnableJaxbAnnotationModule(property(camelContext, boolean.class, value)); return true;
+ case "include": target.setInclude(property(camelContext, java.lang.String.class, value)); return true;
+ case "jsonview":
+ case "jsonView": target.setJsonView(property(camelContext, java.lang.Class.class, value)); return true;
+ case "maxstringlength":
+ case "maxStringLength": target.setMaxStringLength(property(camelContext, int.class, value)); return true;
case "moduleclassnames":
- case "moduleClassNames": dataformat.setModuleClassNames(property(camelContext, java.lang.String.class, value)); return true;
+ case "moduleClassNames": target.setModuleClassNames(property(camelContext, java.lang.String.class, value)); return true;
case "modulerefs":
- case "moduleRefs": dataformat.setModuleRefs(property(camelContext, java.lang.String.class, value)); return true;
+ case "moduleRefs": target.setModuleRefs(property(camelContext, java.lang.String.class, value)); return true;
+ case "prettyprint":
+ case "prettyPrint": target.setPrettyPrint(property(camelContext, boolean.class, value)); return true;
+ case "timezone": target.setTimezone(property(camelContext, java.util.TimeZone.class, value)); return true;
case "unmarshaltype":
- case "unmarshalType": dataformat.setUnmarshalType(property(camelContext, java.lang.Class.class, value)); return true;
+ case "unmarshalType": target.setUnmarshalType(property(camelContext, java.lang.Class.class, value)); return true;
+ case "uselist":
+ case "useList": target.setUseList(property(camelContext, boolean.class, value)); return true;
+ case "xmlmapper":
+ case "xmlMapper": target.setXmlMapper(property(camelContext, com.fasterxml.jackson.dataformat.xml.XmlMapper.class, value)); return true;
+ default: return false;
+ }
+ }
+
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowjmstype":
+ case "allowJmsType": return boolean.class;
+ case "allowunmarshalltype":
+ case "allowUnmarshallType": return boolean.class;
+ case "collectiontype":
+ case "collectionType": return java.lang.Class.class;
+ case "contenttypeheader":
+ case "contentTypeHeader": return boolean.class;
+ case "disablefeatures":
+ case "disableFeatures": return java.lang.String.class;
+ case "enablefeatures":
+ case "enableFeatures": return java.lang.String.class;
+ case "enablejaxbannotationmodule":
+ case "enableJaxbAnnotationModule": return boolean.class;
+ case "include": return java.lang.String.class;
case "jsonview":
- case "jsonView": dataformat.setJsonView(property(camelContext, java.lang.Class.class, value)); return true;
- case "include": dataformat.setInclude(property(camelContext, java.lang.String.class, value)); return true;
+ case "jsonView": return java.lang.Class.class;
+ case "maxstringlength":
+ case "maxStringLength": return int.class;
+ case "moduleclassnames":
+ case "moduleClassNames": return java.lang.String.class;
+ case "modulerefs":
+ case "moduleRefs": return java.lang.String.class;
case "prettyprint":
- case "prettyPrint": dataformat.setPrettyPrint(property(camelContext, boolean.class, value)); return true;
- case "allowjmstype":
- case "allowJmsType": dataformat.setAllowJmsType(property(camelContext, boolean.class, value)); return true;
+ case "prettyPrint": return boolean.class;
+ case "timezone": return java.util.TimeZone.class;
+ case "unmarshaltype":
+ case "unmarshalType": return java.lang.Class.class;
case "uselist":
- case "useList": dataformat.setUseList(property(camelContext, boolean.class, value)); return true;
- case "enablejaxbannotationmodule":
- case "enableJaxbAnnotationModule": dataformat.setEnableJaxbAnnotationModule(property(camelContext, boolean.class, value)); return true;
- case "enablefeatures":
- case "enableFeatures": dataformat.setEnableFeatures(property(camelContext, java.lang.String.class, value)); return true;
- case "disablefeatures":
- case "disableFeatures": dataformat.setDisableFeatures(property(camelContext, java.lang.String.class, value)); return true;
+ case "useList": return boolean.class;
+ case "xmlmapper":
+ case "xmlMapper": return com.fasterxml.jackson.dataformat.xml.XmlMapper.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ JacksonXMLDataFormat target = (JacksonXMLDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowjmstype":
+ case "allowJmsType": return target.isAllowJmsType();
case "allowunmarshalltype":
- case "allowUnmarshallType": dataformat.setAllowUnmarshallType(property(camelContext, boolean.class, value)); return true;
+ case "allowUnmarshallType": return target.isAllowUnmarshallType();
+ case "collectiontype":
+ case "collectionType": return target.getCollectionType();
case "contenttypeheader":
- case "contentTypeHeader": dataformat.setContentTypeHeader(property(camelContext, boolean.class, value)); return true;
- case "timezone": dataformat.setTimezone(property(camelContext, java.util.TimeZone.class, value)); return true;
+ case "contentTypeHeader": return target.isContentTypeHeader();
+ case "disablefeatures":
+ case "disableFeatures": return target.getDisableFeatures();
+ case "enablefeatures":
+ case "enableFeatures": return target.getEnableFeatures();
+ case "enablejaxbannotationmodule":
+ case "enableJaxbAnnotationModule": return target.isEnableJaxbAnnotationModule();
+ case "include": return target.getInclude();
+ case "jsonview":
+ case "jsonView": return target.getJsonView();
case "maxstringlength":
- case "maxStringLength": dataformat.setMaxStringLength(property(camelContext, int.class, value)); return true;
- default: return false;
+ case "maxStringLength": return target.getMaxStringLength();
+ case "moduleclassnames":
+ case "moduleClassNames": return target.getModuleClassNames();
+ case "modulerefs":
+ case "moduleRefs": return target.getModuleRefs();
+ case "prettyprint":
+ case "prettyPrint": return target.isPrettyPrint();
+ case "timezone": return target.getTimezone();
+ case "unmarshaltype":
+ case "unmarshalType": return target.getUnmarshalType();
+ case "uselist":
+ case "useList": return target.isUseList();
+ case "xmlmapper":
+ case "xmlMapper": return target.getXmlMapper();
+ default: return null;
}
}
-
}
diff --git a/components/camel-jaxb/src/generated/java/org/apache/camel/converter/jaxb/JaxbDataFormatConfigurer.java b/components/camel-jaxb/src/generated/java/org/apache/camel/converter/jaxb/JaxbDataFormatConfigurer.java
index fe14067724b..7841aed0604 100644
--- a/components/camel-jaxb/src/generated/java/org/apache/camel/converter/jaxb/JaxbDataFormatConfigurer.java
+++ b/components/camel-jaxb/src/generated/java/org/apache/camel/converter/jaxb/JaxbDataFormatConfigurer.java
@@ -2,62 +2,179 @@
package org.apache.camel.converter.jaxb;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.converter.jaxb.JaxbDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class JaxbDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class JaxbDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("AccessExternalSchemaProtocols", java.lang.String.class);
+ map.put("ContentTypeHeader", boolean.class);
+ map.put("ContextPath", java.lang.String.class);
+ map.put("ContextPathIsClassName", boolean.class);
+ map.put("Encoding", java.lang.String.class);
+ map.put("FilterNonXmlChars", boolean.class);
+ map.put("Fragment", boolean.class);
+ map.put("IgnoreJAXBElement", boolean.class);
+ map.put("JaxbProviderProperties", java.util.Map.class);
+ map.put("MustBeJAXBElement", boolean.class);
+ map.put("NoNamespaceSchemaLocation", java.lang.String.class);
+ map.put("ObjectFactory", boolean.class);
+ map.put("PartClass", java.lang.Class.class);
+ map.put("PartNamespace", javax.xml.namespace.QName.class);
+ map.put("PrettyPrint", boolean.class);
+ map.put("Schema", java.lang.String.class);
+ map.put("SchemaLocation", java.lang.String.class);
+ map.put("SchemaSeverityLevel", int.class);
+ map.put("XmlStreamWriterWrapper", org.apache.camel.converter.jaxb.JaxbXmlStreamWriterWrapper.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- JaxbDataFormat dataformat = (JaxbDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ JaxbDataFormat target = (JaxbDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
+ case "accessexternalschemaprotocols":
+ case "accessExternalSchemaProtocols": target.setAccessExternalSchemaProtocols(property(camelContext, java.lang.String.class, value)); return true;
+ case "contenttypeheader":
+ case "contentTypeHeader": target.setContentTypeHeader(property(camelContext, boolean.class, value)); return true;
case "contextpath":
- case "contextPath": dataformat.setContextPath(property(camelContext, java.lang.String.class, value)); return true;
+ case "contextPath": target.setContextPath(property(camelContext, java.lang.String.class, value)); return true;
case "contextpathisclassname":
- case "contextPathIsClassName": dataformat.setContextPathIsClassName(property(camelContext, boolean.class, value)); return true;
- case "schema": dataformat.setSchema(property(camelContext, java.lang.String.class, value)); return true;
- case "schemaseveritylevel":
- case "schemaSeverityLevel": dataformat.setSchemaSeverityLevel(property(camelContext, int.class, value)); return true;
- case "schemalocation":
- case "schemaLocation": dataformat.setSchemaLocation(property(camelContext, java.lang.String.class, value)); return true;
+ case "contextPathIsClassName": target.setContextPathIsClassName(property(camelContext, boolean.class, value)); return true;
+ case "encoding": target.setEncoding(property(camelContext, java.lang.String.class, value)); return true;
+ case "filternonxmlchars":
+ case "filterNonXmlChars": target.setFilterNonXmlChars(property(camelContext, boolean.class, value)); return true;
+ case "fragment": target.setFragment(property(camelContext, boolean.class, value)); return true;
+ case "ignorejaxbelement":
+ case "ignoreJAXBElement": target.setIgnoreJAXBElement(property(camelContext, boolean.class, value)); return true;
+ case "jaxbproviderproperties":
+ case "jaxbProviderProperties": target.setJaxbProviderProperties(property(camelContext, java.util.Map.class, value)); return true;
+ case "mustbejaxbelement":
+ case "mustBeJAXBElement": target.setMustBeJAXBElement(property(camelContext, boolean.class, value)); return true;
case "nonamespaceschemalocation":
- case "noNamespaceSchemaLocation": dataformat.setNoNamespaceSchemaLocation(property(camelContext, java.lang.String.class, value)); return true;
- case "prettyprint":
- case "prettyPrint": dataformat.setPrettyPrint(property(camelContext, boolean.class, value)); return true;
+ case "noNamespaceSchemaLocation": target.setNoNamespaceSchemaLocation(property(camelContext, java.lang.String.class, value)); return true;
case "objectfactory":
- case "objectFactory": dataformat.setObjectFactory(property(camelContext, boolean.class, value)); return true;
+ case "objectFactory": target.setObjectFactory(property(camelContext, boolean.class, value)); return true;
+ case "partclass":
+ case "partClass": target.setPartClass(property(camelContext, java.lang.Class.class, value)); return true;
+ case "partnamespace":
+ case "partNamespace": target.setPartNamespace(property(camelContext, javax.xml.namespace.QName.class, value)); return true;
+ case "prettyprint":
+ case "prettyPrint": target.setPrettyPrint(property(camelContext, boolean.class, value)); return true;
+ case "schema": target.setSchema(property(camelContext, java.lang.String.class, value)); return true;
+ case "schemalocation":
+ case "schemaLocation": target.setSchemaLocation(property(camelContext, java.lang.String.class, value)); return true;
+ case "schemaseveritylevel":
+ case "schemaSeverityLevel": target.setSchemaSeverityLevel(property(camelContext, int.class, value)); return true;
+ case "xmlstreamwriterwrapper":
+ case "xmlStreamWriterWrapper": target.setXmlStreamWriterWrapper(property(camelContext, org.apache.camel.converter.jaxb.JaxbXmlStreamWriterWrapper.class, value)); return true;
+ default: return false;
+ }
+ }
+
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "accessexternalschemaprotocols":
+ case "accessExternalSchemaProtocols": return java.lang.String.class;
+ case "contenttypeheader":
+ case "contentTypeHeader": return boolean.class;
+ case "contextpath":
+ case "contextPath": return java.lang.String.class;
+ case "contextpathisclassname":
+ case "contextPathIsClassName": return boolean.class;
+ case "encoding": return java.lang.String.class;
+ case "filternonxmlchars":
+ case "filterNonXmlChars": return boolean.class;
+ case "fragment": return boolean.class;
case "ignorejaxbelement":
- case "ignoreJAXBElement": dataformat.setIgnoreJAXBElement(property(camelContext, boolean.class, value)); return true;
+ case "ignoreJAXBElement": return boolean.class;
+ case "jaxbproviderproperties":
+ case "jaxbProviderProperties": return java.util.Map.class;
case "mustbejaxbelement":
- case "mustBeJAXBElement": dataformat.setMustBeJAXBElement(property(camelContext, boolean.class, value)); return true;
- case "filternonxmlchars":
- case "filterNonXmlChars": dataformat.setFilterNonXmlChars(property(camelContext, boolean.class, value)); return true;
- case "encoding": dataformat.setEncoding(property(camelContext, java.lang.String.class, value)); return true;
- case "fragment": dataformat.setFragment(property(camelContext, boolean.class, value)); return true;
- case "partnamespace":
- case "partNamespace": dataformat.setPartNamespace(property(camelContext, javax.xml.namespace.QName.class, value)); return true;
+ case "mustBeJAXBElement": return boolean.class;
+ case "nonamespaceschemalocation":
+ case "noNamespaceSchemaLocation": return java.lang.String.class;
+ case "objectfactory":
+ case "objectFactory": return boolean.class;
case "partclass":
- case "partClass": dataformat.setPartClass(property(camelContext, java.lang.Class.class, value)); return true;
+ case "partClass": return java.lang.Class.class;
+ case "partnamespace":
+ case "partNamespace": return javax.xml.namespace.QName.class;
+ case "prettyprint":
+ case "prettyPrint": return boolean.class;
+ case "schema": return java.lang.String.class;
+ case "schemalocation":
+ case "schemaLocation": return java.lang.String.class;
+ case "schemaseveritylevel":
+ case "schemaSeverityLevel": return int.class;
case "xmlstreamwriterwrapper":
- case "xmlStreamWriterWrapper": dataformat.setXmlStreamWriterWrapper(property(camelContext, org.apache.camel.converter.jaxb.JaxbXmlStreamWriterWrapper.class, value)); return true;
- case "jaxbproviderproperties":
- case "jaxbProviderProperties": dataformat.setJaxbProviderProperties(property(camelContext, java.util.Map.class, value)); return true;
- case "contenttypeheader":
- case "contentTypeHeader": dataformat.setContentTypeHeader(property(camelContext, boolean.class, value)); return true;
- case "accessexternalschemaprotocols":
- case "accessExternalSchemaProtocols": dataformat.setAccessExternalSchemaProtocols(property(camelContext, java.lang.String.class, value)); return true;
- default: return false;
+ case "xmlStreamWriterWrapper": return org.apache.camel.converter.jaxb.JaxbXmlStreamWriterWrapper.class;
+ default: return null;
}
}
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ JaxbDataFormat target = (JaxbDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "accessexternalschemaprotocols":
+ case "accessExternalSchemaProtocols": return target.getAccessExternalSchemaProtocols();
+ case "contenttypeheader":
+ case "contentTypeHeader": return target.isContentTypeHeader();
+ case "contextpath":
+ case "contextPath": return target.getContextPath();
+ case "contextpathisclassname":
+ case "contextPathIsClassName": return target.isContextPathIsClassName();
+ case "encoding": return target.getEncoding();
+ case "filternonxmlchars":
+ case "filterNonXmlChars": return target.isFilterNonXmlChars();
+ case "fragment": return target.isFragment();
+ case "ignorejaxbelement":
+ case "ignoreJAXBElement": return target.isIgnoreJAXBElement();
+ case "jaxbproviderproperties":
+ case "jaxbProviderProperties": return target.getJaxbProviderProperties();
+ case "mustbejaxbelement":
+ case "mustBeJAXBElement": return target.isMustBeJAXBElement();
+ case "nonamespaceschemalocation":
+ case "noNamespaceSchemaLocation": return target.getNoNamespaceSchemaLocation();
+ case "objectfactory":
+ case "objectFactory": return target.isObjectFactory();
+ case "partclass":
+ case "partClass": return target.getPartClass();
+ case "partnamespace":
+ case "partNamespace": return target.getPartNamespace();
+ case "prettyprint":
+ case "prettyPrint": return target.isPrettyPrint();
+ case "schema": return target.getSchema();
+ case "schemalocation":
+ case "schemaLocation": return target.getSchemaLocation();
+ case "schemaseveritylevel":
+ case "schemaSeverityLevel": return target.getSchemaSeverityLevel();
+ case "xmlstreamwriterwrapper":
+ case "xmlStreamWriterWrapper": return target.getXmlStreamWriterWrapper();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-jsonapi/src/generated/java/org/apache/camel/component/jsonapi/JsonApiDataFormatConfigurer.java b/components/camel-jsonapi/src/generated/java/org/apache/camel/component/jsonapi/JsonApiDataFormatConfigurer.java
index b12eaef72d7..711c1cdfd94 100644
--- a/components/camel-jsonapi/src/generated/java/org/apache/camel/component/jsonapi/JsonApiDataFormatConfigurer.java
+++ b/components/camel-jsonapi/src/generated/java/org/apache/camel/component/jsonapi/JsonApiDataFormatConfigurer.java
@@ -2,31 +2,69 @@
package org.apache.camel.component.jsonapi;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.component.jsonapi.JsonApiDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class JsonApiDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class JsonApiDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("DataFormatTypes", java.lang.String.class);
+ map.put("MainFormatType", java.lang.String.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- JsonApiDataFormat dataformat = (JsonApiDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ JsonApiDataFormat target = (JsonApiDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "dataformattypes":
- case "dataFormatTypes": dataformat.setDataFormatTypes(property(camelContext, java.lang.String.class, value)); return true;
+ case "dataFormatTypes": target.setDataFormatTypes(property(camelContext, java.lang.String.class, value)); return true;
case "mainformattype":
- case "mainFormatType": dataformat.setMainFormatType(property(camelContext, java.lang.String.class, value)); return true;
+ case "mainFormatType": target.setMainFormatType(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "dataformattypes":
+ case "dataFormatTypes": return java.lang.String.class;
+ case "mainformattype":
+ case "mainFormatType": return java.lang.String.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ JsonApiDataFormat target = (JsonApiDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "dataformattypes":
+ case "dataFormatTypes": return target.getDataFormatTypes();
+ case "mainformattype":
+ case "mainFormatType": return target.getMainFormatType();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-jsonb/src/generated/java/org/apache/camel/component/jsonb/JsonbDataFormatConfigurer.java b/components/camel-jsonb/src/generated/java/org/apache/camel/component/jsonb/JsonbDataFormatConfigurer.java
index 89dde50a631..13167c6a557 100644
--- a/components/camel-jsonb/src/generated/java/org/apache/camel/component/jsonb/JsonbDataFormatConfigurer.java
+++ b/components/camel-jsonb/src/generated/java/org/apache/camel/component/jsonb/JsonbDataFormatConfigurer.java
@@ -2,33 +2,76 @@
package org.apache.camel.component.jsonb;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.component.jsonb.JsonbDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class JsonbDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class JsonbDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("ObjectMapper", jakarta.json.bind.Jsonb.class);
+ map.put("PrettyPrint", boolean.class);
+ map.put("UnmarshalType", java.lang.Class.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- JsonbDataFormat dataformat = (JsonbDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ JsonbDataFormat target = (JsonbDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "objectmapper":
- case "objectMapper": dataformat.setObjectMapper(property(camelContext, jakarta.json.bind.Jsonb.class, value)); return true;
- case "unmarshaltype":
- case "unmarshalType": dataformat.setUnmarshalType(property(camelContext, java.lang.Class.class, value)); return true;
+ case "objectMapper": target.setObjectMapper(property(camelContext, jakarta.json.bind.Jsonb.class, value)); return true;
case "prettyprint":
- case "prettyPrint": dataformat.setPrettyPrint(property(camelContext, boolean.class, value)); return true;
+ case "prettyPrint": target.setPrettyPrint(property(camelContext, boolean.class, value)); return true;
+ case "unmarshaltype":
+ case "unmarshalType": target.setUnmarshalType(property(camelContext, java.lang.Class.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "objectmapper":
+ case "objectMapper": return jakarta.json.bind.Jsonb.class;
+ case "prettyprint":
+ case "prettyPrint": return boolean.class;
+ case "unmarshaltype":
+ case "unmarshalType": return java.lang.Class.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ JsonbDataFormat target = (JsonbDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "objectmapper":
+ case "objectMapper": return target.getObjectMapper();
+ case "prettyprint":
+ case "prettyPrint": return target.isPrettyPrint();
+ case "unmarshaltype":
+ case "unmarshalType": return target.getUnmarshalType();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-lzf/src/generated/java/org/apache/camel/dataformat/lzf/LZFDataFormatConfigurer.java b/components/camel-lzf/src/generated/java/org/apache/camel/dataformat/lzf/LZFDataFormatConfigurer.java
index 008b62b446a..0209ce8ac4f 100644
--- a/components/camel-lzf/src/generated/java/org/apache/camel/dataformat/lzf/LZFDataFormatConfigurer.java
+++ b/components/camel-lzf/src/generated/java/org/apache/camel/dataformat/lzf/LZFDataFormatConfigurer.java
@@ -2,29 +2,62 @@
package org.apache.camel.dataformat.lzf;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.lzf.LZFDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class LZFDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class LZFDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("UsingParallelCompression", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- LZFDataFormat dataformat = (LZFDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ LZFDataFormat target = (LZFDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "usingparallelcompression":
- case "usingParallelCompression": dataformat.setUsingParallelCompression(property(camelContext, boolean.class, value)); return true;
+ case "usingParallelCompression": target.setUsingParallelCompression(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "usingparallelcompression":
+ case "usingParallelCompression": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ LZFDataFormat target = (LZFDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "usingparallelcompression":
+ case "usingParallelCompression": return target.isUsingParallelCompression();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-mail/src/generated/java/org/apache/camel/dataformat/mime/multipart/MimeMultipartDataFormatConfigurer.java b/components/camel-mail/src/generated/java/org/apache/camel/dataformat/mime/multipart/MimeMultipartDataFormatConfigurer.java
index 5b38f087b92..62f10562323 100644
--- a/components/camel-mail/src/generated/java/org/apache/camel/dataformat/mime/multipart/MimeMultipartDataFormatConfigurer.java
+++ b/components/camel-mail/src/generated/java/org/apache/camel/dataformat/mime/multipart/MimeMultipartDataFormatConfigurer.java
@@ -2,37 +2,90 @@
package org.apache.camel.dataformat.mime.multipart;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.mime.multipart.MimeMultipartDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class MimeMultipartDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class MimeMultipartDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("BinaryContent", boolean.class);
+ map.put("HeadersInline", boolean.class);
+ map.put("IncludeHeaders", java.lang.String.class);
+ map.put("MultipartSubType", java.lang.String.class);
+ map.put("MultipartWithoutAttachment", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- MimeMultipartDataFormat dataformat = (MimeMultipartDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ MimeMultipartDataFormat target = (MimeMultipartDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
+ case "binarycontent":
+ case "binaryContent": target.setBinaryContent(property(camelContext, boolean.class, value)); return true;
+ case "headersinline":
+ case "headersInline": target.setHeadersInline(property(camelContext, boolean.class, value)); return true;
+ case "includeheaders":
+ case "includeHeaders": target.setIncludeHeaders(property(camelContext, java.lang.String.class, value)); return true;
case "multipartsubtype":
- case "multipartSubType": dataformat.setMultipartSubType(property(camelContext, java.lang.String.class, value)); return true;
+ case "multipartSubType": target.setMultipartSubType(property(camelContext, java.lang.String.class, value)); return true;
case "multipartwithoutattachment":
- case "multipartWithoutAttachment": dataformat.setMultipartWithoutAttachment(property(camelContext, boolean.class, value)); return true;
+ case "multipartWithoutAttachment": target.setMultipartWithoutAttachment(property(camelContext, boolean.class, value)); return true;
+ default: return false;
+ }
+ }
+
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "binarycontent":
+ case "binaryContent": return boolean.class;
case "headersinline":
- case "headersInline": dataformat.setHeadersInline(property(camelContext, boolean.class, value)); return true;
+ case "headersInline": return boolean.class;
case "includeheaders":
- case "includeHeaders": dataformat.setIncludeHeaders(property(camelContext, java.lang.String.class, value)); return true;
- case "binarycontent":
- case "binaryContent": dataformat.setBinaryContent(property(camelContext, boolean.class, value)); return true;
- default: return false;
+ case "includeHeaders": return java.lang.String.class;
+ case "multipartsubtype":
+ case "multipartSubType": return java.lang.String.class;
+ case "multipartwithoutattachment":
+ case "multipartWithoutAttachment": return boolean.class;
+ default: return null;
}
}
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ MimeMultipartDataFormat target = (MimeMultipartDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "binarycontent":
+ case "binaryContent": return target.isBinaryContent();
+ case "headersinline":
+ case "headersInline": return target.isHeadersInline();
+ case "includeheaders":
+ case "includeHeaders": return target.getIncludeHeaders();
+ case "multipartsubtype":
+ case "multipartSubType": return target.getMultipartSubType();
+ case "multipartwithoutattachment":
+ case "multipartWithoutAttachment": return target.isMultipartWithoutAttachment();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/MimeMultipartDataFormat.java b/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/MimeMultipartDataFormat.java
index 6827f43cff5..f38a3d90600 100644
--- a/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/MimeMultipartDataFormat.java
+++ b/components/camel-mail/src/main/java/org/apache/camel/dataformat/mime/multipart/MimeMultipartDataFormat.java
@@ -73,24 +73,52 @@ public class MimeMultipartDataFormat extends DefaultDataFormat {
private Pattern includeHeadersPattern;
private boolean binaryContent;
- public void setBinaryContent(boolean binaryContent) {
- this.binaryContent = binaryContent;
+ public String getMultipartSubType() {
+ return multipartSubType;
+ }
+
+ public void setMultipartSubType(String multipartSubType) {
+ this.multipartSubType = multipartSubType;
+ }
+
+ public boolean isMultipartWithoutAttachment() {
+ return multipartWithoutAttachment;
+ }
+
+ public void setMultipartWithoutAttachment(boolean multipartWithoutAttachment) {
+ this.multipartWithoutAttachment = multipartWithoutAttachment;
+ }
+
+ public boolean isHeadersInline() {
+ return headersInline;
}
public void setHeadersInline(boolean headersInline) {
this.headersInline = headersInline;
}
+ public String getIncludeHeaders() {
+ return includeHeaders;
+ }
+
public void setIncludeHeaders(String includeHeaders) {
this.includeHeaders = includeHeaders;
}
- public void setMultipartWithoutAttachment(boolean multipartWithoutAttachment) {
- this.multipartWithoutAttachment = multipartWithoutAttachment;
+ public Pattern getIncludeHeadersPattern() {
+ return includeHeadersPattern;
}
- public void setMultipartSubType(String multipartSubType) {
- this.multipartSubType = multipartSubType;
+ public void setIncludeHeadersPattern(Pattern includeHeadersPattern) {
+ this.includeHeadersPattern = includeHeadersPattern;
+ }
+
+ public boolean isBinaryContent() {
+ return binaryContent;
+ }
+
+ public void setBinaryContent(boolean binaryContent) {
+ this.binaryContent = binaryContent;
}
@Override
diff --git a/components/camel-parquet-avro/src/generated/java/org/apache/camel/dataformat/parquet/avro/ParquetAvroDataFormatConfigurer.java b/components/camel-parquet-avro/src/generated/java/org/apache/camel/dataformat/parquet/avro/ParquetAvroDataFormatConfigurer.java
index 06bb129fc36..2dd4702fc9e 100644
--- a/components/camel-parquet-avro/src/generated/java/org/apache/camel/dataformat/parquet/avro/ParquetAvroDataFormatConfigurer.java
+++ b/components/camel-parquet-avro/src/generated/java/org/apache/camel/dataformat/parquet/avro/ParquetAvroDataFormatConfigurer.java
@@ -2,31 +2,69 @@
package org.apache.camel.dataformat.parquet.avro;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.parquet.avro.ParquetAvroDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class ParquetAvroDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class ParquetAvroDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("LazyLoad", boolean.class);
+ map.put("UnmarshalType", java.lang.Class.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- ParquetAvroDataFormat dataformat = (ParquetAvroDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ ParquetAvroDataFormat target = (ParquetAvroDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "unmarshaltype":
- case "unmarshalType": dataformat.setUnmarshalType(property(camelContext, java.lang.Class.class, value)); return true;
case "lazyload":
- case "lazyLoad": dataformat.setLazyLoad(property(camelContext, boolean.class, value)); return true;
+ case "lazyLoad": target.setLazyLoad(property(camelContext, boolean.class, value)); return true;
+ case "unmarshaltype":
+ case "unmarshalType": target.setUnmarshalType(property(camelContext, java.lang.Class.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "lazyload":
+ case "lazyLoad": return boolean.class;
+ case "unmarshaltype":
+ case "unmarshalType": return java.lang.Class.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ ParquetAvroDataFormat target = (ParquetAvroDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "lazyload":
+ case "lazyLoad": return target.isLazyLoad();
+ case "unmarshaltype":
+ case "unmarshalType": return target.getUnmarshalType();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-protobuf/src/generated/java/org/apache/camel/dataformat/protobuf/ProtobufDataFormatConfigurer.java b/components/camel-protobuf/src/generated/java/org/apache/camel/dataformat/protobuf/ProtobufDataFormatConfigurer.java
index fdddfc4a9aa..2a1a61b07e4 100644
--- a/components/camel-protobuf/src/generated/java/org/apache/camel/dataformat/protobuf/ProtobufDataFormatConfigurer.java
+++ b/components/camel-protobuf/src/generated/java/org/apache/camel/dataformat/protobuf/ProtobufDataFormatConfigurer.java
@@ -2,31 +2,69 @@
package org.apache.camel.dataformat.protobuf;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.protobuf.ProtobufDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class ProtobufDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class ProtobufDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("ContentTypeFormat", java.lang.String.class);
+ map.put("ContentTypeHeader", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- ProtobufDataFormat dataformat = (ProtobufDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ ProtobufDataFormat target = (ProtobufDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "contenttypeheader":
- case "contentTypeHeader": dataformat.setContentTypeHeader(property(camelContext, boolean.class, value)); return true;
case "contenttypeformat":
- case "contentTypeFormat": dataformat.setContentTypeFormat(property(camelContext, java.lang.String.class, value)); return true;
+ case "contentTypeFormat": target.setContentTypeFormat(property(camelContext, java.lang.String.class, value)); return true;
+ case "contenttypeheader":
+ case "contentTypeHeader": target.setContentTypeHeader(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "contenttypeformat":
+ case "contentTypeFormat": return java.lang.String.class;
+ case "contenttypeheader":
+ case "contentTypeHeader": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ ProtobufDataFormat target = (ProtobufDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "contenttypeformat":
+ case "contentTypeFormat": return target.getContentTypeFormat();
+ case "contenttypeheader":
+ case "contentTypeHeader": return target.isContentTypeHeader();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/ProtobufDataFormat.java b/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/ProtobufDataFormat.java
index 1c591690d8b..fccdc53c619 100644
--- a/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/ProtobufDataFormat.java
+++ b/components/camel-protobuf/src/main/java/org/apache/camel/dataformat/protobuf/ProtobufDataFormat.java
@@ -44,9 +44,8 @@ import org.apache.commons.io.IOUtils;
@Dataformat("protobuf")
@Metadata(excludeProperties = "library,objectMapper,useDefaultObjectMapper,jsonViewTypeName,jsonView,include,allowJmsType," +
- "collectionTypeName,collectionType,useList,combineUnicodeSurrogates,moduleClassNames,moduleRefs,enableFeatures,"
- +
- "disableFeatures,allowUnmarshallType,timezone,autoDiscoverObjectMapper," +
+ "collectionTypeName,collectionType,useList,combineUnicodeSurrogates,moduleClassNames,moduleRefs," +
+ "enableFeatures,disableFeatures,allowUnmarshallType,timezone,autoDiscoverObjectMapper," +
"schemaResolver,autoDiscoverSchemaResolver,unmarshalType,unmarshalTypeName")
public class ProtobufDataFormat extends ServiceSupport
implements DataFormat, DataFormatName, DataFormatContentTypeHeader, CamelContextAware {
@@ -116,6 +115,10 @@ public class ProtobufDataFormat extends ServiceSupport
return contentTypeHeader;
}
+ public String getContentTypeFormat() {
+ return contentTypeFormat;
+ }
+
/*
* Defines a content type format in which protobuf message will be
* serialized/deserialized from(to) the Java been. It can be native protobuf
diff --git a/components/camel-rss/src/generated/java/org/apache/camel/dataformat/rss/RssDataFormatConfigurer.java b/components/camel-rss/src/generated/java/org/apache/camel/dataformat/rss/RssDataFormatConfigurer.java
index 0a4e9250683..4cbfa86d8b3 100644
--- a/components/camel-rss/src/generated/java/org/apache/camel/dataformat/rss/RssDataFormatConfigurer.java
+++ b/components/camel-rss/src/generated/java/org/apache/camel/dataformat/rss/RssDataFormatConfigurer.java
@@ -2,27 +2,47 @@
package org.apache.camel.dataformat.rss;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.rss.RssDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class RssDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class RssDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ ALL_OPTIONS = map;
+ }
+
+ @Override
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ return false;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- RssDataFormat dataformat = (RssDataFormat) target;
- switch (ignoreCase ? name.toLowerCase() : name) {
- default: return false;
- }
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
}
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ return null;
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ return null;
+ }
}
diff --git a/components/camel-smooks/src/generated/java/org/apache/camel/dataformat/smooks/SmooksDataFormatConfigurer.java b/components/camel-smooks/src/generated/java/org/apache/camel/dataformat/smooks/SmooksDataFormatConfigurer.java
index 4381bae9cef..f01a63f7a02 100644
--- a/components/camel-smooks/src/generated/java/org/apache/camel/dataformat/smooks/SmooksDataFormatConfigurer.java
+++ b/components/camel-smooks/src/generated/java/org/apache/camel/dataformat/smooks/SmooksDataFormatConfigurer.java
@@ -2,29 +2,62 @@
package org.apache.camel.dataformat.smooks;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.smooks.SmooksDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class SmooksDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class SmooksDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("SmooksConfig", java.lang.String.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- SmooksDataFormat dataformat = (SmooksDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ SmooksDataFormat target = (SmooksDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "smooksconfig":
- case "smooksConfig": dataformat.setSmooksConfig(property(camelContext, java.lang.String.class, value)); return true;
+ case "smooksConfig": target.setSmooksConfig(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "smooksconfig":
+ case "smooksConfig": return java.lang.String.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ SmooksDataFormat target = (SmooksDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "smooksconfig":
+ case "smooksConfig": return target.getSmooksConfig();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-snakeyaml/src/generated/java/org/apache/camel/component/snakeyaml/SnakeYAMLDataFormatConfigurer.java b/components/camel-snakeyaml/src/generated/java/org/apache/camel/component/snakeyaml/SnakeYAMLDataFormatConfigurer.java
index 1ca3fdd98c8..dd04f97f97e 100644
--- a/components/camel-snakeyaml/src/generated/java/org/apache/camel/component/snakeyaml/SnakeYAMLDataFormatConfigurer.java
+++ b/components/camel-snakeyaml/src/generated/java/org/apache/camel/component/snakeyaml/SnakeYAMLDataFormatConfigurer.java
@@ -2,44 +2,116 @@
package org.apache.camel.component.snakeyaml;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.component.snakeyaml.SnakeYAMLDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class SnakeYAMLDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class SnakeYAMLDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("AllowAnyType", boolean.class);
+ map.put("AllowRecursiveKeys", boolean.class);
+ map.put("Constructor", java.util.function.Function.class);
+ map.put("DumperOptions", java.util.function.Function.class);
+ map.put("MaxAliasesForCollections", int.class);
+ map.put("PrettyFlow", boolean.class);
+ map.put("Representer", java.util.function.Function.class);
+ map.put("Resolver", java.util.function.Function.class);
+ map.put("UnmarshalType", java.lang.Class.class);
+ map.put("UseApplicationContextClassLoader", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- SnakeYAMLDataFormat dataformat = (SnakeYAMLDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ SnakeYAMLDataFormat target = (SnakeYAMLDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "constructor": dataformat.setConstructor(property(camelContext, java.util.function.Function.class, value)); return true;
- case "representer": dataformat.setRepresenter(property(camelContext, java.util.function.Function.class, value)); return true;
+ case "allowanytype":
+ case "allowAnyType": target.setAllowAnyType(property(camelContext, boolean.class, value)); return true;
+ case "allowrecursivekeys":
+ case "allowRecursiveKeys": target.setAllowRecursiveKeys(property(camelContext, boolean.class, value)); return true;
+ case "constructor": target.setConstructor(property(camelContext, java.util.function.Function.class, value)); return true;
case "dumperoptions":
- case "dumperOptions": dataformat.setDumperOptions(property(camelContext, java.util.function.Function.class, value)); return true;
- case "resolver": dataformat.setResolver(property(camelContext, java.util.function.Function.class, value)); return true;
+ case "dumperOptions": target.setDumperOptions(property(camelContext, java.util.function.Function.class, value)); return true;
+ case "maxaliasesforcollections":
+ case "maxAliasesForCollections": target.setMaxAliasesForCollections(property(camelContext, int.class, value)); return true;
+ case "prettyflow":
+ case "prettyFlow": target.setPrettyFlow(property(camelContext, boolean.class, value)); return true;
+ case "representer": target.setRepresenter(property(camelContext, java.util.function.Function.class, value)); return true;
+ case "resolver": target.setResolver(property(camelContext, java.util.function.Function.class, value)); return true;
case "unmarshaltype":
- case "unmarshalType": dataformat.setUnmarshalType(property(camelContext, java.lang.Class.class, value)); return true;
+ case "unmarshalType": target.setUnmarshalType(property(camelContext, java.lang.Class.class, value)); return true;
case "useapplicationcontextclassloader":
- case "useApplicationContextClassLoader": dataformat.setUseApplicationContextClassLoader(property(camelContext, boolean.class, value)); return true;
- case "prettyflow":
- case "prettyFlow": dataformat.setPrettyFlow(property(camelContext, boolean.class, value)); return true;
+ case "useApplicationContextClassLoader": target.setUseApplicationContextClassLoader(property(camelContext, boolean.class, value)); return true;
+ default: return false;
+ }
+ }
+
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
case "allowanytype":
- case "allowAnyType": dataformat.setAllowAnyType(property(camelContext, boolean.class, value)); return true;
- case "maxaliasesforcollections":
- case "maxAliasesForCollections": dataformat.setMaxAliasesForCollections(property(camelContext, int.class, value)); return true;
+ case "allowAnyType": return boolean.class;
case "allowrecursivekeys":
- case "allowRecursiveKeys": dataformat.setAllowRecursiveKeys(property(camelContext, boolean.class, value)); return true;
- default: return false;
+ case "allowRecursiveKeys": return boolean.class;
+ case "constructor": return java.util.function.Function.class;
+ case "dumperoptions":
+ case "dumperOptions": return java.util.function.Function.class;
+ case "maxaliasesforcollections":
+ case "maxAliasesForCollections": return int.class;
+ case "prettyflow":
+ case "prettyFlow": return boolean.class;
+ case "representer": return java.util.function.Function.class;
+ case "resolver": return java.util.function.Function.class;
+ case "unmarshaltype":
+ case "unmarshalType": return java.lang.Class.class;
+ case "useapplicationcontextclassloader":
+ case "useApplicationContextClassLoader": return boolean.class;
+ default: return null;
}
}
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ SnakeYAMLDataFormat target = (SnakeYAMLDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowanytype":
+ case "allowAnyType": return target.isAllowAnyType();
+ case "allowrecursivekeys":
+ case "allowRecursiveKeys": return target.isAllowRecursiveKeys();
+ case "constructor": return target.getConstructor();
+ case "dumperoptions":
+ case "dumperOptions": return target.getDumperOptions();
+ case "maxaliasesforcollections":
+ case "maxAliasesForCollections": return target.getMaxAliasesForCollections();
+ case "prettyflow":
+ case "prettyFlow": return target.isPrettyFlow();
+ case "representer": return target.getRepresenter();
+ case "resolver": return target.getResolver();
+ case "unmarshaltype":
+ case "unmarshalType": return target.getUnmarshalType();
+ case "useapplicationcontextclassloader":
+ case "useApplicationContextClassLoader": return target.isUseApplicationContextClassLoader();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-soap/src/generated/java/org/apache/camel/dataformat/soap/SoapDataFormatConfigurer.java b/components/camel-soap/src/generated/java/org/apache/camel/dataformat/soap/SoapDataFormatConfigurer.java
index a9267cf564f..4f918a687ac 100644
--- a/components/camel-soap/src/generated/java/org/apache/camel/dataformat/soap/SoapDataFormatConfigurer.java
+++ b/components/camel-soap/src/generated/java/org/apache/camel/dataformat/soap/SoapDataFormatConfigurer.java
@@ -2,28 +2,59 @@
package org.apache.camel.dataformat.soap;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.soap.SoapDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class SoapDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class SoapDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("Version", java.lang.String.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- SoapDataFormat dataformat = (SoapDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ SoapDataFormat target = (SoapDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "version": dataformat.setVersion(property(camelContext, java.lang.String.class, value)); return true;
+ case "version": target.setVersion(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "version": return java.lang.String.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ SoapDataFormat target = (SoapDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "version": return target.getVersion();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-swift/src/generated/java/org/apache/camel/dataformat/swift/mt/SwiftMtDataFormatConfigurer.java b/components/camel-swift/src/generated/java/org/apache/camel/dataformat/swift/mt/SwiftMtDataFormatConfigurer.java
index 5b4e9fda91e..7f2edf6c03e 100644
--- a/components/camel-swift/src/generated/java/org/apache/camel/dataformat/swift/mt/SwiftMtDataFormatConfigurer.java
+++ b/components/camel-swift/src/generated/java/org/apache/camel/dataformat/swift/mt/SwiftMtDataFormatConfigurer.java
@@ -2,29 +2,62 @@
package org.apache.camel.dataformat.swift.mt;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.swift.mt.SwiftMtDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class SwiftMtDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class SwiftMtDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("WriteInJson", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- SwiftMtDataFormat dataformat = (SwiftMtDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ SwiftMtDataFormat target = (SwiftMtDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "writeinjson":
- case "writeInJson": dataformat.setWriteInJson(property(camelContext, boolean.class, value)); return true;
+ case "writeInJson": target.setWriteInJson(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "writeinjson":
+ case "writeInJson": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ SwiftMtDataFormat target = (SwiftMtDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "writeinjson":
+ case "writeInJson": return target.isWriteInJson();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-swift/src/generated/java/org/apache/camel/dataformat/swift/mx/SwiftMxDataFormatConfigurer.java b/components/camel-swift/src/generated/java/org/apache/camel/dataformat/swift/mx/SwiftMxDataFormatConfigurer.java
index fc113f4ed97..529efe9f711 100644
--- a/components/camel-swift/src/generated/java/org/apache/camel/dataformat/swift/mx/SwiftMxDataFormatConfigurer.java
+++ b/components/camel-swift/src/generated/java/org/apache/camel/dataformat/swift/mx/SwiftMxDataFormatConfigurer.java
@@ -2,31 +2,69 @@
package org.apache.camel.dataformat.swift.mx;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.swift.mx.SwiftMxDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class SwiftMxDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class SwiftMxDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("ReadMessageId", com.prowidesoftware.swift.model.MxId.class);
+ map.put("WriteInJson", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- SwiftMxDataFormat dataformat = (SwiftMxDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ SwiftMxDataFormat target = (SwiftMxDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "writeinjson":
- case "writeInJson": dataformat.setWriteInJson(property(camelContext, boolean.class, value)); return true;
case "readmessageid":
- case "readMessageId": dataformat.setReadMessageId(property(camelContext, com.prowidesoftware.swift.model.MxId.class, value)); return true;
+ case "readMessageId": target.setReadMessageId(property(camelContext, com.prowidesoftware.swift.model.MxId.class, value)); return true;
+ case "writeinjson":
+ case "writeInJson": target.setWriteInJson(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "readmessageid":
+ case "readMessageId": return com.prowidesoftware.swift.model.MxId.class;
+ case "writeinjson":
+ case "writeInJson": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ SwiftMxDataFormat target = (SwiftMxDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "readmessageid":
+ case "readMessageId": return target.getReadMessageId();
+ case "writeinjson":
+ case "writeInJson": return target.isWriteInJson();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-syslog/src/generated/java/org/apache/camel/component/syslog/SyslogDataFormatConfigurer.java b/components/camel-syslog/src/generated/java/org/apache/camel/component/syslog/SyslogDataFormatConfigurer.java
index a6a7858d51b..668445f1f71 100644
--- a/components/camel-syslog/src/generated/java/org/apache/camel/component/syslog/SyslogDataFormatConfigurer.java
+++ b/components/camel-syslog/src/generated/java/org/apache/camel/component/syslog/SyslogDataFormatConfigurer.java
@@ -2,27 +2,47 @@
package org.apache.camel.component.syslog;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.component.syslog.SyslogDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class SyslogDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class SyslogDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ ALL_OPTIONS = map;
+ }
+
+ @Override
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ return false;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- SyslogDataFormat dataformat = (SyslogDataFormat) target;
- switch (ignoreCase ? name.toLowerCase() : name) {
- default: return false;
- }
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
}
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ return null;
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ return null;
+ }
}
diff --git a/components/camel-tarfile/src/generated/java/org/apache/camel/dataformat/tarfile/TarFileDataFormatConfigurer.java b/components/camel-tarfile/src/generated/java/org/apache/camel/dataformat/tarfile/TarFileDataFormatConfigurer.java
index 680ca63124b..d3f713c7328 100644
--- a/components/camel-tarfile/src/generated/java/org/apache/camel/dataformat/tarfile/TarFileDataFormatConfigurer.java
+++ b/components/camel-tarfile/src/generated/java/org/apache/camel/dataformat/tarfile/TarFileDataFormatConfigurer.java
@@ -2,35 +2,83 @@
package org.apache.camel.dataformat.tarfile;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.tarfile.TarFileDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class TarFileDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class TarFileDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("AllowEmptyDirectory", boolean.class);
+ map.put("MaxDecompressedSize", long.class);
+ map.put("PreservePathElements", boolean.class);
+ map.put("UsingIterator", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- TarFileDataFormat dataformat = (TarFileDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ TarFileDataFormat target = (TarFileDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "usingiterator":
- case "usingIterator": dataformat.setUsingIterator(property(camelContext, boolean.class, value)); return true;
case "allowemptydirectory":
- case "allowEmptyDirectory": dataformat.setAllowEmptyDirectory(property(camelContext, boolean.class, value)); return true;
- case "preservepathelements":
- case "preservePathElements": dataformat.setPreservePathElements(property(camelContext, boolean.class, value)); return true;
+ case "allowEmptyDirectory": target.setAllowEmptyDirectory(property(camelContext, boolean.class, value)); return true;
case "maxdecompressedsize":
- case "maxDecompressedSize": dataformat.setMaxDecompressedSize(property(camelContext, long.class, value)); return true;
+ case "maxDecompressedSize": target.setMaxDecompressedSize(property(camelContext, long.class, value)); return true;
+ case "preservepathelements":
+ case "preservePathElements": target.setPreservePathElements(property(camelContext, boolean.class, value)); return true;
+ case "usingiterator":
+ case "usingIterator": target.setUsingIterator(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowemptydirectory":
+ case "allowEmptyDirectory": return boolean.class;
+ case "maxdecompressedsize":
+ case "maxDecompressedSize": return long.class;
+ case "preservepathelements":
+ case "preservePathElements": return boolean.class;
+ case "usingiterator":
+ case "usingIterator": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ TarFileDataFormat target = (TarFileDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowemptydirectory":
+ case "allowEmptyDirectory": return target.isAllowEmptyDirectory();
+ case "maxdecompressedsize":
+ case "maxDecompressedSize": return target.getMaxDecompressedSize();
+ case "preservepathelements":
+ case "preservePathElements": return target.isPreservePathElements();
+ case "usingiterator":
+ case "usingIterator": return target.isUsingIterator();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-thrift/src/generated/java/org/apache/camel/dataformat/thrift/ThriftDataFormatConfigurer.java b/components/camel-thrift/src/generated/java/org/apache/camel/dataformat/thrift/ThriftDataFormatConfigurer.java
index 309f0ef19c4..61c1e291860 100644
--- a/components/camel-thrift/src/generated/java/org/apache/camel/dataformat/thrift/ThriftDataFormatConfigurer.java
+++ b/components/camel-thrift/src/generated/java/org/apache/camel/dataformat/thrift/ThriftDataFormatConfigurer.java
@@ -2,31 +2,69 @@
package org.apache.camel.dataformat.thrift;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.thrift.ThriftDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class ThriftDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class ThriftDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("ContentTypeFormat", java.lang.String.class);
+ map.put("ContentTypeHeader", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- ThriftDataFormat dataformat = (ThriftDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ ThriftDataFormat target = (ThriftDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "contenttypeheader":
- case "contentTypeHeader": dataformat.setContentTypeHeader(property(camelContext, boolean.class, value)); return true;
case "contenttypeformat":
- case "contentTypeFormat": dataformat.setContentTypeFormat(property(camelContext, java.lang.String.class, value)); return true;
+ case "contentTypeFormat": target.setContentTypeFormat(property(camelContext, java.lang.String.class, value)); return true;
+ case "contenttypeheader":
+ case "contentTypeHeader": target.setContentTypeHeader(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "contenttypeformat":
+ case "contentTypeFormat": return java.lang.String.class;
+ case "contenttypeheader":
+ case "contentTypeHeader": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ ThriftDataFormat target = (ThriftDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "contenttypeformat":
+ case "contentTypeFormat": return target.getContentTypeFormat();
+ case "contenttypeheader":
+ case "contentTypeHeader": return target.isContentTypeHeader();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-thrift/src/main/java/org/apache/camel/dataformat/thrift/ThriftDataFormat.java b/components/camel-thrift/src/main/java/org/apache/camel/dataformat/thrift/ThriftDataFormat.java
index 6df290de152..4413c693085 100644
--- a/components/camel-thrift/src/main/java/org/apache/camel/dataformat/thrift/ThriftDataFormat.java
+++ b/components/camel-thrift/src/main/java/org/apache/camel/dataformat/thrift/ThriftDataFormat.java
@@ -114,6 +114,10 @@ public class ThriftDataFormat extends ServiceSupport
return contentTypeHeader;
}
+ public String getContentTypeFormat() {
+ return contentTypeFormat;
+ }
+
/*
* Defines a content type format in which thrift message will be
* serialized/deserialized from(to) the Java been. It can be native thrift
diff --git a/components/camel-univocity-parsers/src/generated/java/org/apache/camel/dataformat/univocity/UniVocityCsvDataFormatConfigurer.java b/components/camel-univocity-parsers/src/generated/java/org/apache/camel/dataformat/univocity/UniVocityCsvDataFormatConfigurer.java
index 0787ac49903..af199cbaca5 100644
--- a/components/camel-univocity-parsers/src/generated/java/org/apache/camel/dataformat/univocity/UniVocityCsvDataFormatConfigurer.java
+++ b/components/camel-univocity-parsers/src/generated/java/org/apache/camel/dataformat/univocity/UniVocityCsvDataFormatConfigurer.java
@@ -2,58 +2,165 @@
package org.apache.camel.dataformat.univocity;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.univocity.UniVocityCsvDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class UniVocityCsvDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class UniVocityCsvDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("AsMap", boolean.class);
+ map.put("Comment", java.lang.Character.class);
+ map.put("Delimiter", java.lang.Character.class);
+ map.put("EmptyValue", java.lang.String.class);
+ map.put("HeaderExtractionEnabled", java.lang.Boolean.class);
+ map.put("HeadersDisabled", boolean.class);
+ map.put("IgnoreLeadingWhitespaces", java.lang.Boolean.class);
+ map.put("IgnoreTrailingWhitespaces", java.lang.Boolean.class);
+ map.put("LazyLoad", boolean.class);
+ map.put("LineSeparator", java.lang.String.class);
+ map.put("NormalizedLineSeparator", java.lang.Character.class);
+ map.put("NullValue", java.lang.String.class);
+ map.put("NumberOfRecordsToRead", java.lang.Integer.class);
+ map.put("Quote", java.lang.Character.class);
+ map.put("QuoteAllFields", java.lang.Boolean.class);
+ map.put("QuoteEscape", java.lang.Character.class);
+ map.put("SkipEmptyLines", java.lang.Boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- UniVocityCsvDataFormat dataformat = (UniVocityCsvDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ UniVocityCsvDataFormat target = (UniVocityCsvDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
+ case "asmap":
+ case "asMap": target.setAsMap(property(camelContext, boolean.class, value)); return true;
+ case "comment": target.setComment(property(camelContext, java.lang.Character.class, value)); return true;
+ case "delimiter": target.setDelimiter(property(camelContext, java.lang.Character.class, value)); return true;
+ case "emptyvalue":
+ case "emptyValue": target.setEmptyValue(property(camelContext, java.lang.String.class, value)); return true;
+ case "headerextractionenabled":
+ case "headerExtractionEnabled": target.setHeaderExtractionEnabled(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "headersdisabled":
+ case "headersDisabled": target.setHeadersDisabled(property(camelContext, boolean.class, value)); return true;
+ case "ignoreleadingwhitespaces":
+ case "ignoreLeadingWhitespaces": target.setIgnoreLeadingWhitespaces(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "ignoretrailingwhitespaces":
+ case "ignoreTrailingWhitespaces": target.setIgnoreTrailingWhitespaces(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "lazyload":
+ case "lazyLoad": target.setLazyLoad(property(camelContext, boolean.class, value)); return true;
+ case "lineseparator":
+ case "lineSeparator": target.setLineSeparator(property(camelContext, java.lang.String.class, value)); return true;
+ case "normalizedlineseparator":
+ case "normalizedLineSeparator": target.setNormalizedLineSeparator(property(camelContext, java.lang.Character.class, value)); return true;
+ case "nullvalue":
+ case "nullValue": target.setNullValue(property(camelContext, java.lang.String.class, value)); return true;
+ case "numberofrecordstoread":
+ case "numberOfRecordsToRead": target.setNumberOfRecordsToRead(property(camelContext, java.lang.Integer.class, value)); return true;
+ case "quote": target.setQuote(property(camelContext, java.lang.Character.class, value)); return true;
case "quoteallfields":
- case "quoteAllFields": dataformat.setQuoteAllFields(property(camelContext, java.lang.Boolean.class, value)); return true;
- case "quote": dataformat.setQuote(property(camelContext, java.lang.Character.class, value)); return true;
+ case "quoteAllFields": target.setQuoteAllFields(property(camelContext, java.lang.Boolean.class, value)); return true;
case "quoteescape":
- case "quoteEscape": dataformat.setQuoteEscape(property(camelContext, java.lang.Character.class, value)); return true;
- case "delimiter": dataformat.setDelimiter(property(camelContext, java.lang.Character.class, value)); return true;
- case "nullvalue":
- case "nullValue": dataformat.setNullValue(property(camelContext, java.lang.String.class, value)); return true;
+ case "quoteEscape": target.setQuoteEscape(property(camelContext, java.lang.Character.class, value)); return true;
case "skipemptylines":
- case "skipEmptyLines": dataformat.setSkipEmptyLines(property(camelContext, java.lang.Boolean.class, value)); return true;
- case "ignoretrailingwhitespaces":
- case "ignoreTrailingWhitespaces": dataformat.setIgnoreTrailingWhitespaces(property(camelContext, java.lang.Boolean.class, value)); return true;
- case "ignoreleadingwhitespaces":
- case "ignoreLeadingWhitespaces": dataformat.setIgnoreLeadingWhitespaces(property(camelContext, java.lang.Boolean.class, value)); return true;
- case "headersdisabled":
- case "headersDisabled": dataformat.setHeadersDisabled(property(camelContext, boolean.class, value)); return true;
+ case "skipEmptyLines": target.setSkipEmptyLines(property(camelContext, java.lang.Boolean.class, value)); return true;
+ default: return false;
+ }
+ }
+
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "asmap":
+ case "asMap": return boolean.class;
+ case "comment": return java.lang.Character.class;
+ case "delimiter": return java.lang.Character.class;
+ case "emptyvalue":
+ case "emptyValue": return java.lang.String.class;
case "headerextractionenabled":
- case "headerExtractionEnabled": dataformat.setHeaderExtractionEnabled(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "headerExtractionEnabled": return java.lang.Boolean.class;
+ case "headersdisabled":
+ case "headersDisabled": return boolean.class;
+ case "ignoreleadingwhitespaces":
+ case "ignoreLeadingWhitespaces": return java.lang.Boolean.class;
+ case "ignoretrailingwhitespaces":
+ case "ignoreTrailingWhitespaces": return java.lang.Boolean.class;
+ case "lazyload":
+ case "lazyLoad": return boolean.class;
+ case "lineseparator":
+ case "lineSeparator": return java.lang.String.class;
+ case "normalizedlineseparator":
+ case "normalizedLineSeparator": return java.lang.Character.class;
+ case "nullvalue":
+ case "nullValue": return java.lang.String.class;
case "numberofrecordstoread":
- case "numberOfRecordsToRead": dataformat.setNumberOfRecordsToRead(property(camelContext, java.lang.Integer.class, value)); return true;
+ case "numberOfRecordsToRead": return java.lang.Integer.class;
+ case "quote": return java.lang.Character.class;
+ case "quoteallfields":
+ case "quoteAllFields": return java.lang.Boolean.class;
+ case "quoteescape":
+ case "quoteEscape": return java.lang.Character.class;
+ case "skipemptylines":
+ case "skipEmptyLines": return java.lang.Boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ UniVocityCsvDataFormat target = (UniVocityCsvDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "asmap":
+ case "asMap": return target.isAsMap();
+ case "comment": return target.getComment();
+ case "delimiter": return target.getDelimiter();
case "emptyvalue":
- case "emptyValue": dataformat.setEmptyValue(property(camelContext, java.lang.String.class, value)); return true;
+ case "emptyValue": return target.getEmptyValue();
+ case "headerextractionenabled":
+ case "headerExtractionEnabled": return target.getHeaderExtractionEnabled();
+ case "headersdisabled":
+ case "headersDisabled": return target.isHeadersDisabled();
+ case "ignoreleadingwhitespaces":
+ case "ignoreLeadingWhitespaces": return target.getIgnoreLeadingWhitespaces();
+ case "ignoretrailingwhitespaces":
+ case "ignoreTrailingWhitespaces": return target.getIgnoreTrailingWhitespaces();
+ case "lazyload":
+ case "lazyLoad": return target.isLazyLoad();
case "lineseparator":
- case "lineSeparator": dataformat.setLineSeparator(property(camelContext, java.lang.String.class, value)); return true;
+ case "lineSeparator": return target.getLineSeparator();
case "normalizedlineseparator":
- case "normalizedLineSeparator": dataformat.setNormalizedLineSeparator(property(camelContext, java.lang.Character.class, value)); return true;
- case "comment": dataformat.setComment(property(camelContext, java.lang.Character.class, value)); return true;
- case "lazyload":
- case "lazyLoad": dataformat.setLazyLoad(property(camelContext, boolean.class, value)); return true;
- case "asmap":
- case "asMap": dataformat.setAsMap(property(camelContext, boolean.class, value)); return true;
- default: return false;
+ case "normalizedLineSeparator": return target.getNormalizedLineSeparator();
+ case "nullvalue":
+ case "nullValue": return target.getNullValue();
+ case "numberofrecordstoread":
+ case "numberOfRecordsToRead": return target.getNumberOfRecordsToRead();
+ case "quote": return target.getQuote();
+ case "quoteallfields":
+ case "quoteAllFields": return target.getQuoteAllFields();
+ case "quoteescape":
+ case "quoteEscape": return target.getQuoteEscape();
+ case "skipemptylines":
+ case "skipEmptyLines": return target.getSkipEmptyLines();
+ default: return null;
}
}
-
}
diff --git a/components/camel-univocity-parsers/src/generated/java/org/apache/camel/dataformat/univocity/UniVocityFixedDataFormatConfigurer.java b/components/camel-univocity-parsers/src/generated/java/org/apache/camel/dataformat/univocity/UniVocityFixedDataFormatConfigurer.java
index a96bb074bea..320123d25c9 100644
--- a/components/camel-univocity-parsers/src/generated/java/org/apache/camel/dataformat/univocity/UniVocityFixedDataFormatConfigurer.java
+++ b/components/camel-univocity-parsers/src/generated/java/org/apache/camel/dataformat/univocity/UniVocityFixedDataFormatConfigurer.java
@@ -2,57 +2,161 @@
package org.apache.camel.dataformat.univocity;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.univocity.UniVocityFixedDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class UniVocityFixedDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class UniVocityFixedDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("AsMap", boolean.class);
+ map.put("Comment", java.lang.Character.class);
+ map.put("EmptyValue", java.lang.String.class);
+ map.put("HeaderExtractionEnabled", java.lang.Boolean.class);
+ map.put("HeadersDisabled", boolean.class);
+ map.put("IgnoreLeadingWhitespaces", java.lang.Boolean.class);
+ map.put("IgnoreTrailingWhitespaces", java.lang.Boolean.class);
+ map.put("LazyLoad", boolean.class);
+ map.put("LineSeparator", java.lang.String.class);
+ map.put("NormalizedLineSeparator", java.lang.Character.class);
+ map.put("NullValue", java.lang.String.class);
+ map.put("NumberOfRecordsToRead", java.lang.Integer.class);
+ map.put("Padding", java.lang.Character.class);
+ map.put("RecordEndsOnNewline", java.lang.Boolean.class);
+ map.put("SkipEmptyLines", java.lang.Boolean.class);
+ map.put("SkipTrailingCharsUntilNewline", java.lang.Boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- UniVocityFixedDataFormat dataformat = (UniVocityFixedDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ UniVocityFixedDataFormat target = (UniVocityFixedDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "skiptrailingcharsuntilnewline":
- case "skipTrailingCharsUntilNewline": dataformat.setSkipTrailingCharsUntilNewline(property(camelContext, java.lang.Boolean.class, value)); return true;
- case "recordendsonnewline":
- case "recordEndsOnNewline": dataformat.setRecordEndsOnNewline(property(camelContext, java.lang.Boolean.class, value)); return true;
- case "padding": dataformat.setPadding(property(camelContext, java.lang.Character.class, value)); return true;
+ case "asmap":
+ case "asMap": target.setAsMap(property(camelContext, boolean.class, value)); return true;
+ case "comment": target.setComment(property(camelContext, java.lang.Character.class, value)); return true;
+ case "emptyvalue":
+ case "emptyValue": target.setEmptyValue(property(camelContext, java.lang.String.class, value)); return true;
+ case "headerextractionenabled":
+ case "headerExtractionEnabled": target.setHeaderExtractionEnabled(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "headersdisabled":
+ case "headersDisabled": target.setHeadersDisabled(property(camelContext, boolean.class, value)); return true;
+ case "ignoreleadingwhitespaces":
+ case "ignoreLeadingWhitespaces": target.setIgnoreLeadingWhitespaces(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "ignoretrailingwhitespaces":
+ case "ignoreTrailingWhitespaces": target.setIgnoreTrailingWhitespaces(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "lazyload":
+ case "lazyLoad": target.setLazyLoad(property(camelContext, boolean.class, value)); return true;
+ case "lineseparator":
+ case "lineSeparator": target.setLineSeparator(property(camelContext, java.lang.String.class, value)); return true;
+ case "normalizedlineseparator":
+ case "normalizedLineSeparator": target.setNormalizedLineSeparator(property(camelContext, java.lang.Character.class, value)); return true;
case "nullvalue":
- case "nullValue": dataformat.setNullValue(property(camelContext, java.lang.String.class, value)); return true;
+ case "nullValue": target.setNullValue(property(camelContext, java.lang.String.class, value)); return true;
+ case "numberofrecordstoread":
+ case "numberOfRecordsToRead": target.setNumberOfRecordsToRead(property(camelContext, java.lang.Integer.class, value)); return true;
+ case "padding": target.setPadding(property(camelContext, java.lang.Character.class, value)); return true;
+ case "recordendsonnewline":
+ case "recordEndsOnNewline": target.setRecordEndsOnNewline(property(camelContext, java.lang.Boolean.class, value)); return true;
case "skipemptylines":
- case "skipEmptyLines": dataformat.setSkipEmptyLines(property(camelContext, java.lang.Boolean.class, value)); return true;
- case "ignoretrailingwhitespaces":
- case "ignoreTrailingWhitespaces": dataformat.setIgnoreTrailingWhitespaces(property(camelContext, java.lang.Boolean.class, value)); return true;
- case "ignoreleadingwhitespaces":
- case "ignoreLeadingWhitespaces": dataformat.setIgnoreLeadingWhitespaces(property(camelContext, java.lang.Boolean.class, value)); return true;
- case "headersdisabled":
- case "headersDisabled": dataformat.setHeadersDisabled(property(camelContext, boolean.class, value)); return true;
+ case "skipEmptyLines": target.setSkipEmptyLines(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "skiptrailingcharsuntilnewline":
+ case "skipTrailingCharsUntilNewline": target.setSkipTrailingCharsUntilNewline(property(camelContext, java.lang.Boolean.class, value)); return true;
+ default: return false;
+ }
+ }
+
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "asmap":
+ case "asMap": return boolean.class;
+ case "comment": return java.lang.Character.class;
+ case "emptyvalue":
+ case "emptyValue": return java.lang.String.class;
case "headerextractionenabled":
- case "headerExtractionEnabled": dataformat.setHeaderExtractionEnabled(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "headerExtractionEnabled": return java.lang.Boolean.class;
+ case "headersdisabled":
+ case "headersDisabled": return boolean.class;
+ case "ignoreleadingwhitespaces":
+ case "ignoreLeadingWhitespaces": return java.lang.Boolean.class;
+ case "ignoretrailingwhitespaces":
+ case "ignoreTrailingWhitespaces": return java.lang.Boolean.class;
+ case "lazyload":
+ case "lazyLoad": return boolean.class;
+ case "lineseparator":
+ case "lineSeparator": return java.lang.String.class;
+ case "normalizedlineseparator":
+ case "normalizedLineSeparator": return java.lang.Character.class;
+ case "nullvalue":
+ case "nullValue": return java.lang.String.class;
case "numberofrecordstoread":
- case "numberOfRecordsToRead": dataformat.setNumberOfRecordsToRead(property(camelContext, java.lang.Integer.class, value)); return true;
+ case "numberOfRecordsToRead": return java.lang.Integer.class;
+ case "padding": return java.lang.Character.class;
+ case "recordendsonnewline":
+ case "recordEndsOnNewline": return java.lang.Boolean.class;
+ case "skipemptylines":
+ case "skipEmptyLines": return java.lang.Boolean.class;
+ case "skiptrailingcharsuntilnewline":
+ case "skipTrailingCharsUntilNewline": return java.lang.Boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ UniVocityFixedDataFormat target = (UniVocityFixedDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "asmap":
+ case "asMap": return target.isAsMap();
+ case "comment": return target.getComment();
case "emptyvalue":
- case "emptyValue": dataformat.setEmptyValue(property(camelContext, java.lang.String.class, value)); return true;
+ case "emptyValue": return target.getEmptyValue();
+ case "headerextractionenabled":
+ case "headerExtractionEnabled": return target.getHeaderExtractionEnabled();
+ case "headersdisabled":
+ case "headersDisabled": return target.isHeadersDisabled();
+ case "ignoreleadingwhitespaces":
+ case "ignoreLeadingWhitespaces": return target.getIgnoreLeadingWhitespaces();
+ case "ignoretrailingwhitespaces":
+ case "ignoreTrailingWhitespaces": return target.getIgnoreTrailingWhitespaces();
+ case "lazyload":
+ case "lazyLoad": return target.isLazyLoad();
case "lineseparator":
- case "lineSeparator": dataformat.setLineSeparator(property(camelContext, java.lang.String.class, value)); return true;
+ case "lineSeparator": return target.getLineSeparator();
case "normalizedlineseparator":
- case "normalizedLineSeparator": dataformat.setNormalizedLineSeparator(property(camelContext, java.lang.Character.class, value)); return true;
- case "comment": dataformat.setComment(property(camelContext, java.lang.Character.class, value)); return true;
- case "lazyload":
- case "lazyLoad": dataformat.setLazyLoad(property(camelContext, boolean.class, value)); return true;
- case "asmap":
- case "asMap": dataformat.setAsMap(property(camelContext, boolean.class, value)); return true;
- default: return false;
+ case "normalizedLineSeparator": return target.getNormalizedLineSeparator();
+ case "nullvalue":
+ case "nullValue": return target.getNullValue();
+ case "numberofrecordstoread":
+ case "numberOfRecordsToRead": return target.getNumberOfRecordsToRead();
+ case "padding": return target.getPadding();
+ case "recordendsonnewline":
+ case "recordEndsOnNewline": return target.getRecordEndsOnNewline();
+ case "skipemptylines":
+ case "skipEmptyLines": return target.getSkipEmptyLines();
+ case "skiptrailingcharsuntilnewline":
+ case "skipTrailingCharsUntilNewline": return target.getSkipTrailingCharsUntilNewline();
+ default: return null;
}
}
-
}
diff --git a/components/camel-univocity-parsers/src/generated/java/org/apache/camel/dataformat/univocity/UniVocityTsvDataFormatConfigurer.java b/components/camel-univocity-parsers/src/generated/java/org/apache/camel/dataformat/univocity/UniVocityTsvDataFormatConfigurer.java
index 26e858eef31..fdf7c3e519c 100644
--- a/components/camel-univocity-parsers/src/generated/java/org/apache/camel/dataformat/univocity/UniVocityTsvDataFormatConfigurer.java
+++ b/components/camel-univocity-parsers/src/generated/java/org/apache/camel/dataformat/univocity/UniVocityTsvDataFormatConfigurer.java
@@ -2,54 +2,150 @@
package org.apache.camel.dataformat.univocity;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.univocity.UniVocityTsvDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class UniVocityTsvDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class UniVocityTsvDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("AsMap", boolean.class);
+ map.put("Comment", java.lang.Character.class);
+ map.put("EmptyValue", java.lang.String.class);
+ map.put("EscapeChar", java.lang.Character.class);
+ map.put("HeaderExtractionEnabled", java.lang.Boolean.class);
+ map.put("HeadersDisabled", boolean.class);
+ map.put("IgnoreLeadingWhitespaces", java.lang.Boolean.class);
+ map.put("IgnoreTrailingWhitespaces", java.lang.Boolean.class);
+ map.put("LazyLoad", boolean.class);
+ map.put("LineSeparator", java.lang.String.class);
+ map.put("NormalizedLineSeparator", java.lang.Character.class);
+ map.put("NullValue", java.lang.String.class);
+ map.put("NumberOfRecordsToRead", java.lang.Integer.class);
+ map.put("SkipEmptyLines", java.lang.Boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- UniVocityTsvDataFormat dataformat = (UniVocityTsvDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ UniVocityTsvDataFormat target = (UniVocityTsvDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
+ case "asmap":
+ case "asMap": target.setAsMap(property(camelContext, boolean.class, value)); return true;
+ case "comment": target.setComment(property(camelContext, java.lang.Character.class, value)); return true;
+ case "emptyvalue":
+ case "emptyValue": target.setEmptyValue(property(camelContext, java.lang.String.class, value)); return true;
case "escapechar":
- case "escapeChar": dataformat.setEscapeChar(property(camelContext, java.lang.Character.class, value)); return true;
+ case "escapeChar": target.setEscapeChar(property(camelContext, java.lang.Character.class, value)); return true;
+ case "headerextractionenabled":
+ case "headerExtractionEnabled": target.setHeaderExtractionEnabled(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "headersdisabled":
+ case "headersDisabled": target.setHeadersDisabled(property(camelContext, boolean.class, value)); return true;
+ case "ignoreleadingwhitespaces":
+ case "ignoreLeadingWhitespaces": target.setIgnoreLeadingWhitespaces(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "ignoretrailingwhitespaces":
+ case "ignoreTrailingWhitespaces": target.setIgnoreTrailingWhitespaces(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "lazyload":
+ case "lazyLoad": target.setLazyLoad(property(camelContext, boolean.class, value)); return true;
+ case "lineseparator":
+ case "lineSeparator": target.setLineSeparator(property(camelContext, java.lang.String.class, value)); return true;
+ case "normalizedlineseparator":
+ case "normalizedLineSeparator": target.setNormalizedLineSeparator(property(camelContext, java.lang.Character.class, value)); return true;
case "nullvalue":
- case "nullValue": dataformat.setNullValue(property(camelContext, java.lang.String.class, value)); return true;
+ case "nullValue": target.setNullValue(property(camelContext, java.lang.String.class, value)); return true;
+ case "numberofrecordstoread":
+ case "numberOfRecordsToRead": target.setNumberOfRecordsToRead(property(camelContext, java.lang.Integer.class, value)); return true;
case "skipemptylines":
- case "skipEmptyLines": dataformat.setSkipEmptyLines(property(camelContext, java.lang.Boolean.class, value)); return true;
- case "ignoretrailingwhitespaces":
- case "ignoreTrailingWhitespaces": dataformat.setIgnoreTrailingWhitespaces(property(camelContext, java.lang.Boolean.class, value)); return true;
- case "ignoreleadingwhitespaces":
- case "ignoreLeadingWhitespaces": dataformat.setIgnoreLeadingWhitespaces(property(camelContext, java.lang.Boolean.class, value)); return true;
- case "headersdisabled":
- case "headersDisabled": dataformat.setHeadersDisabled(property(camelContext, boolean.class, value)); return true;
+ case "skipEmptyLines": target.setSkipEmptyLines(property(camelContext, java.lang.Boolean.class, value)); return true;
+ default: return false;
+ }
+ }
+
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "asmap":
+ case "asMap": return boolean.class;
+ case "comment": return java.lang.Character.class;
+ case "emptyvalue":
+ case "emptyValue": return java.lang.String.class;
+ case "escapechar":
+ case "escapeChar": return java.lang.Character.class;
case "headerextractionenabled":
- case "headerExtractionEnabled": dataformat.setHeaderExtractionEnabled(property(camelContext, java.lang.Boolean.class, value)); return true;
+ case "headerExtractionEnabled": return java.lang.Boolean.class;
+ case "headersdisabled":
+ case "headersDisabled": return boolean.class;
+ case "ignoreleadingwhitespaces":
+ case "ignoreLeadingWhitespaces": return java.lang.Boolean.class;
+ case "ignoretrailingwhitespaces":
+ case "ignoreTrailingWhitespaces": return java.lang.Boolean.class;
+ case "lazyload":
+ case "lazyLoad": return boolean.class;
+ case "lineseparator":
+ case "lineSeparator": return java.lang.String.class;
+ case "normalizedlineseparator":
+ case "normalizedLineSeparator": return java.lang.Character.class;
+ case "nullvalue":
+ case "nullValue": return java.lang.String.class;
case "numberofrecordstoread":
- case "numberOfRecordsToRead": dataformat.setNumberOfRecordsToRead(property(camelContext, java.lang.Integer.class, value)); return true;
+ case "numberOfRecordsToRead": return java.lang.Integer.class;
+ case "skipemptylines":
+ case "skipEmptyLines": return java.lang.Boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ UniVocityTsvDataFormat target = (UniVocityTsvDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "asmap":
+ case "asMap": return target.isAsMap();
+ case "comment": return target.getComment();
case "emptyvalue":
- case "emptyValue": dataformat.setEmptyValue(property(camelContext, java.lang.String.class, value)); return true;
+ case "emptyValue": return target.getEmptyValue();
+ case "escapechar":
+ case "escapeChar": return target.getEscapeChar();
+ case "headerextractionenabled":
+ case "headerExtractionEnabled": return target.getHeaderExtractionEnabled();
+ case "headersdisabled":
+ case "headersDisabled": return target.isHeadersDisabled();
+ case "ignoreleadingwhitespaces":
+ case "ignoreLeadingWhitespaces": return target.getIgnoreLeadingWhitespaces();
+ case "ignoretrailingwhitespaces":
+ case "ignoreTrailingWhitespaces": return target.getIgnoreTrailingWhitespaces();
+ case "lazyload":
+ case "lazyLoad": return target.isLazyLoad();
case "lineseparator":
- case "lineSeparator": dataformat.setLineSeparator(property(camelContext, java.lang.String.class, value)); return true;
+ case "lineSeparator": return target.getLineSeparator();
case "normalizedlineseparator":
- case "normalizedLineSeparator": dataformat.setNormalizedLineSeparator(property(camelContext, java.lang.Character.class, value)); return true;
- case "comment": dataformat.setComment(property(camelContext, java.lang.Character.class, value)); return true;
- case "lazyload":
- case "lazyLoad": dataformat.setLazyLoad(property(camelContext, boolean.class, value)); return true;
- case "asmap":
- case "asMap": dataformat.setAsMap(property(camelContext, boolean.class, value)); return true;
- default: return false;
+ case "normalizedLineSeparator": return target.getNormalizedLineSeparator();
+ case "nullvalue":
+ case "nullValue": return target.getNullValue();
+ case "numberofrecordstoread":
+ case "numberOfRecordsToRead": return target.getNumberOfRecordsToRead();
+ case "skipemptylines":
+ case "skipEmptyLines": return target.getSkipEmptyLines();
+ default: return null;
}
}
-
}
diff --git a/components/camel-xmlsecurity/src/generated/java/org/apache/camel/dataformat/xmlsecurity/XMLSecurityDataFormatConfigurer.java b/components/camel-xmlsecurity/src/generated/java/org/apache/camel/dataformat/xmlsecurity/XMLSecurityDataFormatConfigurer.java
index 6b57bb3bbf1..ca8eac74b32 100644
--- a/components/camel-xmlsecurity/src/generated/java/org/apache/camel/dataformat/xmlsecurity/XMLSecurityDataFormatConfigurer.java
+++ b/components/camel-xmlsecurity/src/generated/java/org/apache/camel/dataformat/xmlsecurity/XMLSecurityDataFormatConfigurer.java
@@ -2,47 +2,125 @@
package org.apache.camel.dataformat.xmlsecurity;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.xmlsecurity.XMLSecurityDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class XMLSecurityDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class XMLSecurityDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("AddKeyValueForEncryptedKey", boolean.class);
+ map.put("DigestAlgorithm", java.lang.String.class);
+ map.put("KeyCipherAlgorithm", java.lang.String.class);
+ map.put("KeyPassword", java.lang.String.class);
+ map.put("MgfAlgorithm", java.lang.String.class);
+ map.put("PassPhrase", byte[].class);
+ map.put("RecipientKeyAlias", java.lang.String.class);
+ map.put("SecureTag", java.lang.String.class);
+ map.put("SecureTagContents", boolean.class);
+ map.put("XmlCipherAlgorithm", java.lang.String.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- XMLSecurityDataFormat dataformat = (XMLSecurityDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ XMLSecurityDataFormat target = (XMLSecurityDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "xmlcipheralgorithm":
- case "xmlCipherAlgorithm": dataformat.setXmlCipherAlgorithm(property(camelContext, java.lang.String.class, value)); return true;
- case "keycipheralgorithm":
- case "keyCipherAlgorithm": dataformat.setKeyCipherAlgorithm(property(camelContext, java.lang.String.class, value)); return true;
+ case "addkeyvalueforencryptedkey":
+ case "addKeyValueForEncryptedKey": target.setAddKeyValueForEncryptedKey(property(camelContext, boolean.class, value)); return true;
case "digestalgorithm":
- case "digestAlgorithm": dataformat.setDigestAlgorithm(property(camelContext, java.lang.String.class, value)); return true;
+ case "digestAlgorithm": target.setDigestAlgorithm(property(camelContext, java.lang.String.class, value)); return true;
+ case "keycipheralgorithm":
+ case "keyCipherAlgorithm": target.setKeyCipherAlgorithm(property(camelContext, java.lang.String.class, value)); return true;
+ case "keypassword":
+ case "keyPassword": target.setKeyPassword(property(camelContext, java.lang.String.class, value)); return true;
case "mgfalgorithm":
- case "mgfAlgorithm": dataformat.setMgfAlgorithm(property(camelContext, java.lang.String.class, value)); return true;
+ case "mgfAlgorithm": target.setMgfAlgorithm(property(camelContext, java.lang.String.class, value)); return true;
case "passphrase":
- case "passPhrase": dataformat.setPassPhrase(property(camelContext, byte[].class, value)); return true;
+ case "passPhrase": target.setPassPhrase(property(camelContext, byte[].class, value)); return true;
+ case "recipientkeyalias":
+ case "recipientKeyAlias": target.setRecipientKeyAlias(property(camelContext, java.lang.String.class, value)); return true;
case "securetag":
- case "secureTag": dataformat.setSecureTag(property(camelContext, java.lang.String.class, value)); return true;
+ case "secureTag": target.setSecureTag(property(camelContext, java.lang.String.class, value)); return true;
case "securetagcontents":
- case "secureTagContents": dataformat.setSecureTagContents(property(camelContext, boolean.class, value)); return true;
- case "recipientkeyalias":
- case "recipientKeyAlias": dataformat.setRecipientKeyAlias(property(camelContext, java.lang.String.class, value)); return true;
- case "keypassword":
- case "keyPassword": dataformat.setKeyPassword(property(camelContext, java.lang.String.class, value)); return true;
- case "addkeyvalueforencryptedkey":
- case "addKeyValueForEncryptedKey": dataformat.setAddKeyValueForEncryptedKey(property(camelContext, boolean.class, value)); return true;
+ case "secureTagContents": target.setSecureTagContents(property(camelContext, boolean.class, value)); return true;
+ case "xmlcipheralgorithm":
+ case "xmlCipherAlgorithm": target.setXmlCipherAlgorithm(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "addkeyvalueforencryptedkey":
+ case "addKeyValueForEncryptedKey": return boolean.class;
+ case "digestalgorithm":
+ case "digestAlgorithm": return java.lang.String.class;
+ case "keycipheralgorithm":
+ case "keyCipherAlgorithm": return java.lang.String.class;
+ case "keypassword":
+ case "keyPassword": return java.lang.String.class;
+ case "mgfalgorithm":
+ case "mgfAlgorithm": return java.lang.String.class;
+ case "passphrase":
+ case "passPhrase": return byte[].class;
+ case "recipientkeyalias":
+ case "recipientKeyAlias": return java.lang.String.class;
+ case "securetag":
+ case "secureTag": return java.lang.String.class;
+ case "securetagcontents":
+ case "secureTagContents": return boolean.class;
+ case "xmlcipheralgorithm":
+ case "xmlCipherAlgorithm": return java.lang.String.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ XMLSecurityDataFormat target = (XMLSecurityDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "addkeyvalueforencryptedkey":
+ case "addKeyValueForEncryptedKey": return target.isAddKeyValueForEncryptedKey();
+ case "digestalgorithm":
+ case "digestAlgorithm": return target.getDigestAlgorithm();
+ case "keycipheralgorithm":
+ case "keyCipherAlgorithm": return target.getKeyCipherAlgorithm();
+ case "keypassword":
+ case "keyPassword": return target.getKeyPassword();
+ case "mgfalgorithm":
+ case "mgfAlgorithm": return target.getMgfAlgorithm();
+ case "passphrase":
+ case "passPhrase": return target.getPassPhrase();
+ case "recipientkeyalias":
+ case "recipientKeyAlias": return target.getRecipientKeyAlias();
+ case "securetag":
+ case "secureTag": return target.getSecureTag();
+ case "securetagcontents":
+ case "secureTagContents": return target.isSecureTagContents();
+ case "xmlcipheralgorithm":
+ case "xmlCipherAlgorithm": return target.getXmlCipherAlgorithm();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/XMLSecurityDataFormat.java b/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/XMLSecurityDataFormat.java
index 5832d426427..ced5d1801a5 100644
--- a/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/XMLSecurityDataFormat.java
+++ b/components/camel-xmlsecurity/src/main/java/org/apache/camel/dataformat/xmlsecurity/XMLSecurityDataFormat.java
@@ -844,6 +844,10 @@ public class XMLSecurityDataFormat extends ServiceSupport implements DataFormat,
getNamespaceContext().setNamespaces(namespaces);
}
+ public String getKeyPassword() {
+ return keyPassword;
+ }
+
public void setKeyPassword(String keyPassword) {
this.keyPassword = keyPassword;
}
diff --git a/components/camel-zip-deflater/src/generated/java/org/apache/camel/dataformat/deflater/GzipDeflaterDataFormatConfigurer.java b/components/camel-zip-deflater/src/generated/java/org/apache/camel/dataformat/deflater/GzipDeflaterDataFormatConfigurer.java
index 5f6c17dc29a..d093a12d109 100644
--- a/components/camel-zip-deflater/src/generated/java/org/apache/camel/dataformat/deflater/GzipDeflaterDataFormatConfigurer.java
+++ b/components/camel-zip-deflater/src/generated/java/org/apache/camel/dataformat/deflater/GzipDeflaterDataFormatConfigurer.java
@@ -2,27 +2,47 @@
package org.apache.camel.dataformat.deflater;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.deflater.GzipDeflaterDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class GzipDeflaterDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class GzipDeflaterDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ ALL_OPTIONS = map;
+ }
+
+ @Override
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ return false;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- GzipDeflaterDataFormat dataformat = (GzipDeflaterDataFormat) target;
- switch (ignoreCase ? name.toLowerCase() : name) {
- default: return false;
- }
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
}
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ return null;
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ return null;
+ }
}
diff --git a/components/camel-zip-deflater/src/generated/java/org/apache/camel/dataformat/deflater/ZipDeflaterDataFormatConfigurer.java b/components/camel-zip-deflater/src/generated/java/org/apache/camel/dataformat/deflater/ZipDeflaterDataFormatConfigurer.java
index 9c712be8fa1..96f92652021 100644
--- a/components/camel-zip-deflater/src/generated/java/org/apache/camel/dataformat/deflater/ZipDeflaterDataFormatConfigurer.java
+++ b/components/camel-zip-deflater/src/generated/java/org/apache/camel/dataformat/deflater/ZipDeflaterDataFormatConfigurer.java
@@ -2,29 +2,62 @@
package org.apache.camel.dataformat.deflater;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.deflater.ZipDeflaterDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class ZipDeflaterDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class ZipDeflaterDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("CompressionLevel", int.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- ZipDeflaterDataFormat dataformat = (ZipDeflaterDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ ZipDeflaterDataFormat target = (ZipDeflaterDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "compressionlevel":
- case "compressionLevel": dataformat.setCompressionLevel(property(camelContext, int.class, value)); return true;
+ case "compressionLevel": target.setCompressionLevel(property(camelContext, int.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "compressionlevel":
+ case "compressionLevel": return int.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ ZipDeflaterDataFormat target = (ZipDeflaterDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "compressionlevel":
+ case "compressionLevel": return target.getCompressionLevel();
+ default: return null;
+ }
+ }
}
diff --git a/components/camel-zipfile/src/generated/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormatConfigurer.java b/components/camel-zipfile/src/generated/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormatConfigurer.java
index 170e1565ca6..837b0905883 100644
--- a/components/camel-zipfile/src/generated/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormatConfigurer.java
+++ b/components/camel-zipfile/src/generated/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormatConfigurer.java
@@ -2,35 +2,83 @@
package org.apache.camel.dataformat.zipfile;
import javax.annotation.processing.Generated;
-import java.util.HashMap;
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.support.component.PropertyConfigurerSupport;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.dataformat.zipfile.ZipFileDataFormat;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo")
@SuppressWarnings("unchecked")
-public class ZipFileDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer {
+public class ZipFileDataFormatConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, ExtendedPropertyConfigurerGetter {
+
+ private static final Map<String, Object> ALL_OPTIONS;
+ static {
+ Map<String, Object> map = new CaseInsensitiveMap();
+ map.put("AllowEmptyDirectory", boolean.class);
+ map.put("MaxDecompressedSize", long.class);
+ map.put("PreservePathElements", boolean.class);
+ map.put("UsingIterator", boolean.class);
+ ALL_OPTIONS = map;
+ }
@Override
- public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) {
- ZipFileDataFormat dataformat = (ZipFileDataFormat) target;
+ public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+ ZipFileDataFormat target = (ZipFileDataFormat) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
- case "usingiterator":
- case "usingIterator": dataformat.setUsingIterator(property(camelContext, boolean.class, value)); return true;
case "allowemptydirectory":
- case "allowEmptyDirectory": dataformat.setAllowEmptyDirectory(property(camelContext, boolean.class, value)); return true;
- case "preservepathelements":
- case "preservePathElements": dataformat.setPreservePathElements(property(camelContext, boolean.class, value)); return true;
+ case "allowEmptyDirectory": target.setAllowEmptyDirectory(property(camelContext, boolean.class, value)); return true;
case "maxdecompressedsize":
- case "maxDecompressedSize": dataformat.setMaxDecompressedSize(property(camelContext, long.class, value)); return true;
+ case "maxDecompressedSize": target.setMaxDecompressedSize(property(camelContext, long.class, value)); return true;
+ case "preservepathelements":
+ case "preservePathElements": target.setPreservePathElements(property(camelContext, boolean.class, value)); return true;
+ case "usingiterator":
+ case "usingIterator": target.setUsingIterator(property(camelContext, boolean.class, value)); return true;
default: return false;
}
}
+ @Override
+ public Map<String, Object> getAllOptions(Object target) {
+ return ALL_OPTIONS;
+ }
+
+ @Override
+ public Class<?> getOptionType(String name, boolean ignoreCase) {
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowemptydirectory":
+ case "allowEmptyDirectory": return boolean.class;
+ case "maxdecompressedsize":
+ case "maxDecompressedSize": return long.class;
+ case "preservepathelements":
+ case "preservePathElements": return boolean.class;
+ case "usingiterator":
+ case "usingIterator": return boolean.class;
+ default: return null;
+ }
+ }
+
+ @Override
+ public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+ ZipFileDataFormat target = (ZipFileDataFormat) obj;
+ switch (ignoreCase ? name.toLowerCase() : name) {
+ case "allowemptydirectory":
+ case "allowEmptyDirectory": return target.isAllowEmptyDirectory();
+ case "maxdecompressedsize":
+ case "maxDecompressedSize": return target.getMaxDecompressedSize();
+ case "preservepathelements":
+ case "preservePathElements": return target.isPreservePathElements();
+ case "usingiterator":
+ case "usingIterator": return target.isUsingIterator();
+ default: return null;
+ }
+ }
}
diff --git a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/dataformat/DataFormatReifier.java b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/dataformat/DataFormatReifier.java
index 0217073ab99..ef08b7d5b21 100644
--- a/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/dataformat/DataFormatReifier.java
+++ b/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/dataformat/DataFormatReifier.java
@@ -26,8 +26,10 @@ import org.apache.camel.model.DataFormatDefinition;
import org.apache.camel.model.Model;
import org.apache.camel.model.dataformat.*;
import org.apache.camel.reifier.AbstractReifier;
+import org.apache.camel.spi.BeanIntrospection;
import org.apache.camel.spi.DataFormat;
import org.apache.camel.spi.DataFormatContentTypeHeader;
+import org.apache.camel.spi.PropertiesComponent;
import org.apache.camel.spi.PropertyConfigurer;
import org.apache.camel.spi.PropertyConfigurerAware;
import org.apache.camel.spi.ReifierStrategy;
@@ -243,7 +245,7 @@ public abstract class DataFormatReifier<T extends DataFormatDefinition> extends
dataFormatContentTypeHeader.setContentTypeHeader(contentTypeHeader);
}
// configure the rest of the options
- configureDataFormat(dataFormat);
+ configureDataFormat(dataFormat, definition.getDataFormatName());
} else {
throw new IllegalArgumentException(
"Data format '" + (definition.getDataFormatName() != null ? definition.getDataFormatName() : "<null>")
@@ -273,8 +275,16 @@ public abstract class DataFormatReifier<T extends DataFormatDefinition> extends
/**
* Allows derived classes to customize the data format
*/
- protected void configureDataFormat(DataFormat dataFormat) {
+ protected void configureDataFormat(DataFormat dataFormat, String dataFormatName) {
Map<String, Object> properties = new LinkedHashMap<>();
+ // is there a generic data format that has been auto-configured, then we need to grab the default configuration first
+ if (camelContext.getDataFormatNames().contains(dataFormatName)) {
+ DataFormat df = camelContext.resolveDataFormat(dataFormatName);
+ BeanIntrospection bi = PluginHelper.getBeanIntrospection(camelContext);
+ if (bi != null) {
+ bi.getProperties(df, properties, null);
+ }
+ }
prepareDataFormatConfig(properties);
properties.entrySet().removeIf(e -> e.getValue() == null);
diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PackageDataFormatMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PackageDataFormatMojo.java
index 8f1c1c07cd1..b505ca0ef62 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PackageDataFormatMojo.java
+++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PackageDataFormatMojo.java
@@ -23,6 +23,7 @@ import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
+import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -35,6 +36,7 @@ import javax.inject.Inject;
import org.apache.camel.maven.packaging.generics.ClassUtil;
import org.apache.camel.spi.Metadata;
+import org.apache.camel.tooling.model.BaseOptionModel;
import org.apache.camel.tooling.model.DataFormatModel;
import org.apache.camel.tooling.model.DataFormatModel.DataFormatOptionModel;
import org.apache.camel.tooling.model.EipModel;
@@ -555,13 +557,23 @@ public class PackageDataFormatMojo extends AbstractGeneratorMojo {
public String generatePropertyConfigurer(String pn, String cn, String en, Collection<DataFormatOptionModel> options)
throws IOException {
+ options = options.stream().sorted(Comparator.comparing(BaseOptionModel::getName)).toList();
+
Map<String, Object> ctx = new HashMap<>();
+ ctx.put("generatorClass", getClass().getName());
ctx.put("package", pn);
ctx.put("className", cn);
ctx.put("type", en);
+ ctx.put("pfqn", pn + "." + en);
+ ctx.put("psn", "org.apache.camel.support.component.PropertyConfigurerSupport");
+ ctx.put("hasSuper", false);
+ ctx.put("component", false);
+ ctx.put("extended", true);
+ ctx.put("bootstrap", false);
ctx.put("options", options);
+ ctx.put("model", null);
ctx.put("mojo", this);
- return velocity("velocity/dataformat-property-configurer.vm", ctx);
+ return velocity("velocity/property-configurer.vm", ctx);
}
public static String generateMetaInfConfigurer(String fqn) {