Class JsonXMLConfigBuilder
java.lang.Object
org.apache.synapse.commons.staxon.core.json.JsonXMLConfigBuilder
Configuration builder with "fluid" interface.
JsonXMLConfig config = new JsonXMLConfigBuilder().virtualRoot("foo").prettyPrint(true).build();
Initially, values are set according to JsonXMLConfig.DEFAULT.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new builder. -
Method Summary
Modifier and TypeMethodDescriptionautoArray(boolean autoArray) Set autoArray property and return receiver.autoPrimitive(boolean autoPrimitive) Set autoPrimitive property and return receiver.build()Build a new configuration.customRegex(String regex) Set Custom Regex for ignore Auto Primitive modecustomReplaceRegex(String customReplaceRegex) customReplaceSequence(String customReplaceSequence) multiplePI(boolean multiplePI) Set multiplePI property and return receiver.namespaceDeclarations(boolean namespaceDeclarations) Set namespaceDeclarations property and return receiver.namespaceSeparator(char namespaceSeparator) Set namespaceSeparator property and return receiver.preserverNamespacesForJson(boolean preserverNamespacesForJson) Set preserveNamespaces property and return receiver.prettyPrint(boolean prettyPrint) Set prettyPrint property and return receiver.processNCNames(boolean processNCNames) Set processNCNames property and return receiver.readWriteXmlNil(boolean readWriteXmlNil) Set readWriteXmlNil property and return receiver.repairingNamespaces(boolean repairingNamespaces) Set repairingNamespaces property and return receiver.virtualRoot(String virtualRoot) Set virtualRoot property and return receiver.virtualRoot(QName virtualRoot) Set virtualRoot property and return receiver.writeNullForEmptyElement(boolean writeNullForEmptyElements) Set writeNullForEmptyElement property and return receiver.
-
Field Details
-
config
-
-
Constructor Details
-
JsonXMLConfigBuilder
public JsonXMLConfigBuilder()Create a new builder. -
JsonXMLConfigBuilder
-
-
Method Details
-
build
Build a new configuration.- Returns:
- configuration instance
-
autoArray
Set autoArray property and return receiver.- Parameters:
autoArray-- Returns:
- this
-
autoPrimitive
Set autoPrimitive property and return receiver.- Parameters:
autoPrimitive-- Returns:
- this
-
multiplePI
Set multiplePI property and return receiver.- Parameters:
multiplePI-- Returns:
- this
-
namespaceDeclarations
Set namespaceDeclarations property and return receiver.- Parameters:
namespaceDeclarations-- Returns:
- this
-
namespaceSeparator
Set namespaceSeparator property and return receiver.- Parameters:
namespaceSeparator-- Returns:
- this
-
prettyPrint
Set prettyPrint property and return receiver.- Parameters:
prettyPrint-- Returns:
- this
-
virtualRoot
Set virtualRoot property and return receiver.- Parameters:
virtualRoot-- Returns:
- this
-
virtualRoot
Set virtualRoot property and return receiver.- Parameters:
virtualRoot- (parsed withQName.valueOf(String))- Returns:
- this
-
repairingNamespaces
Set repairingNamespaces property and return receiver.- Parameters:
repairingNamespaces-- Returns:
- this
-
customRegex
Set Custom Regex for ignore Auto Primitive mode- Parameters:
regex-- Returns:
- this
-
customReplaceRegex
-
customReplaceSequence
-
readWriteXmlNil
Set readWriteXmlNil property and return receiver.- Parameters:
readWriteXmlNil-- Returns:
- this
-
writeNullForEmptyElement
Set writeNullForEmptyElement property and return receiver.- Parameters:
writeNullForEmptyElements- true if writing null, false if writing ""- Returns:
- this
-
preserverNamespacesForJson
Set preserveNamespaces property and return receiver.- Parameters:
preserverNamespacesForJson- true if writing null, false if writing ""- Returns:
- this
-
processNCNames
Set processNCNames property and return receiver.- Parameters:
processNCNames- true if writing null, false if writing ""- Returns:
- this
-