gpt4 book ai didi

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

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

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

XPathNode.getNodeValue介绍

暂无

代码示例

代码示例来源:origin: com.sun.jersey/jersey-json

final MappingNodeValue nodeValue = (MappingNodeValue) childNode.getNodeValue();

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

public boolean isWhitespaceAware() {
  return this.getNodeValue().isWhitespaceAware();
}

代码示例来源:origin: com.sun.jersey/jersey-bundle

final MappingNodeValue nodeValue = (MappingNodeValue) childNode.getNodeValue();

代码示例来源:origin: jersey/jersey-1.x

final MappingNodeValue nodeValue = (MappingNodeValue) childNode.getNodeValue();

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

for (int x = 0; x < selfChildrenSize; x++) {
  XPathNode selfNode = (XPathNode)xPathNode.getSelfChildren().get(x);
  if (null != selfNode.getNodeValue()) {
    selfRecords.add(selfNode.getNodeValue().buildSelfRecord(this, attributes));

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

selfRecords = new ArrayList<UnmarshalRecord>(selfChildrenSize);
for (int x = 0; x < selfChildrenSize; x++) {
  NodeValue nv = xPathNode.getSelfChildren().get(x).getNodeValue();
  if (null != nv) {
    selfRecords.add(nv.buildSelfRecord(this, attributes));

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

for (int x = 0; x < selfChildrenSize; x++) {
  XPathNode selfNode = (XPathNode)xPathNode.getSelfChildren().get(x);
  if (null != selfNode.getNodeValue()) {
    selfNode.getNodeValue().endSelfNodeValue(this, attributes);

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

selfRecords = new ArrayList<UnmarshalRecord>(selfChildrenSize);
for (int x = 0; x < selfChildrenSize; x++) {
  NodeValue nv = xPathNode.getSelfChildren().get(x).getNodeValue();
  if (null != nv) {
    selfRecords.add(nv.buildSelfRecord(this, attributes));

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

if (xPathNode.getNodeValue().isMappingNodeValue()) {
  MappingNodeValue mappingNodeValue = (MappingNodeValue) xPathNode.getNodeValue();
  return mappingNodeValue.getMapping();

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

if (xPathNode.getNodeValue().isMappingNodeValue()) {
  MappingNodeValue mappingNodeValue = (MappingNodeValue) xPathNode.getNodeValue();
  return mappingNodeValue.getMapping();

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

for (int x = 0; x < selfChildrenSize; x++) {
  XPathNode selfNode = xPathNode.getSelfChildren().get(x);
  if (null != selfNode.getNodeValue()) {
    selfNode.getNodeValue().endSelfNodeValue(this, selfRecords.get(x), attributes);

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

for (int x = 0; x < selfChildrenSize; x++) {
  XPathNode selfNode = xPathNode.getSelfChildren().get(x);
  if (null != selfNode.getNodeValue()) {
    selfNode.getNodeValue().endSelfNodeValue(this, selfRecords.get(x), attributes);

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

XPathNode node = ur.getNonAttributeXPathNode(uri, parentLocalName, parentLocalName, null);
if (node != null) {
  NodeValue nv = node.getNodeValue();
  if (nv == null && node.getTextNode() != null) {
    nv = node.getTextNode().getUnmarshalNodeValue();

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

XPathNode node = ur.getNonAttributeXPathNode(uri, parentLocalName, parentLocalName, null);
if (node != null) {
  NodeValue nv = node.getNodeValue();
  if (nv == null && node.getTextNode() != null) {
    nv = node.getTextNode().getUnmarshalNodeValue();

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

public void attribute(UnmarshalRecord unmarshalRecord, String namespaceURI, String localName, String value) {
   Descriptor referenceDescriptor = (Descriptor) getMapping().getReferenceDescriptor();
   ObjectBuilder treeObjectBuilder = (ObjectBuilder) referenceDescriptor.getObjectBuilder();
   MappingNodeValue textMappingNodeValue = (MappingNodeValue) treeObjectBuilder.getRootXPathNode().getTextNode().getNodeValue();
   Mapping textMapping = textMappingNodeValue.getMapping();
   Object childObject = referenceDescriptor.getInstantiationPolicy().buildNewInstance();
   if(textMapping.isAbstractDirectMapping()) {
     DirectMapping xmlDirectMapping = (DirectMapping) textMappingNodeValue.getMapping();
     Field xmlField = (Field) xmlDirectMapping.getField();
     Object realValue = unmarshalRecord.getXMLReader().convertValueBasedOnSchemaType(xmlField, value, (ConversionManager) unmarshalRecord.getSession().getDatasourcePlatform().getConversionManager(), unmarshalRecord);
     Object convertedValue = xmlDirectMapping.getAttributeValue(realValue, unmarshalRecord.getSession(), unmarshalRecord);
     xmlDirectMapping.setAttributeValueInObject(childObject, convertedValue);
   } else {
     Object oldChildObject = unmarshalRecord.getCurrentObject();
     CompositeObjectMapping nestedXMLCompositeObjectMapping = (CompositeObjectMapping) textMappingNodeValue.getMapping();
     unmarshalRecord.setCurrentObject(childObject);
     textMappingNodeValue.attribute(unmarshalRecord, namespaceURI, localName, value);
     unmarshalRecord.setCurrentObject(oldChildObject);
   }
   setXPathInObject(namespaceURI, localName, childObject);
   setOrAddAttributeValue(unmarshalRecord, childObject, null, null);
 }

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

public void attribute(UnmarshalRecord unmarshalRecord, String namespaceURI, String localName, String value) {        
   Descriptor referenceDescriptor = (Descriptor) getMapping().getReferenceDescriptor();
   ObjectBuilder treeObjectBuilder = (ObjectBuilder) referenceDescriptor.getObjectBuilder();
   MappingNodeValue textMappingNodeValue = (MappingNodeValue) treeObjectBuilder.getRootXPathNode().getTextNode().getNodeValue();
   Mapping textMapping = textMappingNodeValue.getMapping();
   Object childObject = referenceDescriptor.getInstantiationPolicy().buildNewInstance();
   if(textMapping.isAbstractDirectMapping()) {
     DirectMapping xmlDirectMapping = (DirectMapping) textMappingNodeValue.getMapping();
     Field xmlField = (Field) xmlDirectMapping.getField();
     Object realValue = unmarshalRecord.getXMLReader().convertValueBasedOnSchemaType(xmlField, value, (ConversionManager) unmarshalRecord.getSession().getDatasourcePlatform().getConversionManager(), unmarshalRecord);
     Object convertedValue = xmlDirectMapping.getAttributeValue(realValue, unmarshalRecord.getSession(), unmarshalRecord);
     xmlDirectMapping.setAttributeValueInObject(childObject, convertedValue);
   } else {
     Object oldChildObject = unmarshalRecord.getCurrentObject();
     CompositeObjectMapping nestedXMLCompositeObjectMapping = (CompositeObjectMapping) textMappingNodeValue.getMapping();
     unmarshalRecord.setCurrentObject(childObject);
     textMappingNodeValue.attribute(unmarshalRecord, namespaceURI, localName, value);
     unmarshalRecord.setCurrentObject(oldChildObject);
   }                                  
   setXPathInObject(namespaceURI, localName, childObject);           
   setOrAddAttributeValue(unmarshalRecord, childObject, null, null);
 }

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

@Override
public void attribute(UnmarshalRecord unmarshalRecord, String namespaceURI, String localName, String value) {
  unmarshalRecord.removeNullCapableValue(this);
  Descriptor referenceDescriptor = (Descriptor) getMapping().getReferenceDescriptor();
  ObjectBuilder treeObjectBuilder = (ObjectBuilder) referenceDescriptor.getObjectBuilder();
  MappingNodeValue textMappingNodeValue = (MappingNodeValue) treeObjectBuilder.getRootXPathNode().getTextNode().getNodeValue();
  Mapping textMapping = textMappingNodeValue.getMapping();
  Object childObject = referenceDescriptor.getInstantiationPolicy().buildNewInstance();
  if(textMapping.isAbstractDirectMapping()) {
    DirectMapping xmlDirectMapping = (DirectMapping) textMappingNodeValue.getMapping();
    Field xmlField = (Field) xmlDirectMapping.getField();
    Object realValue = unmarshalRecord.getXMLReader().convertValueBasedOnSchemaType(xmlField, value, (ConversionManager) unmarshalRecord.getSession().getDatasourcePlatform().getConversionManager(), unmarshalRecord);
    Object convertedValue = xmlDirectMapping.getAttributeValue(realValue, unmarshalRecord.getSession(), unmarshalRecord);
    xmlDirectMapping.setAttributeValueInObject(childObject, convertedValue);
  } else {
    Object oldChildObject = unmarshalRecord.getCurrentObject();
    CompositeObjectMapping nestedXMLCompositeObjectMapping = (CompositeObjectMapping) textMappingNodeValue.getMapping();
    unmarshalRecord.setCurrentObject(childObject);
    textMappingNodeValue.attribute(unmarshalRecord, namespaceURI, localName, value);
    unmarshalRecord.setCurrentObject(oldChildObject);
  }
  setAttributeValue(childObject, unmarshalRecord);
}

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

@Override
public void attribute(UnmarshalRecord unmarshalRecord, String namespaceURI, String localName, String value) {
  unmarshalRecord.removeNullCapableValue(this);
  Descriptor referenceDescriptor = (Descriptor) getMapping().getReferenceDescriptor();
  ObjectBuilder treeObjectBuilder = (ObjectBuilder) referenceDescriptor.getObjectBuilder();
  MappingNodeValue textMappingNodeValue = (MappingNodeValue) treeObjectBuilder.getRootXPathNode().getTextNode().getNodeValue();
  Mapping textMapping = textMappingNodeValue.getMapping();
  Object childObject = referenceDescriptor.getInstantiationPolicy().buildNewInstance();
  if(textMapping.isAbstractDirectMapping()) {
    DirectMapping xmlDirectMapping = (DirectMapping) textMappingNodeValue.getMapping();
    Field xmlField = (Field) xmlDirectMapping.getField();
    Object realValue = unmarshalRecord.getXMLReader().convertValueBasedOnSchemaType(xmlField, value, (ConversionManager) unmarshalRecord.getSession().getDatasourcePlatform().getConversionManager(), unmarshalRecord);
    Object convertedValue = xmlDirectMapping.getAttributeValue(realValue, unmarshalRecord.getSession(), unmarshalRecord);
    xmlDirectMapping.setAttributeValueInObject(childObject, convertedValue);
  } else {
    Object oldChildObject = unmarshalRecord.getCurrentObject();
    CompositeObjectMapping nestedXMLCompositeObjectMapping = (CompositeObjectMapping) textMappingNodeValue.getMapping();
    unmarshalRecord.setCurrentObject(childObject);
    textMappingNodeValue.attribute(unmarshalRecord, namespaceURI, localName, value);
    unmarshalRecord.setCurrentObject(oldChildObject);
  }
  setAttributeValue(childObject, unmarshalRecord);
}

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