info.magnolia.content2bean
Interface Content2BeanProcessor

All Known Implementing Classes:
Content2BeanProcessorImpl

public interface Content2BeanProcessor

Transforms nodes to beans or maps. The transformer is use to resolve classes or to instantiate beans.

Version:
$Id: Content2BeanProcessor.java 41137 2011-01-06 18:19:25Z gjoseph $
Author:
philipp

Nested Class Summary
static class Content2BeanProcessor.Factory
          Creates a singleton instance of the content2bean processor.
 
Method Summary
 java.lang.Object setProperties(java.lang.Object bean, Content node, boolean recursive, Content2BeanTransformer transformer)
          Similar to toBean() but uses a passed bean as the root bean.
 java.lang.Object toBean(Content node, boolean recursive, Content2BeanTransformer transformer)
          Transforms the node to a bean using the passed transformer.
 

Method Detail

toBean

java.lang.Object toBean(Content node,
                        boolean recursive,
                        Content2BeanTransformer transformer)
                        throws Content2BeanException
Transforms the node to a bean using the passed transformer.

Throws:
Content2BeanException

setProperties

java.lang.Object setProperties(java.lang.Object bean,
                               Content node,
                               boolean recursive,
                               Content2BeanTransformer transformer)
                               throws Content2BeanException
Similar to toBean() but uses a passed bean as the root bean.

Throws:
Content2BeanException


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.