DOMBinding b = bp.getBinding(i); if ((b != null) && (b.getNode() != null)) { found = true; DOMBinding b1 = bp.getBinding(i); if (b1 != null) { boolean found = false; DOMBinding b2 = bp.getBinding(j); return bp.getBinding(0).getNode();
/** * Searches node corresponding to the path * @param bean * @param path * @return the node if found, otherwise null */ private static Node findNode(BaseBean bean, String path) { if (path.startsWith(bean.fullName())) { BaseBean matchingChild; while ((matchingChild = getMatchingChild(bean, path)) != null) { bean = matchingChild; } if (path.equals(bean.fullName())) { return bean.binding.node; } BeanProp[] beanProps = bean.beanProps(); for (int i = 0; i < beanProps.length; i++) { BeanProp prop = beanProps[i]; int n = prop.bindingsSize(); for (int j = 0; j < n; j++) { if (path.equals(prop.getFullName(j))) { return prop.getBinding(j).node; } } } } return null; }