gpt4 book ai didi

org.eclipse.persistence.oxm.XMLMarshaller.getJsonTypeConfiguration()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 00:53:40 25 4
gpt4 key购买 nike

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

XMLMarshaller.getJsonTypeConfiguration介绍

[英]Returns json type configuration.
[中]返回json类型配置。

代码示例

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.moxy

return xmlMarshaller.isWrapperAsCollectionName();
} else if (MarshallerProperties.JSON_USE_XSD_TYPES_WITH_PREFIX.equals(key)) {
  return xmlMarshaller.getJsonTypeConfiguration().isUseXsdTypesWithPrefix();
} else if (MarshallerProperties.JSON_TYPE_COMPATIBILITY.equals(key)) {
  return xmlMarshaller.getJsonTypeConfiguration().isJsonTypeCompatibility();
} else if (MarshallerProperties.JSON_TYPE_ATTRIBUTE_NAME.equals(key)) {
  return xmlMarshaller.getJsonTypeConfiguration().getJsonTypeAttributeName();
} else if (SUN_CHARACTER_ESCAPE_HANDLER.equals(key) || SUN_JSE_CHARACTER_ESCAPE_HANDLER.equals(key) ||SUN_CHARACTER_ESCAPE_HANDLER_MARSHALLER.equals(key) || SUN_JSE_CHARACTER_ESCAPE_HANDLER_MARSHALLER.equals(key)) {
  if (xmlMarshaller.getCharacterEscapeHandler() instanceof CharacterEscapeHandlerWrapper) {

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

return xmlMarshaller.isWrapperAsCollectionName();
} else if (MarshallerProperties.JSON_USE_XSD_TYPES_WITH_PREFIX.equals(key)) {
  return xmlMarshaller.getJsonTypeConfiguration().isUseXsdTypesWithPrefix();
} else if (MarshallerProperties.JSON_TYPE_COMPATIBILITY.equals(key)) {
  return xmlMarshaller.getJsonTypeConfiguration().isJsonTypeCompatibility();
} else if (SUN_CHARACTER_ESCAPE_HANDLER.equals(key) || SUN_JSE_CHARACTER_ESCAPE_HANDLER.equals(key) ||SUN_CHARACTER_ESCAPE_HANDLER_MARSHALLER.equals(key) || SUN_JSE_CHARACTER_ESCAPE_HANDLER_MARSHALLER.equals(key)) {
  if (xmlMarshaller.getCharacterEscapeHandler() instanceof CharacterEscapeHandlerWrapper) {

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.moxy

xmlMarshaller.setWrapperAsCollectionName((Boolean) value);
} else if (MarshallerProperties.JSON_USE_XSD_TYPES_WITH_PREFIX.equals(key)) {
  xmlMarshaller.getJsonTypeConfiguration().setUseXsdTypesWithPrefix((Boolean)value);
} else if (MarshallerProperties.JSON_TYPE_COMPATIBILITY.equals(key)) {
  xmlMarshaller.getJsonTypeConfiguration().setJsonTypeCompatibility((Boolean)value);
} else if (MarshallerProperties.JSON_TYPE_ATTRIBUTE_NAME.equals(key)) {
  xmlMarshaller.getJsonTypeConfiguration().setJsonTypeAttributeName((String)value);
} else if (MarshallerProperties.CHARACTER_ESCAPE_HANDLER.equals(key)) {
  xmlMarshaller.setCharacterEscapeHandler((CharacterEscapeHandler) value);

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

xmlMarshaller.setWrapperAsCollectionName((Boolean) value);
} else if (MarshallerProperties.JSON_USE_XSD_TYPES_WITH_PREFIX.equals(key)) {
  xmlMarshaller.getJsonTypeConfiguration().setUseXsdTypesWithPrefix((Boolean)value);
} else if (MarshallerProperties.JSON_TYPE_COMPATIBILITY.equals(key)) {
  xmlMarshaller.getJsonTypeConfiguration().setJsonTypeCompatibility((Boolean)value);
} else if (MarshallerProperties.CHARACTER_ESCAPE_HANDLER.equals(key)) {
  xmlMarshaller.setCharacterEscapeHandler((CharacterEscapeHandler) value);

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