gpt4 book ai didi

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

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

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

XMLAnyCollectionMapping.usesXMLRoot介绍

暂无

代码示例

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

protected void setOrAddAttributeValue(UnmarshalRecord unmarshalRecord, Object value, XPathFragment xPathFragment, Object collection){
  if (!xmlAnyCollectionMapping.usesXMLRoot()) {
    unmarshalRecord.addAttributeValue(this, value);
  } else {
    XMLRoot xmlRoot = new XMLRoot();
    xmlRoot.setNamespaceURI(xPathFragment.getNamespaceURI());
    xmlRoot.setSchemaType(unmarshalRecord.getTypeQName());
    xmlRoot.setLocalName(xPathFragment.getLocalName());
    xmlRoot.setObject(value);
    unmarshalRecord.addAttributeValue(this, xmlRoot);
  }
}

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

boolean wasXMLRoot = false;
if (usesXMLRoot() && (element instanceof XMLRoot)) {
  wasXMLRoot = true;
  xmlRootField = new XMLField();

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

boolean wasXMLRoot = false;
if (usesXMLRoot() && (element instanceof XMLRoot)) {
  wasXMLRoot = true;
  xmlRootField = new XMLField();

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

break;
if (usesXMLRoot() && (element instanceof XMLRoot)) {
  xmlRootField = new XMLField();
  wasXMLRoot = true;

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

boolean wasXMLRoot = false;
if (usesXMLRoot() && (element instanceof XMLRoot)) {
  wasXMLRoot = true;
  xmlRootField = new XMLField();

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

break;
if (usesXMLRoot() && (element instanceof XMLRoot)) {
  xmlRootField = new XMLField();
  wasXMLRoot = true;

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

break;
if (usesXMLRoot() && (element instanceof XMLRoot)) {
  xmlRootField = new XMLField();
  wasXMLRoot = true;

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

if (null != unmarshalRecord.getChildRecord()) {
  if (!xmlAnyCollectionMapping.usesXMLRoot()) {
    Object objectValue = unmarshalRecord.getChildRecord().getCurrentObject();
    if(xmlAnyCollectionMapping.getConverter() != null) {
  if (xmlAnyCollectionMapping.usesXMLRoot()) {
    Object childObject = unmarshalRecord.getChildRecord().getCurrentObject();

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

} else {
  AnyMappingContentHandler handler = new AnyMappingContentHandler(unmarshalRecord, xmlAnyCollectionMapping.usesXMLRoot());
  String qnameString = xPathFragment.getLocalName();
  if (xPathFragment.getPrefix() != null) {

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

XPathFragment rootFragment;
if (xmlAnyCollectionMapping.usesXMLRoot() && (value instanceof XMLRoot)) {
  xmlRootFragment = new XPathFragment();
  wasXMLRoot = true;

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