gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-26 06:23:05 31 4
gpt4 key购买 nike

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

XmlFriendlyMapper介绍

[英]Mapper that ensures that all names in the serialization stream are XML friendly. The replacement chars and strings are:

  • $ (dollar) chars appearing in class names are replaced with _ (underscore) chars.
  • $ (dollar) chars appearing in field names are replaced with DOLLAR string.
  • _ (underscore) chars appearing in field names are replaced with __ (double underscore) string.
  • default as the prefix for class names with no package.
    [中]映射器,确保序列化流中的所有名称都是XML友好的。替换字符和字符串为:
    *类名中出现的$(美元)字符将替换为_(下划线)字符。
    *字段名中出现的$(美元)字符将替换为_dollar_u字符串。
    *字段名中出现的字符将替换为字符串。
    *默认为不带包的类名的前缀。

代码示例

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

public String serializedClass(Class type) {
  return escapeClassName(super.serializedClass(type));
}

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

public String mapNameToXML(String javaName) {
  return escapeFieldName(javaName);
}

代码示例来源: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: micromata/projectforge

/**
 * @see com.thoughtworks.xstream.alias.ClassMapper#mapNameToXML(java.lang.String)
 */
@Override
public String mapNameToXML(final String javaName)
{
 return super.mapNameToXML(replaceClasses(javaName));
}

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

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

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

public String serializedMember(Class type, String memberName) {
  return escapeFieldName(super.serializedMember(type, memberName));
}

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

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

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

public String serializedClass(Class type) {
  return escapeClassName(super.serializedClass(type));
}

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

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

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

public String mapNameToXML(String javaName) {
  return escapeFieldName(javaName);
}

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

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

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

public String serializedClass(Class type) {
  return escapeClassName(super.serializedClass(type));
}

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

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

代码示例来源:origin: apache/servicemix-bundles

public String mapNameToXML(String javaName) {
  return escapeFieldName(javaName);
}

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

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

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

public String serializedClass(Class type) {
  return escapeClassName(super.serializedClass(type));
}

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

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

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

public String mapNameToXML(String javaName) {
  return escapeFieldName(javaName);
}

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

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

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