@Deprecated public class XMLParserConfiguration extends ParserConfiguration
| Modifier and Type | Field and Description |
|---|---|
static XMLParserConfiguration |
KEEP_STRINGS
Deprecated.
Original configuration of the XML Parser except that values are kept as strings.
|
static XMLParserConfiguration |
ORIGINAL
Deprecated.
Original Configuration of the XML Parser.
|
DEFAULT_MAXIMUM_NESTING_DEPTH, UNDEFINED_MAXIMUM_NESTING_DEPTH| Constructor and Description |
|---|
XMLParserConfiguration()
Deprecated.
Default parser configuration.
|
XMLParserConfiguration(boolean keepStrings)
Deprecated.
This constructor has been deprecated in favor of using the new builder
pattern for the configuration.
This constructor may be removed in a future release.
|
XMLParserConfiguration(boolean keepStrings,
java.lang.String cDataTagName)
Deprecated.
This constructor has been deprecated in favor of using the new builder
pattern for the configuration.
This constructor may be removed in a future release.
|
XMLParserConfiguration(boolean keepStrings,
java.lang.String cDataTagName,
boolean convertNilAttributeToNull)
Deprecated.
This constructor has been deprecated in favor of using the new builder
pattern for the configuration.
This constructor may be removed or marked private in a future release.
|
XMLParserConfiguration(java.lang.String cDataTagName)
Deprecated.
This constructor has been deprecated in favor of using the new builder
pattern for the configuration.
This constructor may be removed in a future release.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getcDataTagName()
Deprecated.
The name of the key in a JSON Object that indicates a CDATA section.
|
java.util.Set<java.lang.String> |
getForceList()
Deprecated.
When parsing the XML into JSON, specifies that tags that will be converted to arrays
in this configuration
Set<String> to parse the provided tags' values as arrays |
java.util.Map<java.lang.String,XMLXsiTypeConverter<?>> |
getXsiTypeMap()
Deprecated.
When parsing the XML into JSON, specifies that the values with attribute xsi:type
will be converted to target type defined to client in this configuration
Map<String, XMLXsiTypeConverter<?>> to parse values with attribute
xsi:type="integer" as integer, xsi:type="string" as string |
boolean |
isConvertNilAttributeToNull()
Deprecated.
When parsing the XML into JSON, specifies if values with attribute xsi:nil="true"
should be kept as attribute(
false), or they should be converted to
null(true) |
XMLParserConfiguration |
withcDataTagName(java.lang.String newVal)
Deprecated.
The name of the key in a JSON Object that indicates a CDATA section.
|
XMLParserConfiguration |
withConvertNilAttributeToNull(boolean newVal)
Deprecated.
When parsing the XML into JSON, specifies if values with attribute xsi:nil="true"
should be kept as attribute(
false), or they should be converted to
null(true) |
XMLParserConfiguration |
withForceList(java.util.Set<java.lang.String> forceList)
Deprecated.
When parsing the XML into JSON, specifies that tags that will be converted to arrays
in this configuration
Set<String> to parse the provided tags' values as arrays |
XMLParserConfiguration |
withKeepStrings(boolean newVal)
Deprecated.
When parsing the XML into JSON, specifies if values should be kept as strings (
true), or if
they should try to be guessed into JSON values (numeric, boolean, string) |
XMLParserConfiguration |
withMaxNestingDepth(int maxNestingDepth)
Deprecated.
Defines the maximum nesting depth that the parser will descend before throwing an exception
when parsing the XML into JSON.
|
XMLParserConfiguration |
withXsiTypeMap(java.util.Map<java.lang.String,XMLXsiTypeConverter<?>> xsiTypeMap)
Deprecated.
When parsing the XML into JSON, specifies that the values with attribute xsi:type
will be converted to target type defined to client in this configuration
Map<String, XMLXsiTypeConverter<?>> to parse values with attribute
xsi:type="integer" as integer, xsi:type="string" as string |
getMaxNestingDepth, isKeepStringspublic static final XMLParserConfiguration ORIGINAL
public static final XMLParserConfiguration KEEP_STRINGS
public XMLParserConfiguration()
@Deprecated public XMLParserConfiguration(boolean keepStrings)
keepStrings - true to parse all values as string.
false to try and convert XML string values into a JSON value.@Deprecated public XMLParserConfiguration(java.lang.String cDataTagName)
null to
disable CDATA processingcDataTagName - null to disable CDATA processing. Any other value
to use that value as the JSONObject key name to process as CDATA.@Deprecated
public XMLParserConfiguration(boolean keepStrings,
java.lang.String cDataTagName)
keepStrings - true to parse all values as string.
false to try and convert XML string values into a JSON value.cDataTagName - null to disable CDATA processing. Any other value
to use that value as the JSONObject key name to process as CDATA.@Deprecated
public XMLParserConfiguration(boolean keepStrings,
java.lang.String cDataTagName,
boolean convertNilAttributeToNull)
keepStrings - true to parse all values as string.
false to try and convert XML string values into a JSON value.cDataTagName - null to disable CDATA processing. Any other value
to use that value as the JSONObject key name to process as CDATA.convertNilAttributeToNull - true to parse values with attribute xsi:nil="true" as null.
false to parse values with attribute xsi:nil="true" as {"xsi:nil":true}.public XMLParserConfiguration withKeepStrings(boolean newVal)
true), or if
they should try to be guessed into JSON values (numeric, boolean, string)withKeepStrings in class ParserConfigurationnewVal - new value to use for the keepStrings configuration option.public java.lang.String getcDataTagName()
null to indicate no CDATA
processing.cDataTagName configuration value.public XMLParserConfiguration withcDataTagName(java.lang.String newVal)
null to indicate no CDATA
processing.newVal - new value to use for the cDataTagName configuration option.public boolean isConvertNilAttributeToNull()
false), or they should be converted to
null(true)convertNilAttributeToNull configuration value.public XMLParserConfiguration withConvertNilAttributeToNull(boolean newVal)
false), or they should be converted to
null(true)newVal - new value to use for the convertNilAttributeToNull configuration option.public java.util.Map<java.lang.String,XMLXsiTypeConverter<?>> getXsiTypeMap()
Map<String, XMLXsiTypeConverter<?>> to parse values with attribute
xsi:type="integer" as integer, xsi:type="string" as stringxsiTypeMap unmodifiable configuration map.public XMLParserConfiguration withXsiTypeMap(java.util.Map<java.lang.String,XMLXsiTypeConverter<?>> xsiTypeMap)
Map<String, XMLXsiTypeConverter<?>> to parse values with attribute
xsi:type="integer" as integer, xsi:type="string" as stringxsiTypeMap - new HashMap<String, XMLXsiTypeConverter<?>>() to parse values with attribute
xsi:type="integer" as integer, xsi:type="string" as stringpublic java.util.Set<java.lang.String> getForceList()
Set<String> to parse the provided tags' values as arraysforceList unmodifiable configuration set.public XMLParserConfiguration withForceList(java.util.Set<java.lang.String> forceList)
Set<String> to parse the provided tags' values as arraysforceList - new HashSet<String>() to parse the provided tags' values as arrayspublic XMLParserConfiguration withMaxNestingDepth(int maxNestingDepth)
withMaxNestingDepth in class ParserConfigurationmaxNestingDepth - the maximum nesting depth allowed to the XML parserCopyright © 2010 - 2023 Adobe. All Rights Reserved