public XFormsNode getParentNode(Class parentClass) { Node parent = getParentNode(); while ((!parentClass.isInstance(parent)) && parent != null) { parent = parent.getParentNode(); } return (XFormsNode) parent; }
public void reEvaluateChildContexts(boolean force) { XPathContext context = getContext(); Node child = getFirstChild(); while (child != null) { if (child instanceof XFormsElement) { ((XFormsElement) child).reEvaluateContext(context, force); } child = child.getNextSibling(); } }