- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.setContainsIndex()
方法的一些代码示例,展示了XPathFragment.setContainsIndex()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XPathFragment.setContainsIndex()
方法的具体详情如下:
包路径:org.eclipse.persistence.internal.oxm.XPathFragment
类名称:XPathFragment
方法名:setContainsIndex
暂无
代码示例来源: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;
}
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.getXMLField()方法的一些代码示例,展示了XPathFragment
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.getNamespaceURI()方法的一些代码示例,展示了XPathFrag
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.getPrefix()方法的一些代码示例,展示了XPathFragment.g
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.getShortName()方法的一些代码示例,展示了XPathFragmen
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.isAttribute()方法的一些代码示例,展示了XPathFragment
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.getLocalName()方法的一些代码示例,展示了XPathFragmen
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.setPredicate()方法的一些代码示例,展示了XPathFragmen
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.getNonAttributeCollisionSet()方法的一些代码示例,
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.resetShortName()方法的一些代码示例,展示了XPathFragm
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.getChildrenCollisionSet()方法的一些代码示例,展示了X
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.setContainsIndex()方法的一些代码示例,展示了XPathFra
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.setXPath()方法的一些代码示例,展示了XPathFragment.se
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.getPrefixBytes()方法的一些代码示例,展示了XPathFragm
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.equals()方法的一些代码示例,展示了XPathFragment.equa
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.getHasText()方法的一些代码示例,展示了XPathFragment.
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.hasLeafElementType()方法的一些代码示例,展示了XPathF
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.setLocalName()方法的一些代码示例,展示了XPathFragmen
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.setShouldExecuteSelectNodes()方法的一些代码示例,
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.isGeneratedPrefix()方法的一些代码示例,展示了XPathFr
本文整理了Java中org.eclipse.persistence.internal.oxm.XPathFragment.setGeneratedPrefix()方法的一些代码示例,展示了XPathF
我是一名优秀的程序员,十分优秀!