@Metadata(label="configuration") public class OutputTypeDefinition extends OptionalIdentifiedDefinition<OutputTypeDefinition>
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 XML-Java transformation.InputTypeDefinition} {@link Transformer} {@link Validator}| Constructor and Description |
|---|
OutputTypeDefinition() |
| Modifier and Type | Method and Description |
|---|---|
String |
getLabel() |
String |
getShortName() |
String |
getUrn()
Get output type URN.
|
boolean |
isValidate()
Get if validation is required for this output type.
|
void |
setJavaClass(Class<?> clazz)
Set output type via Java Class.
|
void |
setUrn(String urn)
Set output type URN.
|
void |
setValidate(boolean validate)
Set if validation is required for this output type.
|
String |
toString() |
description, description, getCustomId, getDescription, getDescriptionText, getId, getParent, hasCustomIdAssigned, id, idOrCreate, setCustomId, setDescription, setIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetReadPropertyPlaceholderOptions, getWritePropertyPlaceholderOptionspublic OutputTypeDefinition()
public void setJavaClass(Class<?> clazz)
clazz - Java Classpublic boolean isValidate()
public void setValidate(boolean validate)
validate - true if validatepublic String getShortName()
Apache Camel