@Metadata(firstVersion="2.10.0", label="dataformat,transformation,xml,json", title="XML JSon") @Deprecated public class XmlJsonDataFormat extends DataFormatDefinition
Modifier and Type | Field and Description |
---|---|
static String |
ARRAY_NAME
Deprecated.
|
static String |
ELEMENT_NAME
Deprecated.
|
static String |
ENCODING
Deprecated.
|
static String |
EXPANDABLE_PROPERTIES
Deprecated.
|
static String |
FORCE_TOP_LEVEL_OBJECT
Deprecated.
|
static String |
NAMESPACE_LENIENT
Deprecated.
|
static String |
REMOVE_NAMESPACE_PREFIXES
Deprecated.
|
static String |
ROOT_NAME
Deprecated.
|
static String |
SKIP_NAMESPACES
Deprecated.
|
static String |
SKIP_WHITESPACE
Deprecated.
|
static String |
TRIM_SPACES
Deprecated.
|
static String |
TYPE_HINTS
Deprecated.
|
Constructor and Description |
---|
XmlJsonDataFormat()
Deprecated.
|
XmlJsonDataFormat(Map<String,String> options)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
configureDataFormat(DataFormat dataFormat,
CamelContext camelContext)
Deprecated.
Allows derived classes to customize the data format
|
String |
getArrayName()
Deprecated.
|
String |
getElementName()
Deprecated.
|
String |
getEncoding()
Deprecated.
|
List<String> |
getExpandableProperties()
Deprecated.
|
Boolean |
getForceTopLevelObject()
Deprecated.
|
Boolean |
getNamespaceLenient()
Deprecated.
|
Boolean |
getRemoveNamespacePrefixes()
Deprecated.
|
String |
getRootName()
Deprecated.
|
Boolean |
getSkipNamespaces()
Deprecated.
|
Boolean |
getSkipWhitespace()
Deprecated.
|
Boolean |
getTrimSpaces()
Deprecated.
|
String |
getTypeHints()
Deprecated.
|
void |
setArrayName(String arrayName)
Deprecated.
Specifies the name of the top-level XML element.
|
void |
setElementName(String elementName)
Deprecated.
Specifies the name of the XML elements representing each array element.
|
void |
setEncoding(String encoding)
Deprecated.
Sets the encoding.
|
void |
setExpandableProperties(List<String> expandableProperties)
Deprecated.
With expandable properties, JSON array elements are converted to XML as a sequence of repetitive XML elements
with the local name equal to the JSON key, for example: { number: 1,2,3 }, normally converted to:
|
void |
setForceTopLevelObject(Boolean forceTopLevelObject)
Deprecated.
Determines whether the resulting JSON will start off with a top-most element whose name matches the XML root element.
|
void |
setNamespaceLenient(Boolean namespaceLenient)
Deprecated.
Flag to be tolerant to incomplete namespace prefixes.
|
void |
setRemoveNamespacePrefixes(Boolean removeNamespacePrefixes)
Deprecated.
Removes the namespace prefixes from XML qualified elements, so that the resulting JSON string does not contain them.
|
void |
setRootName(String rootName)
Deprecated.
Specifies the name of the top-level element.
|
void |
setSkipNamespaces(Boolean skipNamespaces)
Deprecated.
Signals whether namespaces should be ignored.
|
void |
setSkipWhitespace(Boolean skipWhitespace)
Deprecated.
Determines whether white spaces between XML elements will be regarded as text values or disregarded.
|
void |
setTrimSpaces(Boolean trimSpaces)
Deprecated.
Determines whether leading and trailing white spaces will be omitted from String values.
|
void |
setTypeHints(String typeHints)
Deprecated.
Adds type hints to the resulting XML to aid conversion back to JSON.
|
configureDataFormat, createDataFormat, getContentTypeHeader, getDataFormat, getDataFormat, getDataFormat, getDataFormatName, getOtherAttributes, getShortName, setContentTypeHeader, setDataFormat, setDataFormatName, setOtherAttributes, setProperty, setProperty
getId, setId
public static final String TYPE_HINTS
public static final String REMOVE_NAMESPACE_PREFIXES
public static final String SKIP_NAMESPACES
public static final String TRIM_SPACES
public static final String SKIP_WHITESPACE
public static final String EXPANDABLE_PROPERTIES
public static final String ARRAY_NAME
public static final String ELEMENT_NAME
public static final String ROOT_NAME
public static final String NAMESPACE_LENIENT
public static final String FORCE_TOP_LEVEL_OBJECT
public static final String ENCODING
public XmlJsonDataFormat()
public XmlJsonDataFormat(Map<String,String> options)
protected void configureDataFormat(DataFormat dataFormat, CamelContext camelContext)
DataFormatDefinition
configureDataFormat
in class DataFormatDefinition
public String getEncoding()
public void setEncoding(String encoding)
public String getElementName()
public void setElementName(String elementName)
public String getArrayName()
public void setArrayName(String arrayName)
public Boolean getForceTopLevelObject()
public void setForceTopLevelObject(Boolean forceTopLevelObject)
public Boolean getNamespaceLenient()
public void setNamespaceLenient(Boolean namespaceLenient)
public String getRootName()
public void setRootName(String rootName)
public Boolean getSkipWhitespace()
public void setSkipWhitespace(Boolean skipWhitespace)
public Boolean getTrimSpaces()
public void setTrimSpaces(Boolean trimSpaces)
public Boolean getSkipNamespaces()
public void setSkipNamespaces(Boolean skipNamespaces)
public Boolean getRemoveNamespacePrefixes()
public void setRemoveNamespacePrefixes(Boolean removeNamespacePrefixes)
public List<String> getExpandableProperties()
public void setExpandableProperties(List<String> expandableProperties)
public String getTypeHints()
public void setTypeHints(String typeHints)
Apache Camel