@Test public void parentXPathEdgeCases() { XPathContext ctx = new XPathContext(); assertEquals("", ctx.getParentXPath()); }
public String getParentXPath() { Iterator<Level> levelIterator = path.descendingIterator(); if (levelIterator.hasNext()) { levelIterator.next(); } return getXPath(levelIterator); }
XPathContext implements Cloneable { public String getParentXPath() { Iterator<Level> levelIterator = path.descendingIterator(); if (levelIterator.hasNext()) { levelIterator.next(); } return getXPath(levelIterator); } }
XPathContext implements Cloneable { public String getParentXPath() { Iterator<Level> levelIterator = path.descendingIterator(); if (levelIterator.hasNext()) { levelIterator.next(); } return getXPath(levelIterator); } XPathContext();  XPathContext(Node root);  XPathContext(Map<String, String> prefix2uri);  XPathContext(Map<String, String> prefix2uri, Node root); }
XPathContext implements Cloneable { public String getParentXPath() { Iterator<Level> levelIterator = path.descendingIterator(); if (levelIterator.hasNext()) { levelIterator.next(); } return getXPath(levelIterator); } XPathContext();  XPathContext(Node root);  XPathContext(Map<String, String> prefix2uri);  XPathContext(Map<String, String> prefix2uri, Node root); void navigateToChild(int index); void navigateToAttribute(QName attribute); void navigateToParent(); void addAttributes(Iterable<? extends QName> attributes); void addAttribute(QName attribute); void setChildren(Iterable<? extends NodeInfo> children); void appendChildren(Iterable<? extends NodeInfo> children); String getXPath(); String getParentXPath(); @Override XPathContext clone(); }
XPathContext implements Cloneable { public String getParentXPath() { Iterator<Level> levelIterator = path.descendingIterator(); if (levelIterator.hasNext()) { levelIterator.next(); } return getXPath(levelIterator); } XPathContext();  XPathContext(Node root);  XPathContext(Map<String, String> prefix2uri);  XPathContext(Map<String, String> prefix2uri, Node root); void navigateToChild(int index); void navigateToAttribute(QName attribute); void navigateToParent(); void addAttributes(Iterable<? extends QName> attributes); void addAttribute(QName attribute); void setChildren(Iterable<? extends NodeInfo> children); void appendChildren(Iterable<? extends NodeInfo> children); String getXPath(); String getParentXPath(); @Override XPathContext clone();  }