public interface Node2BeanProcessor extends ToBeanTransformer<javax.jcr.Node>
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.
|
<T> TransformationResult<T> |
transform(javax.jcr.Node node,
Class<T> type,
Node2BeanTransformer transformer)
Helper method which complements
ToBeanTransformer interface allowing Node2Bean processing to be accomplished
with a custom transformer instance . |
transform
<T> TransformationResult<T> transform(javax.jcr.Node node, Class<T> type, Node2BeanTransformer transformer)
ToBeanTransformer
interface allowing Node2Bean processing to be accomplished
with a custom transformer instance
.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–2018 Magnolia International Ltd.. All rights reserved.