public enum YamlDeserializationMode extends Enum<YamlDeserializationMode>
| Enum Constant and Description |
|---|
CLASSIC
This option configure the deserialization engine to strictly respect the model definition.
|
FLOW
Mimics the Java Dsl.
|
| Modifier and Type | Method and Description |
|---|---|
static YamlDeserializationMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static YamlDeserializationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final YamlDeserializationMode CLASSIC
- from:
uri: "direct:a"
steps:
- split:
tokenize: \n"
steps:
- log: "${body}"
public static final YamlDeserializationMode FLOW
from("direct:a")
.split().tokenize("\n"))
.log("${body}");
Can be represented by the following YAML:
- from:
uri: "direct:a"
steps:
- split:
tokenize: \n"
- log: "${body}"
As you may have noticed, there's no need to define the split's specific steps as the subsequent log processor is
automatically added to the step's outputs.
See https://issues.apache.org/jira/browse/CAMEL-16504public static YamlDeserializationMode[] values()
for (YamlDeserializationMode c : YamlDeserializationMode.values()) System.out.println(c);
public static YamlDeserializationMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullApache Camel