Uses of Interface
org.json.XMLXsiTypeConverter
-
Uses of XMLXsiTypeConverter in org.json
Fields in org.json with type parameters of type XMLXsiTypeConverterModifier and TypeFieldDescriptionprivate Map
<String, XMLXsiTypeConverter<?>> XMLParserConfiguration.xsiTypeMap
This will allow type conversion for values in XML if xsi:type attribute is definedMethods in org.json that return types with arguments of type XMLXsiTypeConverterModifier and TypeMethodDescriptionXMLParserConfiguration.getXsiTypeMap()
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 configurationMap<String, XMLXsiTypeConverter<?>>
to parse values with attribute xsi:type="integer" as integer, xsi:type="string" as stringMethods in org.json with parameters of type XMLXsiTypeConverterModifier and TypeMethodDescriptionstatic Object
XML.stringToValue
(String string, XMLXsiTypeConverter<?> typeConverter) This method tries to convert the given string value to the target objectMethod parameters in org.json with type arguments of type XMLXsiTypeConverterModifier and TypeMethodDescriptionXMLParserConfiguration.withXsiTypeMap
(Map<String, XMLXsiTypeConverter<?>> xsiTypeMap) 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 configurationMap<String, XMLXsiTypeConverter<?>>
to parse values with attribute xsi:type="integer" as integer, xsi:type="string" as stringConstructor parameters in org.json with type arguments of type XMLXsiTypeConverterModifierConstructorDescriptionprivate
XMLParserConfiguration
(boolean keepStrings, String cDataTagName, boolean convertNilAttributeToNull, Map<String, XMLXsiTypeConverter<?>> xsiTypeMap, Set<String> forceList, int maxNestingDepth, boolean closeEmptyTag, boolean keepNumberAsString, boolean keepBooleanAsString) Configure the parser to use custom settings.