gpt4 book ai didi

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

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

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

XPathNode.getParent介绍

暂无

代码示例

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

public void unmappedContent() {
  if(this.xPathNode.getParent() != null) {
    xPathNode = xPathNode.getParent();
  }
  this.unmarshalContext.unmappedContent(this);
}

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

public void unmappedContent() {
  if(this.xPathNode.getParent() != null) {
    xPathNode = xPathNode.getParent();
  }
  this.unmarshalContext.unmappedContent(this);
}

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

public void xPathNode(XPathNode xPathNode, NullCapableValue nullCapableValue) {
  // isset optional only
  if (!(isNullRepresentedByXsiNil() || marshalNullRepresentation == XMLNullRepresentationType.XSI_NIL)) {
    if (xPathNode.getXPathFragment().isAttribute()) {
      return;
    }
  }
  // get the parent above the text() node
  XPathNode parentNode = xPathNode.getParent();
  parentNode.setNullCapableValue(nullCapableValue);
}

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

public void xPathNode(XPathNode xPathNode, NullCapableValue nullCapableValue) {
  // isset optional only    	
  if (!(isNullRepresentedByXsiNil() || marshalNullRepresentation == XMLNullRepresentationType.XSI_NIL)) {
    if (xPathNode.getXPathFragment().isAttribute()) {
      return;
    }
  }
  // get the parent above the text() node    	
  XPathNode parentNode = xPathNode.getParent();
  parentNode.setNullCapableValue(nullCapableValue);
}

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

if (null != xPathNode.getUnmarshalNodeValue()) {
  xPathNode.getUnmarshalNodeValue().endElement(xPathFragment, this);
  if (xPathNode.getParent() != null) {
    xPathNode = xPathNode.getParent();

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

public void setXPathNode(XPathNode xPathNode) {
  super.setXPathNode(xPathNode);
  xmlDirectMapping.getNullPolicy().xPathNode(xPathNode, this);
  if(((Field) xmlDirectMapping.getField()).isTypedTextField()) {
    XPathFragment typeAttributeXPathFragment = new XPathFragment();
    typeAttributeXPathFragment.setAttribute(true);
    typeAttributeXPathFragment.setLocalName(Constants.SCHEMA_TYPE_ATTRIBUTE);
    typeAttributeXPathFragment.setNamespaceURI(javax.xml.XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI);
    xPathNode.getParent().addChild(typeAttributeXPathFragment, new TypeNodeValue(), null);
  }
}

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

public void setXPathNode(XPathNode xPathNode) {
  super.setXPathNode(xPathNode);
  xmlDirectMapping.getNullPolicy().xPathNode(xPathNode, this);
  if(((Field) xmlDirectMapping.getField()).isTypedTextField()) {
    XPathFragment typeAttributeXPathFragment = new XPathFragment();
    typeAttributeXPathFragment.setAttribute(true);
    typeAttributeXPathFragment.setLocalName(Constants.SCHEMA_TYPE_ATTRIBUTE);
    typeAttributeXPathFragment.setNamespaceURI(javax.xml.XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI);
    xPathNode.getParent().addChild(typeAttributeXPathFragment, new TypeNodeValue(), null);
  }
}

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

xPathNode = xPathNode.getParent();
if (null != xPathNode.getParent()) {
  xPathNode = xPathNode.getParent();

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

if (xPathNode.getParent() != null) {
    xPathNode = xPathNode.getParent();
if (null != xpf && xPathNode == predictedNextXPathNode.getParent() && (localName == xpf.getLocalName() || localName.equals(xpf.getLocalName())) && (namespaceURI == xpf.getNamespaceURI() || namespaceURI.equals(xpf.getNamespaceURI())) && null == xpf.getPredicate() && !xpf.containsIndex()) {

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

if (xPathNode.getParent() != null) {
    xPathNode = xPathNode.getParent();
if (null != xpf && xPathNode == predictedNextXPathNode.getParent() && (localName == xpf.getLocalName() || localName.equals(xpf.getLocalName())) && (namespaceURI == xpf.getNamespaceURI() || namespaceURI.equals(xpf.getNamespaceURI())) && null == xpf.getPredicate() && !xpf.containsIndex()) {

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

if((null != xPathFragment && xPathFragment.nameIsText()) || (xpathNodeIsMixedContent && xPathNode.getParent() != null)) {
  xPathNode = xPathNode.getParent();
if (null != xPathNode.getParent()) {
  xPathNode = xPathNode.getParent();

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

if((null != xPathFragment && xPathFragment.nameIsText()) || (xpathNodeIsMixedContent && xPathNode.getParent() != null)) {
  xPathNode = xPathNode.getParent();
if (null != xPathNode.getParent()) {
  xPathNode = xPathNode.getParent();

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

public void xPathNode(XPathNode xPathNode, NullCapableValue nullCapableValue) {
  // isset optional only    	
  if (!(isNullRepresentedByXsiNil() || getMarshalNullRepresentation().equals(XMLNullRepresentationType.XSI_NIL))) {
    if (xPathNode.getXPathFragment().isAttribute()) {
      return;
    }
  }
  // get the parent above the text() node    	
  XPathNode parentNode = xPathNode.getParent();
  // isset nillable only        
  if (isNullRepresentedByXsiNil() || getMarshalNullRepresentation().equals(XMLNullRepresentationType.XSI_NIL)) {
    XPathFragment xPathFragment = new XPathFragment();
    xPathFragment.setXPath('@' + XMLConstants.SCHEMA_NIL_ATTRIBUTE);
    xPathFragment.setNamespaceURI(XMLConstants.SCHEMA_INSTANCE_URL);
    NodeValue aNodeValue = new NillableNodeValue(nullCapableValue);
    parentNode.addChild(xPathFragment, aNodeValue, null);
  } else {
    NodeValue aNodeValue = new OptionalNodeValue(nullCapableValue);
    parentNode.setNodeValue(aNodeValue);
  }
}

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

} else {
  if(((Field) xmlDirectMapping.getField()).getXPathFragment().nameIsText ){
    XPathNode parentNode = xPathNode.getParent();
    if(parentNode.getAttributeChildren() != null){
      marshalRecord.forceValueWrapper();

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

} else {                
  if(((Field) xmlDirectMapping.getField()).getXPathFragment().nameIsText ){
    XPathNode parentNode = xPathNode.getParent();                  
    if(parentNode.getAttributeChildren() != null){
      marshalRecord.forceValueWrapper();

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