alexandroid/decompiled/jadx/sources/org/json/XMLParserConfiguration.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

112 lines
3.6 KiB
Java

package org.json;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
/* loaded from: classes11.dex */
public class XMLParserConfiguration extends ParserConfiguration {
private String cDataTagName;
private boolean convertNilAttributeToNull;
private Set<String> forceList;
private Map<String, XMLXsiTypeConverter<?>> xsiTypeMap;
public static final XMLParserConfiguration ORIGINAL = new XMLParserConfiguration();
public static final XMLParserConfiguration KEEP_STRINGS = new XMLParserConfiguration().withKeepStrings(true);
private XMLParserConfiguration(boolean z, String str, boolean z2, Map<String, XMLXsiTypeConverter<?>> map, Set<String> set, int i) {
super(z, i);
this.cDataTagName = str;
this.convertNilAttributeToNull = z2;
this.xsiTypeMap = Collections.unmodifiableMap(map);
this.forceList = Collections.unmodifiableSet(set);
}
@Override // org.json.ParserConfiguration
public XMLParserConfiguration clone() {
return new XMLParserConfiguration(this.keepStrings, this.cDataTagName, this.convertNilAttributeToNull, this.xsiTypeMap, this.forceList, this.maxNestingDepth);
}
public Set<String> getForceList() {
return this.forceList;
}
public Map<String, XMLXsiTypeConverter<?>> getXsiTypeMap() {
return this.xsiTypeMap;
}
public String getcDataTagName() {
return this.cDataTagName;
}
public boolean isConvertNilAttributeToNull() {
return this.convertNilAttributeToNull;
}
public XMLParserConfiguration withConvertNilAttributeToNull(boolean z) {
XMLParserConfiguration clone = clone();
clone.convertNilAttributeToNull = z;
return clone;
}
public XMLParserConfiguration withForceList(Set<String> set) {
XMLParserConfiguration clone = clone();
clone.forceList = Collections.unmodifiableSet(new HashSet(set));
return clone;
}
@Override // org.json.ParserConfiguration
public XMLParserConfiguration withKeepStrings(boolean z) {
return (XMLParserConfiguration) super.withKeepStrings(z);
}
@Override // org.json.ParserConfiguration
public XMLParserConfiguration withMaxNestingDepth(int i) {
return (XMLParserConfiguration) super.withMaxNestingDepth(i);
}
public XMLParserConfiguration withXsiTypeMap(Map<String, XMLXsiTypeConverter<?>> map) {
XMLParserConfiguration clone = clone();
clone.xsiTypeMap = Collections.unmodifiableMap(new HashMap(map));
return clone;
}
public XMLParserConfiguration withcDataTagName(String str) {
XMLParserConfiguration clone = clone();
clone.cDataTagName = str;
return clone;
}
@Deprecated
public XMLParserConfiguration(boolean z) {
this(z, "content", false);
}
@Deprecated
public XMLParserConfiguration(String str) {
this(false, str, false);
}
@Deprecated
public XMLParserConfiguration(boolean z, String str) {
super(z, 512);
this.cDataTagName = str;
this.convertNilAttributeToNull = false;
}
@Deprecated
public XMLParserConfiguration(boolean z, String str, boolean z2) {
super(z, 512);
this.cDataTagName = str;
this.convertNilAttributeToNull = z2;
}
public XMLParserConfiguration() {
this.cDataTagName = "content";
this.convertNilAttributeToNull = false;
this.xsiTypeMap = Collections.EMPTY_MAP;
this.forceList = Collections.EMPTY_SET;
}
}