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

x33g5p2x  于2022-02-03 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(112)

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

XMLField.usesSingleNode介绍

[英]Makes this maintain the collection of items in a single attribute or element instead of having one element per item in the collection. Default is false
[中]这样可以在单个属性或元素中维护项的集合,而不是集合中的每个项都有一个元素。默认值为false

代码示例

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

/**
* PUBLIC:
* Checks whether the mapping uses a single node.
*
* @returns True if the items in the collection are in a single node or false if each of the items in the collection is in its own node.
*/
public boolean usesSingleNode() {
  if (getField() instanceof XMLField) {
    return ((XMLField)getField()).usesSingleNode();
  }
  return false;
}

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

if (field.usesSingleNode() && (resultSize == 1)) {
  Node next = nodeList.item(0);
  if (next == null) {

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

if (field.usesSingleNode() && (resultSize == 1)) {
  Node next = nodeList.item(0);
  if (next == null) {

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

if (field.usesSingleNode() && (resultSize == 1)) {
  Node next = nodeList.item(0);
  if (next == null) {

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

if (xmlField.usesSingleNode()) {
  String returnString = XMLConstants.EMPTY_STRING;
  for (int i = 0; i < ((List)value).size(); i++) {

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

if (xmlField.usesSingleNode()) {
  SimpleType st = new SimpleType();
  org.eclipse.persistence.internal.oxm.schema.model.List list = new org.eclipse.persistence.internal.oxm.schema.model.List();

相关文章