@Metadata(firstVersion="1.0.0",
label="dataformat,transformation,xml",
title="JAXB")
public class JaxbDataFormat
extends DataFormatDefinition
| Constructor and Description |
|---|
JaxbDataFormat() |
JaxbDataFormat(boolean prettyPrint) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContextPath() |
String |
getContextPathIsClassName() |
String |
getEncoding() |
String |
getFilterNonXmlChars() |
String |
getFragment() |
String |
getIgnoreJAXBElement() |
String |
getJaxbProviderProperties() |
String |
getMustBeJAXBElement() |
String |
getNamespacePrefixRef() |
String |
getNoNamespaceSchemaLocation() |
String |
getObjectFactory() |
String |
getPartClass() |
String |
getPartNamespace() |
String |
getPrettyPrint() |
String |
getSchema() |
String |
getSchemaLocation() |
String |
getSchemaSeverityLevel() |
String |
getXmlStreamWriterWrapper() |
void |
setContextPath(String contextPath)
Package name where your JAXB classes are located.
|
void |
setContextPathIsClassName(String contextPathIsClassName)
This can be set to true to mark that the contextPath is referring to a classname and not a package name.
|
void |
setEncoding(String encoding)
To overrule and use a specific encoding
|
void |
setFilterNonXmlChars(String filterNonXmlChars)
To ignore non xml characheters and replace them with an empty space.
|
void |
setFragment(String fragment)
To turn on marshalling XML fragment trees.
|
void |
setIgnoreJAXBElement(String ignoreJAXBElement)
Whether to ignore JAXBElement elements - only needed to be set to false
in very special use-cases.
|
void |
setJaxbProviderProperties(String jaxbProviderProperties)
Refers to a custom java.util.Map to lookup in the registry containing
custom JAXB provider properties to be used with the JAXB marshaller.
|
void |
setMustBeJAXBElement(String mustBeJAXBElement)
Whether marhsalling must be java objects with JAXB annotations.
|
void |
setNamespacePrefixRef(String namespacePrefixRef)
When marshalling using JAXB or SOAP then the JAXB implementation will
automatic assign namespace prefixes, such as ns2, ns3, ns4 etc.
|
void |
setNoNamespaceSchemaLocation(String schemaLocation)
To define the location of the namespaceless schema
|
void |
setObjectFactory(String objectFactory)
Whether to allow using ObjectFactory classes to create the POJO classes
during marshalling.
|
void |
setPartClass(String partClass)
Name of class used for fragment parsing.
|
void |
setPartNamespace(String partNamespace)
XML namespace to use for fragment parsing.
|
void |
setPrettyPrint(String prettyPrint)
To enable pretty printing output nicely formatted.
|
void |
setSchema(String schema)
To validate against an existing schema.
|
void |
setSchemaLocation(String schemaLocation)
To define the location of the schema
|
void |
setSchemaSeverityLevel(String schemaSeverityLevel)
Sets the schema severity level to use when validating against a schema.
|
void |
setXmlStreamWriterWrapper(String xmlStreamWriterWrapperRef)
To use a custom xml stream writer.
|
getContentTypeHeader, getDataFormat, getDataFormatName, getShortName, setContentTypeHeader, setDataFormat, setDataFormatNamegetId, setIdpublic JaxbDataFormat()
public JaxbDataFormat(boolean prettyPrint)
public String getContextPath()
public void setContextPath(String contextPath)
public String getContextPathIsClassName()
public void setContextPathIsClassName(String contextPathIsClassName)
public void setSchema(String schema)
public String getSchemaSeverityLevel()
public void setSchemaSeverityLevel(String schemaSeverityLevel)
public String getPrettyPrint()
public void setPrettyPrint(String prettyPrint)
public String getObjectFactory()
public void setObjectFactory(String objectFactory)
public String getIgnoreJAXBElement()
public void setIgnoreJAXBElement(String ignoreJAXBElement)
public String getMustBeJAXBElement()
public void setMustBeJAXBElement(String mustBeJAXBElement)
public void setFragment(String fragment)
public String getFragment()
public String getFilterNonXmlChars()
public void setFilterNonXmlChars(String filterNonXmlChars)
public String getEncoding()
public void setEncoding(String encoding)
public String getPartClass()
public void setPartClass(String partClass)
public String getPartNamespace()
public void setPartNamespace(String partNamespace)
public String getNamespacePrefixRef()
public void setNamespacePrefixRef(String namespacePrefixRef)
public String getXmlStreamWriterWrapper()
public void setXmlStreamWriterWrapper(String xmlStreamWriterWrapperRef)
public String getSchemaLocation()
public void setSchemaLocation(String schemaLocation)
public String getNoNamespaceSchemaLocation()
public void setNoNamespaceSchemaLocation(String schemaLocation)
public String getJaxbProviderProperties()
public void setJaxbProviderProperties(String jaxbProviderProperties)
Apache Camel