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

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

本文整理了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;

相关文章

XMLAnyCollectionMapping类方法