/** * Return the bean holding the property 'name' as a BaseBean object */ public BaseBean getPropertyParent(String name) { return (BaseBean) getPropertyParent(root, name); }
for (int i = 0; i < len; i++) { BaseBean candidate = gm.getPropertyParent(props[i]); if (type.isInstance(candidate)) retVal.add(candidate);
public static int getPropertyIndex(Bean theRoot, String name) { String index = extractPropertyIndex(name); if (index != null) { int i = index.lastIndexOf('i'); if (i != -1) { // This is a removed property - return the old value return Integer.parseInt(index.substring(i+1)); } else { // Get the current index value Bean bean = getPropertyParent(theRoot, name); if (bean != null) { BeanProp bp = bean.beanProp(getPropertyName(name)); if (bp != null) return bp.idToIndex(Integer.parseInt(index, 16)); } } } return -1; }