org.apache.camel.model.dataformat
Class XmlJsonDataFormat

java.lang.Object
  extended by org.apache.camel.model.IdentifiedType
      extended by org.apache.camel.model.DataFormatDefinition
          extended by org.apache.camel.model.dataformat.XmlJsonDataFormat

public class XmlJsonDataFormat
extends DataFormatDefinition

Represents a XML-JSON DataFormat.

Version:

Field Summary
static String ARRAY_NAME
           
static String ELEMENT_NAME
           
static String ENCODING
           
static String EXPANDABLE_PROPERTIES
           
static String FORCE_TOP_LEVEL_OBJECT
           
static String NAMESPACE_LENIENT
           
static String REMOVE_NAMESPACE_PREFIXES
           
static String ROOT_NAME
           
static String SKIP_NAMESPACES
           
static String SKIP_WHITESPACE
           
static String TRIM_SPACES
           
static String TYPE_HINTS
           
 
Constructor Summary
XmlJsonDataFormat()
           
XmlJsonDataFormat(Map<String,String> options)
           
 
Method Summary
protected  void configureDataFormat(DataFormat dataFormat)
          Allows derived classes to customize the data format
 String getArrayName()
           
 String getElementName()
           
 String getEncoding()
           
 List<String> getExpandableProperties()
           
 Boolean getForceTopLevelObject()
           
 Boolean getNamespaceLenient()
           
 Boolean getRemoveNamespacePrefixes()
           
 String getRootName()
           
 Boolean getSkipNamespaces()
           
 Boolean getSkipWhitespace()
           
 Boolean getTrimSpaces()
           
 String getTypeHints()
           
 void setArrayName(String arrayName)
           
 void setElementName(String elementName)
           
 void setEncoding(String encoding)
           
 void setExpandableProperties(List<String> expandableProperties)
           
 void setForceTopLevelObject(Boolean forceTopLevelObject)
           
 void setNamespaceLenient(Boolean namespaceLenient)
           
 void setRemoveNamespacePrefixes(Boolean removeNamespacePrefixes)
           
 void setRootName(String rootName)
           
 void setSkipNamespaces(Boolean skipNamespaces)
           
 void setSkipWhitespace(Boolean skipWhitespace)
           
 void setTrimSpaces(Boolean trimSpaces)
           
 void setTypeHints(String typeHints)
           
 
Methods inherited from class org.apache.camel.model.DataFormatDefinition
createDataFormat, getDataFormat, getDataFormat, getDataFormat, getDataFormatName, getShortName, setDataFormat, setDataFormatName, setProperty
 
Methods inherited from class org.apache.camel.model.IdentifiedType
getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_HINTS

public static final String TYPE_HINTS
See Also:
Constant Field Values

REMOVE_NAMESPACE_PREFIXES

public static final String REMOVE_NAMESPACE_PREFIXES
See Also:
Constant Field Values

SKIP_NAMESPACES

public static final String SKIP_NAMESPACES
See Also:
Constant Field Values

TRIM_SPACES

public static final String TRIM_SPACES
See Also:
Constant Field Values

SKIP_WHITESPACE

public static final String SKIP_WHITESPACE
See Also:
Constant Field Values

EXPANDABLE_PROPERTIES

public static final String EXPANDABLE_PROPERTIES
See Also:
Constant Field Values

ARRAY_NAME

public static final String ARRAY_NAME
See Also:
Constant Field Values

ELEMENT_NAME

public static final String ELEMENT_NAME
See Also:
Constant Field Values

ROOT_NAME

public static final String ROOT_NAME
See Also:
Constant Field Values

NAMESPACE_LENIENT

public static final String NAMESPACE_LENIENT
See Also:
Constant Field Values

FORCE_TOP_LEVEL_OBJECT

public static final String FORCE_TOP_LEVEL_OBJECT
See Also:
Constant Field Values

ENCODING

public static final String ENCODING
See Also:
Constant Field Values
Constructor Detail

XmlJsonDataFormat

public XmlJsonDataFormat()

XmlJsonDataFormat

public XmlJsonDataFormat(Map<String,String> options)
Method Detail

configureDataFormat

protected void configureDataFormat(DataFormat dataFormat)
Description copied from class: DataFormatDefinition
Allows derived classes to customize the data format

Overrides:
configureDataFormat in class DataFormatDefinition

getEncoding

public String getEncoding()

setEncoding

public void setEncoding(String encoding)

getElementName

public String getElementName()

setElementName

public void setElementName(String elementName)

getArrayName

public String getArrayName()

setArrayName

public void setArrayName(String arrayName)

getForceTopLevelObject

public Boolean getForceTopLevelObject()

setForceTopLevelObject

public void setForceTopLevelObject(Boolean forceTopLevelObject)

getNamespaceLenient

public Boolean getNamespaceLenient()

setNamespaceLenient

public void setNamespaceLenient(Boolean namespaceLenient)

getRootName

public String getRootName()

setRootName

public void setRootName(String rootName)

getSkipWhitespace

public Boolean getSkipWhitespace()

setSkipWhitespace

public void setSkipWhitespace(Boolean skipWhitespace)

getTrimSpaces

public Boolean getTrimSpaces()

setTrimSpaces

public void setTrimSpaces(Boolean trimSpaces)

getSkipNamespaces

public Boolean getSkipNamespaces()

setSkipNamespaces

public void setSkipNamespaces(Boolean skipNamespaces)

getRemoveNamespacePrefixes

public Boolean getRemoveNamespacePrefixes()

setRemoveNamespacePrefixes

public void setRemoveNamespacePrefixes(Boolean removeNamespacePrefixes)

getExpandableProperties

public List<String> getExpandableProperties()

setExpandableProperties

public void setExpandableProperties(List<String> expandableProperties)

getTypeHints

public String getTypeHints()

setTypeHints

public void setTypeHints(String typeHints)


Apache CAMEL