/** * Signals the end of use of the reusable AutoPilot in this class. */ protected void releaseAutoPilot() { reusableAutoPilot.resetXPath(); autoPilotInUse = false; }
retList.add(apXP.evalXPathToString()); apXP.resetXPath(); apFE.resetXPath(); Object retobj; if (retList.size() > 0) {
/** * Create AutoPilot and declare namespaces on it. * @param xpathExpr xpath expression for the AutoPilot * @return the AutoPilot * @throws XPathParseException */ private AutoPilot acquireAutoPilot(String xpathExpr) throws XPathParseException { AutoPilot ap = compiledXPaths.remove(xpathExpr); if (ap == null) { ap = new AutoPilot(nav); if (config.isNamespaceAware()) { ap.declareXPathNameSpace("xml", "http://www.w3.org/XML/1998/namespace"); // builtin for (Entry<String, String> e: config.getNamespaces().entrySet()) { ap.declareXPathNameSpace(e.getKey(), e.getValue()); } } try { ap.selectXPath(xpathExpr); } catch (XPathParseException e) { throw new RuntimeException("Error in XPath expression " + xpathExpr + " : " + e.getMessage(), e); } } else { ap.resetXPath(); } autoPilotsInUse.put(ap, xpathExpr); return ap; }
String entityIdentifier = ap.evalXPathToString(); ap.resetXPath(); ap.selectXPath(entityLastUpdatedXpath);
ap.resetXPath(); ap.selectXPath(xpath);
for (AutoPilot apInlineTag: apsInlineTag) { navpush(); apInlineTag.resetXPath(); while (apInlineTag.evalXPath() != -1) { collectInlineTag(tagsAndPunct); apPunct.resetXPath(); while (apPunct.evalXPath() != -1) { apEvalToString.resetXPath(); String punct = apEvalToString.evalXPathToString(); collectPunct(tagsAndPunct, punct); words.resetXPath(); apTokenPositionId.resetXPath(); String tokenPositionId = apTokenPositionId.evalXPathToString(); tokenPositionsMap.put(tokenPositionId, getCurrentTokenPosition()); apTokenPos.resetXPath(); while (apTokenPos.evalXPath() != -1) { apEvalToString.resetXPath(); String tokenPositionId = apEvalToString.evalXPathToString(); Integer integer = tokenPositionsMap.get(tokenPositionId);
fib.modifyEntry(k, 0x3); ap1.resetXPath(); vn.pop(); ap.resetXPath();
System.out.println("PMID==>"+vn.toNormalizedString(vn.getText())); ap1.resetXPath(); vn.pop(); vn.push(); vn.toElement(VTDNav.PARENT); ap2.resetXPath(); vn.pop(); VN.push();
xm.updateElementName(newElementName); ap4.resetXPath(); vn.pop();
while (apMetaForEach.evalXPath() != -1) { apFieldName.resetXPath(); String fieldName = apFieldName.evalXPathToString(); apMetadata.resetXPath(); String metadataValue = apMetadata.evalXPathToString(); metadataValue = processString(metadataValue, f.getProcess());
while (apForEach.evalXPath() != -1) { apName.resetXPath(); String name = apName.evalXPathToString(); apValue.resetXPath(); String value = apValue.evalXPathToString(); value = processString(value, subAnnot.getProcess());
boolean firstValue = true; while (apValuePath.evalXPath() != -1) { apEvalToString.resetXPath(); String annotValue = apEvalToString.evalXPathToString(); annotValue = processString(annotValue, annotation.getProcess());