gpt4 book ai didi

com.thoughtworks.xstream.mapper.XStream11XmlFriendlyMapper类的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 17:47:05 26 4
gpt4 key购买 nike

本文整理了Java中com.thoughtworks.xstream.mapper.XStream11XmlFriendlyMapper类的一些代码示例,展示了XStream11XmlFriendlyMapper类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XStream11XmlFriendlyMapper类的具体详情如下:
包路径:com.thoughtworks.xstream.mapper.XStream11XmlFriendlyMapper
类名称:XStream11XmlFriendlyMapper

XStream11XmlFriendlyMapper介绍

[英]Mapper that ensures that all names in the serialization stream are read in an XML friendly way.

  • _ (underscore) chars appearing in class names are replaced with $ (dollar)
  • DOLLAR string appearing in field names are replaced with $ (dollar)
  • __ string appearing in field names are replaced with _ (underscore)
  • default is the prefix for class names with no package.
    Note, this class is no longer in regular use for current XStream versions. It exists to provide backward compatibility to existing XML data written with older XStream versions (<= 1.1).
    [中]映射器,确保序列化流中的所有名称都以XML友好的方式读取。
    *类名中出现的字符(下划线)替换为$(美元)
    *_DOLLAR_uu字段名中出现的字符串替换为$(美元)
    *u字段名中出现的字符串替换为(下划线)
    *默认值是不带包的类名的前缀。
    注意,这个类不再经常用于当前的XStream版本。它的存在是为了提供对使用旧XStream版本(<=1.1)编写的现有XML数据的向后兼容性。

代码示例

代码示例来源:origin: com.thoughtworks.xstream/xstream

public Class realClass(String elementName) {
  return super.realClass(unescapeClassName(elementName));
}

代码示例来源:origin: com.thoughtworks.xstream/xstream

public String mapNameFromXML(String xmlName) {
    return unescapeFieldName(xmlName);
  }
}

代码示例来源:origin: com.thoughtworks.xstream/xstream

private Mapper buildMapper() {
  Mapper mapper = new DefaultMapper(classLoaderReference);
  if (useXStream11XmlFriendlyMapper()) {
    mapper = new XStream11XmlFriendlyMapper(mapper);

代码示例来源:origin: org.sonatype.nexus.xstream/xstream

mapper = new XStream11XmlFriendlyMapper(mapper);

代码示例来源:origin: com.thoughtworks.xstream/xstream

public String realMember(Class type, String serialized) {
  return unescapeFieldName(super.realMember(type, serialized));
}

代码示例来源:origin: x-stream/xstream

@Override
public Class<?> realClass(final String elementName) {
  return super.realClass(unescapeClassName(elementName));
}

代码示例来源:origin: org.jvnet.hudson/xstream

private Mapper buildMapper() {
  Mapper mapper = new DefaultMapper(classLoaderReference);
  if ( useXStream11XmlFriendlyMapper() ){
    mapper = new XStream11XmlFriendlyMapper(mapper);

代码示例来源:origin: x-stream/xstream

public String mapNameFromXML(final String xmlName) {
    return unescapeFieldName(xmlName);
  }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream

public Class realClass(String elementName) {
  return super.realClass(unescapeClassName(elementName));
}

代码示例来源:origin: com.haulmont.thirdparty/xstream

private Mapper buildMapper() {
  Mapper mapper = new DefaultMapper(classLoaderReference);
  if (useXStream11XmlFriendlyMapper()) {
    mapper = new XStream11XmlFriendlyMapper(mapper);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream-java8

public String mapNameFromXML(String xmlName) {
    return unescapeFieldName(xmlName);
  }
}

代码示例来源:origin: org.jvnet.hudson/xstream

public Class realClass(String elementName) {
  return super.realClass(unescapeClassName(elementName));
}

代码示例来源:origin: ovea-deprecated/jetty-session-redis

private Mapper buildMapper() {
  Mapper mapper = new DefaultMapper(classLoaderReference);
  if ( useXStream11XmlFriendlyMapper() ){
    mapper = new XStream11XmlFriendlyMapper(mapper);

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream

public String mapNameFromXML(String xmlName) {
    return unescapeFieldName(xmlName);
  }
}

代码示例来源:origin: org.sonatype.nexus.xstream/xstream

public Class realClass(String elementName) {
  return super.realClass(unescapeClassName(elementName));
}

代码示例来源:origin: x-stream/xstream

private Mapper buildMapper() {
  Mapper mapper = new DefaultMapper(classLoaderReference);
  if (useXStream11XmlFriendlyMapper()) {
    mapper = new XStream11XmlFriendlyMapper(mapper);

代码示例来源:origin: org.sonatype.nexus.xstream/xstream

public String mapNameFromXML(String xmlName) {
    return unescapeFieldName(xmlName);
  }
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream-java8

public Class realClass(String elementName) {
  return super.realClass(unescapeClassName(elementName));
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xstream

private Mapper buildMapper() {
  Mapper mapper = new DefaultMapper(classLoaderReference);
  if (useXStream11XmlFriendlyMapper()) {
    mapper = new XStream11XmlFriendlyMapper(mapper);

代码示例来源:origin: com.haulmont.thirdparty/xstream

public String mapNameFromXML(String xmlName) {
    return unescapeFieldName(xmlName);
  }
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com