gpt4 book ai didi

org.eclipse.persistence.internal.oxm.XPathFragment.getHasText()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 03:09:05 26 4
gpt4 key购买 nike

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

XPathFragment.getHasText介绍

暂无

代码示例

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

private XMLField getFieldForName(String localName, String namespaceUri) {
  Iterator<XMLField> fields = fieldToNodeValues.keySet().iterator(); 
  while(fields.hasNext()) {
    XMLField nextField = fields.next();
    XPathFragment fragment = nextField.getXPathFragment();
    while(fragment != null && (!fragment.nameIsText())) {
      if(fragment.getNextFragment() == null || fragment.getHasText()) {
        if(fragment.getLocalName().equals(localName)) {
          String fragUri = fragment.getNamespaceURI();
          if((namespaceUri == null && fragUri == null) || (namespaceUri != null && fragUri != null && namespaceUri.equals(fragUri))) {
            return nextField;
          }
        }
      }
      fragment = fragment.getNextFragment();
    }
  }
  return null;
}

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

private Field getFieldForName(String localName, String namespaceUri) {
  Iterator<Field> fields = fieldToNodeValues.keySet().iterator();
  while(fields.hasNext()) {
    Field nextField = fields.next();
    if(nextField != null){
    XPathFragment fragment = nextField.getXPathFragment();
    while(fragment != null && (!fragment.nameIsText())) {
      if(fragment.getNextFragment() == null || fragment.getHasText()) {
        if(fragment.getLocalName().equals(localName)) {
          String fragUri = fragment.getNamespaceURI();
          if((namespaceUri == null && fragUri == null) || (namespaceUri != null && fragUri != null && namespaceUri.equals(fragUri))) {
            return nextField;
          }
        }
      }
      fragment = fragment.getNextFragment();
    }
    }
  }
  return null;
}

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

private Field getFieldForName(String localName, String namespaceUri) {
  Iterator<Field> fields = fieldToNodeValues.keySet().iterator(); 
  while(fields.hasNext()) {
    Field nextField = fields.next();
    if(nextField != null){
    XPathFragment fragment = nextField.getXPathFragment();
    while(fragment != null && (!fragment.nameIsText())) {
      if(fragment.getNextFragment() == null || fragment.getHasText()) {
        if(fragment.getLocalName().equals(localName)) {
          String fragUri = fragment.getNamespaceURI();
          if((namespaceUri == null && fragUri == null) || (namespaceUri != null && fragUri != null && namespaceUri.equals(fragUri))) {
            return nextField;
          }
        }
      }
      fragment = fragment.getNextFragment();
    }
    }
  }
  return null;
}

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

