Package org.apache.camel.dsl.yaml.common
Enum YamlDeserializationMode
- java.lang.Object
-
- java.lang.Enum<YamlDeserializationMode>
-
- org.apache.camel.dsl.yaml.common.YamlDeserializationMode
-
- All Implemented Interfaces:
Serializable
,Comparable<YamlDeserializationMode>
public enum YamlDeserializationMode extends Enum<YamlDeserializationMode>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
CLASSIC
public static final YamlDeserializationMode CLASSIC
This option configure the deserialization engine to strictly respect the model definition. As example, a Split step is expected to have it's own steps to process the result of the split.- from: uri: "direct:a" steps: - split: tokenize: \n" steps: - log: "${body}"
-
FLOW
public static final YamlDeserializationMode FLOW
Mimics the Java Dsl. When the deserializer is configured to use this mode, a route can be defined using a syntax that is closed to the Java DSL, as example, the following Java route:from("direct:a") .split().tokenize("\n")) .log("${body}");
- from: uri: "direct:a" steps: - split: tokenize: \n" - log: "${body}"
-
-
Method Detail
-
values
public static YamlDeserializationMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (YamlDeserializationMode c : YamlDeserializationMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static YamlDeserializationMode valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-