public static class JettisonConfig.MappedJettisonBuilder extends JettisonConfig.Builder
JettisonConfig
options
for the JettisonConfig.Notation.MAPPED_JETTISON
convention.jsonXml2JsonNs, serializeAsArray
Modifier and Type | Method and Description |
---|---|
JettisonConfig.MappedJettisonBuilder |
serializeAsArray(List<String> arrays)
Add element names to be treated as arrays.
|
JettisonConfig.MappedJettisonBuilder |
serializeAsArray(String... arrays)
Add element names to be treated as arrays.
|
JettisonConfig.MappedJettisonBuilder |
xml2JsonNs(Map<String,String> jsonXml2JsonNs)
Setter for XML to JSON namespace mapping.
|
build
public JettisonConfig.MappedJettisonBuilder xml2JsonNs(Map<String,String> jsonXml2JsonNs)
JettisonConfig.Notation.MAPPED_JETTISON
notation only.
The value is a map with zero or more key/value pairs, where the key is an XML namespace and the value is the prefix to use as the replacement for the XML namespace.
The default value is a map with zero key/value pairs.
jsonXml2JsonNs
- XML to JSON namespace map.public JettisonConfig.MappedJettisonBuilder serializeAsArray(String... arrays)
JettisonConfig.Notation.MAPPED_JETTISON
notation only.
Property value is a list of element names that should be treated as arrays even if only a single item is present.
The default value is an empty list.
arrays
- names to be serialized as arrays.public JettisonConfig.MappedJettisonBuilder serializeAsArray(List<String> arrays)
JettisonConfig.Notation.MAPPED_JETTISON
notation only.
Property value is a list of element names that should be treated as arrays even if only a single item is present.
The default value is an empty list.
arrays
- of element names to be serialized as arrays.Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.