|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Node2BeanProcessor
Transforms nodes to beans or maps. The transformer is use to resolve classes or to instantiate beans.
Method Summary | |
---|---|
Object |
setProperties(Object bean,
javax.jcr.Node node,
boolean recursive,
Node2BeanTransformer transformer,
ComponentProvider componentProvider)
Similar to toBean() but uses a passed bean as the root bean. |
Object |
toBean(javax.jcr.Node node)
Transforms given node to bean. |
Object |
toBean(javax.jcr.Node node,
boolean recursive,
Node2BeanTransformer transformer,
ComponentProvider componentProvider)
Transforms the node to a bean using the passed transformer and component provider. |
Object |
toBean(javax.jcr.Node node,
Class<?> defaultClass)
Transforms given node to bean. |
Method Detail |
---|
Object toBean(javax.jcr.Node node) throws Node2BeanException, javax.jcr.RepositoryException
node
- which will be transformed to bean
Node2BeanException
javax.jcr.RepositoryException
Object toBean(javax.jcr.Node node, Class<?> defaultClass) throws Node2BeanException, javax.jcr.RepositoryException
node
- which will be transformed to beandefaultClass
- default type
Node2BeanException
javax.jcr.RepositoryException
Object toBean(javax.jcr.Node node, boolean recursive, Node2BeanTransformer transformer, ComponentProvider componentProvider) throws Node2BeanException, javax.jcr.RepositoryException
node
- which will be transformed to beanrecursive
- if set to true then all subnodes will be transformed as well
Node2BeanException
javax.jcr.RepositoryException
Object setProperties(Object bean, javax.jcr.Node node, boolean recursive, Node2BeanTransformer transformer, ComponentProvider componentProvider) throws Node2BeanException, javax.jcr.RepositoryException
toBean()
but uses a passed bean as the root bean.
Node2BeanException
javax.jcr.RepositoryException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |