-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CAMEL-21398: migrate the Smooks Data Format from the Camel cartridge …
…to the Apache Camel code base (#16111) * feat(CAMEL-21398): migrate the Smooks Data Format from https://github.com/smooks/smooks-camel-cartridge to the Apache Camel code base Refs: smooks/smooks-camel-cartridge#211 * fix: add uncommitted file
- Loading branch information
Showing
56 changed files
with
1,066 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ pgp | |
protobuf | ||
protobufJackson | ||
rss | ||
smooks | ||
snakeYaml | ||
soap | ||
swiftMt | ||
|
22 changes: 22 additions & 0 deletions
22
...og/camel-catalog/src/generated/resources/org/apache/camel/catalog/dataformats/smooks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"dataformat": { | ||
"kind": "dataformat", | ||
"name": "smooks", | ||
"title": "Smooks", | ||
"description": "Transform and bind XML as well as non-XML data using Smooks.", | ||
"deprecated": false, | ||
"firstVersion": "4.9.0", | ||
"label": "dataformat,transformation,smooks", | ||
"javaType": "org.apache.camel.dataformat.smooks.SmooksDataFormat", | ||
"supportLevel": "Preview", | ||
"groupId": "org.apache.camel", | ||
"artifactId": "camel-smooks", | ||
"version": "4.9.0-SNAPSHOT", | ||
"modelName": "smooks", | ||
"modelJavaType": "org.apache.camel.model.dataformat.SmooksDataFormat" | ||
}, | ||
"properties": { | ||
"id": { "index": 0, "kind": "attribute", "displayName": "Id", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The id of this node" }, | ||
"smooksConfig": { "index": 1, "kind": "attribute", "displayName": "Smooks Config", "group": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Path to the Smooks configuration file." } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -184,6 +184,7 @@ setProperty | |
setVariable | ||
setVariables | ||
simple | ||
smooks | ||
soap | ||
sort | ||
spel | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/models/smooks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"model": { | ||
"kind": "model", | ||
"name": "smooks", | ||
"title": "Smooks", | ||
"description": "Transform and bind XML as well as non-XML data using Smooks.", | ||
"deprecated": false, | ||
"firstVersion": "4.9.0", | ||
"label": "dataformat,transformation,smooks", | ||
"javaType": "org.apache.camel.model.dataformat.SmooksDataFormat", | ||
"abstract": false, | ||
"input": false, | ||
"output": false | ||
}, | ||
"properties": { | ||
"id": { "index": 0, "kind": "attribute", "displayName": "Id", "group": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "The id of this node" }, | ||
"smooksConfig": { "index": 1, "kind": "attribute", "displayName": "Smooks Config", "group": "common", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Path to the Smooks configuration file." } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...ooks/src/generated/java/org/apache/camel/component/smooks/SmooksDataFormatConfigurer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* Generated by camel build tools - do NOT edit this file! */ | ||
package org.apache.camel.component.smooks; | ||
|
||
import javax.annotation.processing.Generated; | ||
|
||
import org.apache.camel.CamelContext; | ||
import org.apache.camel.dataformat.smooks.SmooksDataFormat; | ||
import org.apache.camel.spi.GeneratedPropertyConfigurer; | ||
import org.apache.camel.support.component.PropertyConfigurerSupport; | ||
|
||
/** | ||
* Generated by camel build tools - do NOT edit this file! | ||
*/ | ||
@Generated("org.apache.camel.maven.packaging.PackageDataFormatMojo") | ||
@SuppressWarnings("unchecked") | ||
public class SmooksDataFormatConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer { | ||
|
||
@Override | ||
public boolean configure(CamelContext camelContext, Object target, String name, Object value, boolean ignoreCase) { | ||
SmooksDataFormat dataformat = (SmooksDataFormat) target; | ||
switch (ignoreCase ? name.toLowerCase() : name) { | ||
default: return false; | ||
} | ||
} | ||
|
||
} | ||
|
Oops, something went wrong.