gpt4 book ai didi

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

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

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

XPathNode.getNonAttributeChildrenMap介绍

暂无

代码示例

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

@Override
public Collection<QName> getExpectedElements() {
  final List<QName> elements = new LinkedList<QName>();
  final XPathNodeWrapper currentNodeWrapper = getCurrentNodeWrapper();
  final Map<XPathFragment, XPathNode> nonAttributeChildrenMap =
      currentNodeWrapper == null ? null : currentNodeWrapper.xPathNode.getNonAttributeChildrenMap();
  if (nonAttributeChildrenMap != null) {
    for(Map.Entry<XPathFragment, XPathNode> entry : nonAttributeChildrenMap.entrySet()) {
      elements.add(new QName(entry.getKey().getNamespaceURI(), entry.getKey().getLocalName()));
    }
  }
  return elements;
}

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

public Map<String, EntityType> getEntitiesTypesMap(boolean isAttribute) {
  Map<String, EntityType> entitiesTypes = isAttribute ? attributeTypeMap : elementTypeMap;
  if (entitiesTypes.isEmpty()) {
    final Map<XPathFragment, XPathNode> nodeMap =
        isAttribute ? xPathNode.getAttributeChildrenMap() : xPathNode.getNonAttributeChildrenMap();
    if (nodeMap != null) {
      for(Map.Entry<XPathFragment, XPathNode> entry : nodeMap.entrySet()) {
        entitiesTypes.put(entry.getKey().getLocalName(), new EntityType(entry.getKey().getXMLField().getType()));
      }
    }
  }
  return entitiesTypes;
}

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

actualNodeWrapper == null ? null : actualNodeWrapper.xPathNode.getNonAttributeChildrenMap();

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

private boolean isTextValue(String localName, UnmarshalRecord contentHandler_) {
  XPathNode currentNode = ((UnmarshalRecord) contentHandler_).getXPathNode();
  if (currentNode == null) {
    return textWrapper != null && textWrapper.equals(localName);
  }
  return ((currentNode.getNonAttributeChildrenMap() == null
      || currentNode.getNonAttributeChildrenMap().size() == 0
      || (currentNode.getNonAttributeChildrenMap().size() == 1
      && currentNode.getTextNode() != null)
  ) && textWrapper != null && textWrapper.equals(localName)
  );
}

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

private boolean isTextValue(String localName) {
  XPathNode currentNode = ((UnmarshalRecord) contentHandler).getXPathNode();
  if (currentNode == null) {
    return textWrapper != null && textWrapper.equals(localName);
  }
  return ((currentNode.getNonAttributeChildrenMap() == null
          || currentNode.getNonAttributeChildrenMap().size() == 0
          || (currentNode.getNonAttributeChildrenMap().size() == 1
              && currentNode.getTextNode() != null)
      ) && textWrapper != null && textWrapper.equals(localName)
  );
}

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

@Override
public Collection<QName> getExpectedElements() {
  final List<QName> elements = new LinkedList<QName>();
  final XPathNodeWrapper currentNodeWrapper = getCurrentNodeWrapper();
  final Map<XPathFragment, XPathNode> nonAttributeChildrenMap =
      currentNodeWrapper == null ? null : currentNodeWrapper.xPathNode.getNonAttributeChildrenMap();
  if (nonAttributeChildrenMap != null) {
    for(Map.Entry<XPathFragment, XPathNode> entry : nonAttributeChildrenMap.entrySet()) {
      elements.add(new QName(entry.getKey().getNamespaceURI(), entry.getKey().getLocalName()));
    }
  }
  return elements;
}

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

@Override
public Collection<QName> getExpectedElements() {
  final List<QName> elements = new LinkedList<QName>();
  final XPathNodeWrapper currentNodeWrapper = getCurrentNodeWrapper();
  final Map<XPathFragment, XPathNode> nonAttributeChildrenMap =
      currentNodeWrapper == null ? null : currentNodeWrapper.xPathNode.getNonAttributeChildrenMap();
  if (nonAttributeChildrenMap != null) {
    for(Map.Entry<XPathFragment, XPathNode> entry : nonAttributeChildrenMap.entrySet()) {
      elements.add(new QName(entry.getKey().getNamespaceURI(), entry.getKey().getLocalName()));
    }
  }
  return elements;
}

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

