gpt4 book ai didi

org.eclipse.persistence.oxm.mappings.XMLChoiceCollectionMapping.setMixedContent()方法的使用及代码示例

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

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

XMLChoiceCollectionMapping.setMixedContent介绍

[英]PUBLIC: Allows the user to indicate that this mapping should also allow for mixed content in addition to any of the elements in the choice. The grouping element parameter is used in the case that there is a common grouping element to all the other elements in this choice. If so, that grouping element can be specified here to allow the mixed content to be written/detected inside the wrapper element.
[中]PUBLIC:允许用户指出,除了选择中的任何元素外,此映射还应允许混合内容。分组元素参数用于此选项中所有其他元素都有一个公共分组元素的情况。如果是这样,可以在这里指定分组元素,以允许在包装器元素内写入/检测混合内容。

代码示例

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

/**
 * PUBLIC:
 * Allows the user to indicate that this mapping should also allow for mixed content in addition to
 * any of the elements in the choice.
 * @since EclipseLink 2.3.1
 */
public void setMixedContent(boolean mixed) {
  if(!mixed) {
    this.mixedContentMapping = null;
  } else {
    setMixedContent("");
  }
  isMixedContent = mixed;
}

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

/**
 * PUBLIC:
 * Allows the user to indicate that this mapping should also allow for mixed content in addition to 
 * any of the elements in the choice. 
 * @since EclipseLink 2.3.1
 */
public void setMixedContent(boolean mixed) {
  if(!mixed) {
    this.mixedContentMapping = null;
  } else {
    setMixedContent("");
  }
  isMixedContent = mixed;
}

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