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 2020/02/04 08:00:54 UTC
[camel] 01/04: camel-weka. Add enums for command
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 81774743e71ee5852d292c958ae4e89e42bc6f66
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Feb 4 08:46:08 2020 +0100
camel-weka. Add enums for command
---
.../main/java/org/apache/camel/component/weka/WekaConfiguration.java | 2 +-
.../apache/camel/builder/endpoint/dsl/WekaEndpointBuilderFactory.java | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/components/camel-weka/src/main/java/org/apache/camel/component/weka/WekaConfiguration.java b/components/camel-weka/src/main/java/org/apache/camel/component/weka/WekaConfiguration.java
index 91edc1f..71536a4 100644
--- a/components/camel-weka/src/main/java/org/apache/camel/component/weka/WekaConfiguration.java
+++ b/components/camel-weka/src/main/java/org/apache/camel/component/weka/WekaConfiguration.java
@@ -29,7 +29,7 @@ public class WekaConfiguration {
filter, model, read, write, push, pop, version
}
- @UriPath(description = "The command to use")
+ @UriPath(description = "The command to use.", enums = "filter,model,read,write,push,pop,version")
private Command command;
// Read/Write parameters
diff --git a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/WekaEndpointBuilderFactory.java b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/WekaEndpointBuilderFactory.java
index 4a6a271..26c5e04 100644
--- a/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/WekaEndpointBuilderFactory.java
+++ b/core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/WekaEndpointBuilderFactory.java
@@ -296,6 +296,8 @@ public interface WekaEndpointBuilderFactory {
*
* Path parameter: command
* The command to use
+ * The value can be one of: filter, model, read, write, push, pop,
+ * version
*/
default WekaEndpointBuilder weka(String path) {
return WekaEndpointBuilderFactory.weka(path);
@@ -313,6 +315,7 @@ public interface WekaEndpointBuilderFactory {
*
* Path parameter: command
* The command to use
+ * The value can be one of: filter, model, read, write, push, pop, version
*/
static WekaEndpointBuilder weka(String path) {
class WekaEndpointBuilderImpl extends AbstractEndpointBuilder implements WekaEndpointBuilder, AdvancedWekaEndpointBuilder {