Initial commit
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
package com.thoughtworks.xstream.mapper;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class XmlFriendlyMapper extends AbstractXmlFriendlyMapper {
|
||||
public XmlFriendlyMapper(Mapper mapper) {
|
||||
super(mapper);
|
||||
}
|
||||
|
||||
public String mapNameFromXML(String str) {
|
||||
return unescapeFieldName(str);
|
||||
}
|
||||
|
||||
public String mapNameToXML(String str) {
|
||||
return escapeFieldName(str);
|
||||
}
|
||||
|
||||
@Override // com.thoughtworks.xstream.mapper.MapperWrapper, com.thoughtworks.xstream.mapper.Mapper
|
||||
public Class realClass(String str) {
|
||||
return super.realClass(unescapeClassName(str));
|
||||
}
|
||||
|
||||
@Override // com.thoughtworks.xstream.mapper.MapperWrapper, com.thoughtworks.xstream.mapper.Mapper
|
||||
public String realMember(Class cls, String str) {
|
||||
return unescapeFieldName(super.realMember(cls, str));
|
||||
}
|
||||
|
||||
@Override // com.thoughtworks.xstream.mapper.MapperWrapper, com.thoughtworks.xstream.mapper.Mapper
|
||||
public String serializedClass(Class cls) {
|
||||
return escapeClassName(super.serializedClass(cls));
|
||||
}
|
||||
|
||||
@Override // com.thoughtworks.xstream.mapper.MapperWrapper, com.thoughtworks.xstream.mapper.Mapper
|
||||
public String serializedMember(Class cls, String str) {
|
||||
return escapeFieldName(super.serializedMember(cls, str));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user