gpt4 book ai didi

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

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

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

XPathFragment.setShouldExecuteSelectNodes介绍

暂无

代码示例

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

private int hasIndex(String xpathString) {
  int index;
  int startindex = xpathString.lastIndexOf('[');
  if ((startindex != -1) && (xpathString.lastIndexOf(']') != -1)) {
    setContainsIndex(true);
    StringTokenizer st = new StringTokenizer(xpathString, "[]");
    String element = st.nextToken();
    String indexString = st.nextToken();
    try {
      index = Integer.valueOf(indexString).intValue();
    } catch (NumberFormatException e) {
      setShouldExecuteSelectNodes(true);
      index = -1;
    }
    shortName = element;
  } else {
    index = -1;
  }
  return index;
}

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

private int hasIndex(String xpathString) {
  int index = -1;
  int startindex = xpathString.lastIndexOf('[');
  if ((startindex != -1) && (xpathString.lastIndexOf(']') != -1)) {
    StringTokenizer st = new StringTokenizer(xpathString, "[]");
    String element = st.nextToken();
    while(st.hasMoreTokens()) {
      String indexString = st.nextToken();
      try {
        index = Integer.valueOf(indexString).intValue();
        setContainsIndex(true);
      } catch (NumberFormatException e) {
        int equalsOffset = indexString.indexOf('=');
        if (equalsOffset >= 0) {
          XPathFragment xPathFragment = new XPathFragment(indexString.substring(0, equalsOffset));
          String value = indexString.substring(equalsOffset + 2, indexString.length() - 1);
          predicate = new XPathPredicate(xPathFragment, value);
        } else {
          setContainsIndex(true);
        }
        setShouldExecuteSelectNodes(true);
      }
    }
    shortName = element;
  } else {
    index = -1;
  }
  return index;
}

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

private int hasIndex(String xpathString) {
  int index = -1;
  int startindex = xpathString.lastIndexOf('[');
  if ((startindex != -1) && (xpathString.lastIndexOf(']') != -1)) {
    StringTokenizer st = new StringTokenizer(xpathString, "[]");
    String element = st.nextToken();
    while(st.hasMoreTokens()) {
      String indexString = st.nextToken();
      try {
        index = Integer.parseInt(indexString);
        setContainsIndex(true);
      } catch (NumberFormatException e) {
        int equalsOffset = indexString.indexOf('=');
        if (equalsOffset >= 0) {
          XPathFragment xPathFragment = new XPathFragment(indexString.substring(0, equalsOffset));
          String value = indexString.substring(equalsOffset + 2, indexString.length() - 1);
          predicate = new XPathPredicate(xPathFragment, value);
        } else {
          setContainsIndex(true);
        }
        setShouldExecuteSelectNodes(true);
      }
    }
    shortName = element;
  } else {
    index = -1;
  }
  return index;
}

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

setShouldExecuteSelectNodes(true);
return;
setShouldExecuteSelectNodes(true);
return;
setShouldExecuteSelectNodes(true);
shortName = xpathString.substring(xpathString.lastIndexOf('/') + 1).intern();
indexValue = hasIndex(xpathString);

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

setShouldExecuteSelectNodes(true);
return;
setShouldExecuteSelectNodes(true);
return;
setShouldExecuteSelectNodes(true);
shortName = xpathString.substring(xpathString.lastIndexOf('/') + 1).intern();
indexValue = hasIndex(xpathString);

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

setShouldExecuteSelectNodes(true);
return;
setShouldExecuteSelectNodes(true);
return;
setShouldExecuteSelectNodes(true);
shortName = xpathString;
indexValue = hasIndex(xpathString);

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