/** * A convenience method for decoding a bean from a JCR node. * A null namespace is used. */ public static Object decode (final javax.jcr.Node beanNode) throws BeanCoderException { return decode(null, beanNode); }
protected Object decodeFieldValue () throws BeanCoderException { if ( ! this.currentItem.isNode()) return decodePrimitive(); return decode(); }
/** * A convenience method for decoding a bean from a JCR node. */ public static Object decode (final String namespace, final javax.jcr.Node beanNode) throws BeanCoderException { final Node n = (Node)JcrProxy.wrap(beanNode); final JcrBeanCoder jbc = new JcrBeanCoder(namespace, n); return jbc.decode(); }