@Metadata(label="configuration") public class InputTypeDefinition extends OptionalIdentifiedDefinition<InputTypeDefinition>
Transformer
and apply if exists. If validate attribute is true then camel applies Validator
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 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.OutputTypeDefinition} {@link Transformer} {@link Validator}
Constructor and Description |
---|
InputTypeDefinition() |
Modifier and Type | Method and Description |
---|---|
String |
getLabel() |
String |
getShortName() |
String |
getUrn()
Get input type URN.
|
String |
getValidate()
Get if validation is required for this input type.
|
InputTypeDefinition |
javaClass(Class<?> clazz) |
void |
setJavaClass(Class<?> clazz)
Set input type via Java Class.
|
void |
setUrn(String urn)
Set input type URN.
|
void |
setValidate(String validate)
Set if validation is required for this input type.
|
String |
toString() |
InputTypeDefinition |
urn(String urn) |
InputTypeDefinition |
validate(boolean validate) |
description, description, getCustomId, getDescription, getDescriptionText, getId, getParent, hasCustomIdAssigned, id, idOrCreate, setCustomId, setDescription, setGeneratedId, setId
public InputTypeDefinition urn(String urn)
public InputTypeDefinition javaClass(Class<?> clazz)
public InputTypeDefinition validate(boolean validate)
public String getUrn()
public void setUrn(String urn)
urn
- input type URNpublic void setJavaClass(Class<?> clazz)
clazz
- Java Classpublic String getValidate()
public void setValidate(String validate)
validate
- true if validatepublic String getShortName()
public String getLabel()
Apache Camel