@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 |
---|---|
protected void |
configureDataFormat(DataFormat dataFormat,
CamelContext camelContext)
Allows derived classes to customize the data format
|
String |
getContextPath() |
String |
getEncoding() |
Boolean |
getFilterNonXmlChars() |
Boolean |
getFragment() |
Boolean |
getIgnoreJAXBElement() |
String |
getJaxbProviderProperties() |
Boolean |
getMustBeJAXBElement() |
String |
getNamespacePrefixRef() |
String |
getNoNamespaceSchemaLocation() |
Boolean |
getObjectFactory() |
String |
getPartClass() |
String |
getPartNamespace() |
Boolean |
getPrettyPrint() |
String |
getSchema() |
String |
getSchemaLocation() |
Integer |
getSchemaSeverityLevel() |
String |
getXmlStreamWriterWrapper() |
void |
setContextPath(String contextPath)
Package name where your JAXB classes are located.
|
void |
setEncoding(String encoding)
To overrule and use a specific encoding
|
void |
setFilterNonXmlChars(Boolean filterNonXmlChars)
To ignore non xml characheters and replace them with an empty space.
|
void |
setFragment(Boolean fragment)
To turn on marshalling XML fragment trees.
|
void |
setIgnoreJAXBElement(Boolean 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(Boolean 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(Boolean 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(Boolean 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(Integer schemaSeverityLevel)
Sets the schema severity level to use when validating against a schema.
|
void |
setXmlStreamWriterWrapper(String xmlStreamWriterWrapperRef)
To use a custom xml stream writer.
|
configureDataFormat, createDataFormat, getContentTypeHeader, getDataFormat, getDataFormat, getDataFormat, getDataFormatName, getOtherAttributes, getShortName, setContentTypeHeader, setDataFormat, setDataFormatName, setOtherAttributes, setProperty, setProperty
getId, setId
public JaxbDataFormat()
public JaxbDataFormat(boolean prettyPrint)
public String getContextPath()
public void setContextPath(String contextPath)
public void setSchema(String schema)
public Integer getSchemaSeverityLevel()
public void setSchemaSeverityLevel(Integer schemaSeverityLevel)
public Boolean getPrettyPrint()
public void setPrettyPrint(Boolean prettyPrint)
public Boolean getObjectFactory()
public void setObjectFactory(Boolean objectFactory)
public Boolean getIgnoreJAXBElement()
public void setIgnoreJAXBElement(Boolean ignoreJAXBElement)
public Boolean getMustBeJAXBElement()
public void setMustBeJAXBElement(Boolean mustBeJAXBElement)
public void setFragment(Boolean fragment)
public Boolean getFragment()
public Boolean getFilterNonXmlChars()
public void setFilterNonXmlChars(Boolean 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)
protected void configureDataFormat(DataFormat dataFormat, CamelContext camelContext)
DataFormatDefinition
configureDataFormat
in class DataFormatDefinition
Apache Camel