@Metadata(firstVersion="2.17.0", label="dataformat,transformation,yaml", title="YAML") public class YAMLDataFormat extends DataFormatDefinition
Constructor and Description |
---|
YAMLDataFormat() |
YAMLDataFormat(YAMLLibrary library) |
YAMLDataFormat(YAMLLibrary library,
Class<?> unmarshalType) |
Modifier and Type | Method and Description |
---|---|
String |
getAllowAnyType() |
String |
getAllowRecursiveKeys() |
ClassLoader |
getClassLoader() |
String |
getConstructor() |
String |
getDumperOptions() |
YAMLLibrary |
getLibrary() |
String |
getMaxAliasesForCollections() |
String |
getPrettyFlow() |
String |
getRepresenter() |
String |
getResolver() |
List<YAMLTypeFilterDefinition> |
getTypeFilters() |
Class<?> |
getUnmarshalType() |
String |
getUnmarshalTypeName() |
String |
getUseApplicationContextClassLoader() |
void |
setAllowAnyType(String allowAnyType)
Allow any class to be un-marshaled
|
void |
setAllowRecursiveKeys(String allowRecursiveKeys)
Set whether recursive keys are allowed.
|
void |
setClassLoader(ClassLoader classLoader)
Set a custom classloader
|
void |
setConstructor(String constructor)
BaseConstructor to construct incoming documents.
|
void |
setDumperOptions(String dumperOptions)
DumperOptions to configure outgoing objects.
|
void |
setLibrary(YAMLLibrary library)
Which yaml library to use.
|
void |
setMaxAliasesForCollections(String maxAliasesForCollections)
Set the maximum amount of aliases allowed for collections.
|
void |
setPrettyFlow(String prettyFlow)
Force the emitter to produce a pretty YAML document when using the flow style.
|
void |
setRepresenter(String representer)
Representer to emit outgoing objects.
|
void |
setResolver(String resolver)
Resolver to detect implicit type
|
void |
setTypeFilters(List<YAMLTypeFilterDefinition> typeFilters)
Set the types SnakeYAML is allowed to un-marshall
|
void |
setUnmarshalType(Class<?> type)
Class of the object to be created
|
void |
setUnmarshalTypeName(String unmarshalTypeName)
Class name of the java type to use when unmarshalling
|
void |
setUseApplicationContextClassLoader(String useApplicationContextClassLoader)
Use ApplicationContextClassLoader as custom ClassLoader
|
getDataFormat, getDataFormatName, getShortName, setDataFormat, setDataFormatName
getId, setId
public YAMLDataFormat()
public YAMLDataFormat(YAMLLibrary library)
public YAMLDataFormat(YAMLLibrary library, Class<?> unmarshalType)
public YAMLLibrary getLibrary()
public void setLibrary(YAMLLibrary library)
public Class<?> getUnmarshalType()
public void setUnmarshalType(Class<?> type)
public String getUnmarshalTypeName()
public void setUnmarshalTypeName(String unmarshalTypeName)
public ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
public String getConstructor()
public void setConstructor(String constructor)
public String getRepresenter()
public void setRepresenter(String representer)
public String getDumperOptions()
public void setDumperOptions(String dumperOptions)
public String getResolver()
public void setResolver(String resolver)
public String getUseApplicationContextClassLoader()
public void setUseApplicationContextClassLoader(String useApplicationContextClassLoader)
public String getPrettyFlow()
public void setPrettyFlow(String prettyFlow)
public String getAllowAnyType()
public void setAllowAnyType(String allowAnyType)
public List<YAMLTypeFilterDefinition> getTypeFilters()
public void setTypeFilters(List<YAMLTypeFilterDefinition> typeFilters)
public String getMaxAliasesForCollections()
public void setMaxAliasesForCollections(String maxAliasesForCollections)
public String getAllowRecursiveKeys()
public void setAllowRecursiveKeys(String allowRecursiveKeys)
Apache Camel