Package org.apache.camel.model
Class InputTypeDefinition
java.lang.Object
org.apache.camel.model.OptionalIdentifiedDefinition<InputTypeDefinition>
org.apache.camel.model.InputTypeDefinition
- All Implemented Interfaces:
org.apache.camel.CamelContextAware,org.apache.camel.LineNumberAware,org.apache.camel.NamedNode,org.apache.camel.spi.HasCamelContext,org.apache.camel.spi.HasId,org.apache.camel.spi.IdAware
@Metadata(label="configuration")
public class InputTypeDefinition
extends OptionalIdentifiedDefinition<InputTypeDefinition>
Set the expected data type of the input message. If the actual message type is different at runtime, camel look for a
required
and apply if exists. If validate attribute is true then camel applies
as well. Type name consists of two parts, 'scheme' and 'name' connected with ':'. For Java type 'name' is a fully
qualified class name. For example
invalid reference
Transformer
invalid reference
Validator
java:java.lang.String, json:ABCOrder. It's also possible to specify
only scheme part, so that it works like a wildcard. If only 'xml' is specified, all the XML message matches. It's
handy to add only one transformer/validator for all the transformation from/to XML.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()getUrn()voidsetJavaClass(Class<?> clazz) Set input type via Java Class.voidThe input type URN.voidsetValidate(String validate) Whether if validation is required for this input type.toString()validate(boolean validate) Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition
description, getCamelContext, getCustomId, getDescription, getDescriptionText, getId, getLineNumber, getLocation, getNodePrefixId, getParent, hasCustomIdAssigned, id, idOrCreate, setCamelContext, setCustomId, setDescription, setGeneratedId, setId, setLineNumber, setLocationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.camel.NamedNode
acceptDebugger
-
Constructor Details
-
InputTypeDefinition
public InputTypeDefinition()
-
-
Method Details