|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.content2bean.impl.Content2BeanProcessorImpl
@Singleton public class Content2BeanProcessorImpl
Contains the logic for traversing the hierarchy and do the calls to the transformer.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface info.magnolia.content2bean.Content2BeanProcessor |
---|
Content2BeanProcessor.Factory |
Constructor Summary | |
---|---|
Content2BeanProcessorImpl(TypeMapping typeMapping)
|
Method Summary | |
---|---|
boolean |
isForceCreation()
|
protected Content2BeanTransformer |
resolveTransformer(TypeDescriptor type,
Content2BeanTransformer transformer)
|
void |
setForceCreation(boolean handleExceptions)
Deprecated. only used in tests |
protected void |
setProperties(Map<String,Object> values,
Content2BeanTransformer transformer,
TransformationState state)
Populates the properties of the bean with values from the map. |
Object |
setProperties(Object bean,
Content node,
boolean recursive,
Content2BeanTransformer transformer,
ComponentProvider componentProvider)
Similar to toBean() but uses a passed bean as the root bean. |
Object |
toBean(Content node,
boolean recursive,
Content2BeanTransformer transformer,
ComponentProvider componentProvider)
Transforms the node to a bean using the passed transformer and component provider. |
protected Object |
toBean(Content node,
boolean recursive,
Content2BeanTransformer transformer,
TransformationState state,
ComponentProvider componentProvider)
|
protected Map<String,Object> |
toMap(Content node,
boolean recursive,
Content2BeanTransformer transformer,
TransformationState state,
ComponentProvider componentProvider)
Transforms the children of provided content into a map. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Inject public Content2BeanProcessorImpl(TypeMapping typeMapping)
Method Detail |
---|
public Object toBean(Content node, boolean recursive, Content2BeanTransformer transformer, ComponentProvider componentProvider) throws Content2BeanException
Content2BeanProcessor
toBean
in interface Content2BeanProcessor
Content2BeanException
protected Object toBean(Content node, boolean recursive, Content2BeanTransformer transformer, TransformationState state, ComponentProvider componentProvider) throws Content2BeanException
Content2BeanException
public Object setProperties(Object bean, Content node, boolean recursive, Content2BeanTransformer transformer, ComponentProvider componentProvider) throws Content2BeanException
Content2BeanProcessor
toBean()
but uses a passed bean as the root bean.
setProperties
in interface Content2BeanProcessor
Content2BeanException
protected Map<String,Object> toMap(Content node, boolean recursive, Content2BeanTransformer transformer, TransformationState state, ComponentProvider componentProvider) throws Content2BeanException
Content2BeanException
protected void setProperties(Map<String,Object> values, Content2BeanTransformer transformer, TransformationState state) throws Content2BeanException
Content2BeanException
protected Content2BeanTransformer resolveTransformer(TypeDescriptor type, Content2BeanTransformer transformer)
public boolean isForceCreation()
public void setForceCreation(boolean handleExceptions)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |