/** * Return the list of the properties */ public BaseProperty[] listProperties() { return (BaseProperty[])this.beanProps(); }
public void createBean(Node node, GraphManager mgr) throws Schema2BeansRuntimeException { if (this.isRoot) { mgr.completeRootBinding(this, node); } this.graphManager = mgr; try { mgr.fillProperties(this.beanProps(), node); } catch (Schema2BeansException e) { throw new Schema2BeansRuntimeException(e); } }
/** * 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; }
public String nameChild(Object childObj, boolean returnConstName, boolean returnSchemaName, boolean returnXPathName) { BeanProp[] props = beanProps(); Object propValue; BeanProp prop = null;
BeanProp[] props = beanProps(); BaseBean nextBean; for (int propPosition = 0; propPosition < props.length; ++propPosition) {