public interface Node2BeanProcessor
Modifier and Type | Method and Description |
---|---|
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.
|
Object toBean(javax.jcr.Node node) throws Node2BeanException, javax.jcr.RepositoryException
node
- which will be transformed to beanNode2BeanException
javax.jcr.RepositoryException
Object toBean(javax.jcr.Node node, Class<?> defaultClass) throws Node2BeanException, javax.jcr.RepositoryException
node
- which will be transformed to beandefaultClass
- default typeNode2BeanException
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 wellNode2BeanException
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
Copyright © 2003–2015 Magnolia International Ltd.. All rights reserved.