public Map<String, EntityType> getEntitiesTypesMap(boolean isAttribute) {
  Map<String, EntityType> entitiesTypes = isAttribute ? attributeTypeMap : elementTypeMap;
  if (entitiesTypes.isEmpty()) {
    final Map<XPathFragment, XPathNode> nodeMap =
        isAttribute ? xPathNode.getAttributeChildrenMap() : xPathNode.getNonAttributeChildrenMap();
    if (nodeMap != null) {
      for(Map.Entry<XPathFragment, XPathNode> entry : nodeMap.entrySet()) {
        entitiesTypes.put(entry.getKey().getLocalName(), new EntityType(entry.getKey().getXMLField().getType()));
      }
    }
  }
  return entitiesTypes;
}

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

public Map<String, EntityType> getEntitiesTypesMap(boolean isAttribute) {
  Map<String, EntityType> entitiesTypes = isAttribute ? attributeTypeMap : elementTypeMap;
  if (entitiesTypes.isEmpty()) {
    final Map<XPathFragment, XPathNode> nodeMap =
        isAttribute ? xPathNode.getAttributeChildrenMap() : xPathNode.getNonAttributeChildrenMap();
    if (nodeMap != null) {
      for(Map.Entry<XPathFragment, XPathNode> entry : nodeMap.entrySet()) {
        entitiesTypes.put(entry.getKey().getLocalName(), new EntityType(entry.getKey().getXMLField().getType()));
      }
    }
  }
  return entitiesTypes;
}

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

public Object getNonAttributeChild(int index, XPathNode xPathNode) {
  Setting setting = settings.get(index);
  if(null == setting.getName()) {
    return xPathNode.getAnyNode();
  } else {
    if (setting.getName().equals(XMLConstants.TEXT)) {
      return xPathNode.getTextNode();
    } else {
      indexFragment.setLocalName(null);
      indexFragment.setXPath(setting.getName());
      indexFragment.setNamespaceURI(setting.getNamespaceURI());
      return xPathNode.getNonAttributeChildrenMap().get(indexFragment);
      
    }
  }
}

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

public Object getNonAttributeChild(int index, XPathNode xPathNode) {
  Setting setting = settings.get(index);
  if(null == setting.getName()) {
    return xPathNode.getAnyNode();
  } else {
    if (setting.getName().equals(Constants.TEXT)) {
      return xPathNode.getTextNode();
    } else {
      indexFragment.setLocalName(null);
      indexFragment.setXPath(setting.getName());
      indexFragment.setNamespaceURI(setting.getNamespaceURI());
      return xPathNode.getNonAttributeChildrenMap().get(indexFragment);
      
    }
  }
}

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

public Object getNonAttributeChild(int index, XPathNode xPathNode) {
  Setting setting = settings.get(index);
  if(null == setting.getName()) {
    return xPathNode.getAnyNode();
  } else {
    if (setting.getName().equals(Constants.TEXT)) {
      return xPathNode.getTextNode();
    } else {
      indexFragment.setLocalName(null);
      indexFragment.setXPath(setting.getName());
      indexFragment.setNamespaceURI(setting.getNamespaceURI());
      return xPathNode.getNonAttributeChildrenMap().get(indexFragment);
    }
  }
}

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

Map nonAttributeChildrenMap = xPathNode.getNonAttributeChildrenMap();
if (null != nonAttributeChildrenMap) {
  resultNode = (XPathNode)nonAttributeChildrenMap.get(xPathFragment);

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

actualNodeWrapper == null ? null : actualNodeWrapper.xPathNode.getNonAttributeChildrenMap();

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

actualNodeWrapper == null ? null : actualNodeWrapper.xPathNode.getNonAttributeChildrenMap();

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

Map<XPathFragment, XPathNode> nonAttributeChildrenMap = xPathNode.getNonAttributeChildrenMap();

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

Map<XPathFragment, XPathNode> nonAttributeChildrenMap = xPathNode.getNonAttributeChildrenMap();

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

xPathNode = xPathNode.getTextNode(); 
} else {
  Map nonAttributeChildrenMap = xPathNode.getNonAttributeChildrenMap();
  if (null == nonAttributeChildrenMap) {
    xPathNode = null;

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

xPathNode = xPathNode.getTextNode();
} else {
  Map nonAttributeChildrenMap = xPathNode.getNonAttributeChildrenMap();
  if (null == nonAttributeChildrenMap) {
    xPathNode = null;

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

currentFragment.setNamespaceURI(uri);
currentFragment.setNamespaceAware(isNamespaceAware());
XPathNode groupingXPathNode = unmarshalRecordXPathNode.getNonAttributeChildrenMap().get(currentFragment);
if (groupingXPathNode != null) {
  if (groupingXPathNode.getUnmarshalNodeValue() instanceof CollectionGroupingElementNodeValue) {

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