private XMLField getFieldForName(String localName, String namespaceUri) {
  Iterator fields = getFields().iterator(); 
  while(fields.hasNext()) {
    XMLField nextField = (XMLField)fields.next();
    XPathFragment fragment = nextField.getXPathFragment();
    while(fragment != null && (!fragment.nameIsText())) {
      if(fragment.getNextFragment() == null || fragment.getHasText()) {
        if(fragment.getLocalName().equals(localName)) {
          String fragUri = fragment.getNamespaceURI();
          if((namespaceUri == null && fragUri == null) || (namespaceUri != null && fragUri != null && namespaceUri.equals(fragUri))) {
            return nextField;
          }
        }
      }
      fragment = fragment.getNextFragment();
    }
  }
  return null;
}    
public void writeSingleValue(Object value, Object parent, XMLRecord row, AbstractSession session) {

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

private XMLField getFieldForName(String localName, String namespaceUri) {
  Iterator fields = getFields().iterator(); 
  while(fields.hasNext()) {
    XMLField nextField = (XMLField)fields.next();
    XPathFragment fragment = nextField.getXPathFragment();
    while(fragment != null && (!fragment.nameIsText())) {
      if(fragment.getNextFragment() == null || fragment.getHasText()) {
        if(fragment.getLocalName().equals(localName)) {
          String fragUri = fragment.getNamespaceURI();
          if((namespaceUri == null && fragUri == null) || (namespaceUri != null && fragUri != null && namespaceUri.equals(fragUri))) {
            return nextField;
          }
        }
      }
      fragment = fragment.getNextFragment();
    }
  }
  return null;
}    
public void writeSingleValue(Object value, Object parent, XMLRecord row, AbstractSession session) {

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

private XMLField getFieldForName(String localName, String namespaceUri) {
  Iterator fields = getFields().iterator();
  while(fields.hasNext()) {
    XMLField nextField = (XMLField)fields.next();
    XPathFragment fragment = nextField.getXPathFragment();
    while(fragment != null && (!fragment.nameIsText())) {
      if(fragment.getNextFragment() == null || fragment.getHasText()) {
        if(fragment.getLocalName().equals(localName)) {
          String fragUri = fragment.getNamespaceURI();
          if((namespaceUri == null && fragUri == null) || (namespaceUri != null && fragUri != null && namespaceUri.equals(fragUri))) {
            return nextField;
          }
        }
      }
      fragment = fragment.getNextFragment();
    }
  }
  return null;
}
public void writeSingleValue(Object value, Object parent, XMLRecord row, AbstractSession session) {

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

if ((xmlField.getXPathFragment().getNextFragment() == null) || xmlField.getXPathFragment().getHasText()) {
value = collectionValues.next();
if ((xmlField.getXPathFragment().getNextFragment() == null) || xmlField.getXPathFragment().getHasText()) {

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

XPathFragment fragment = xmlField.getXPathFragment();
while(fragment != null && !fragment.nameIsText()) {
  if(fragment.getNextFragment() == null || fragment.getHasText()) {
    if(fragment.getLocalName().equals(root.getLocalName())) {
      String fragUri = fragment.getNamespaceURI();

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

XPathFragment fragment = xmlField.getXPathFragment();
while(fragment != null && !fragment.nameIsText()) {
  if(fragment.getNextFragment() == null || fragment.getHasText()) {
    if(fragment.getLocalName().equals(root.getLocalName())) {
      String fragUri = fragment.getNamespaceURI();

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

if ((xmlField.getXPathFragment().getNextFragment() == null) || xmlField.getXPathFragment().getHasText()) {
value = collectionValues.next();
if ((xmlField.getXPathFragment().getNextFragment() == null) || xmlField.getXPathFragment().getHasText()) {

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

if ((xmlField.getXPathFragment().getNextFragment() == null) || xmlField.getXPathFragment().getHasText()) {
value = collectionValues.next();
if ((xmlField.getXPathFragment().getNextFragment() == null) || xmlField.getXPathFragment().getHasText()) {

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

XPathFragment fragment = xmlField.getXPathFragment();
while(fragment != null && !fragment.nameIsText()) {
  if(fragment.getNextFragment() == null || fragment.getHasText()) {
    if(fragment.getLocalName().equals(root.getLocalName())) {
      String fragUri = fragment.getNamespaceURI();

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

XPathFragment fragment = ((Field)next).getXPathFragment();
while(fragment != null && !fragment.nameIsText) {
  if(fragment.getNextFragment() == null || fragment.getHasText()) {
    if(fragment.getLocalName().equals(root.getLocalName())) {
      String fragUri = fragment.getNamespaceURI();

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

public boolean marshalSingleValue(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, Object value, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) {
  if(value instanceof XMLRoot) {
    XMLRoot root = (XMLRoot)value;
    XPathFragment fragment = this.xmlField.getXPathFragment();
    while(fragment != null && !fragment.nameIsText) {
      if(fragment.getNextFragment() == null || fragment.getHasText()) {
        if(fragment.getLocalName().equals(root.getLocalName())) {
          String fragUri = fragment.getNamespaceURI();
          String namespaceUri = root.getNamespaceURI();
          if((namespaceUri == null && fragUri == null) || (namespaceUri != null && fragUri != null && namespaceUri.equals(fragUri))) {
            return this.choiceElementNodeValue.marshalSingleValue(xPathFragment, marshalRecord, object, value, session, namespaceResolver, marshalContext);
          }
        }
      }
      fragment = fragment.getNextFragment();
    }
    //if we didn't find a node value associated with this xmlroot, try finding one for the 
    //value's class
    if(root.getObject() != null && xmlChoiceMapping.getClassToFieldMappings().get(root.getObject().getClass()) == this.xmlField) {
      return this.choiceElementNodeValue.marshal(xPathFragment, marshalRecord, object, session, namespaceResolver);
    }
  } else {
    if(value != null && xmlChoiceMapping.getClassToFieldMappings().get(value.getClass()) == this.xmlField) {
      return this.choiceElementNodeValue.marshalSingleValue(xPathFragment, marshalRecord, object, value, session, namespaceResolver, marshalContext);
    }
  }
  return false;
}

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

XPathFragment fragment = ((Field)next).getXPathFragment();
while(fragment != null && !fragment.nameIsText) {
  if(fragment.getNextFragment() == null || fragment.getHasText()) {
    if(fragment.getLocalName().equals(root.getLocalName())) {
      String fragUri = fragment.getNamespaceURI();

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

} else if (next.containsIndex()) {
  boolean hasMore = !(next.getHasText() || (next.getNextFragment() == null));
  boolean hasMore = !(next.getHasText() || (next.getNextFragment() == null));

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

} else if (next.containsIndex()) {
  boolean hasMore = !(next.getHasText() || (next.getNextFragment() == null));
  boolean hasMore = !(next.getHasText() || (next.getNextFragment() == null));

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

} else if (next.containsIndex()) {
  boolean hasMore = !(next.getHasText() || (next.getNextFragment() == null));
  boolean hasMore = !(next.getHasText() || (next.getNextFragment() == null));

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