|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.content2bean.impl.Content2BeanProcessorImpl
Node2BeanProcessorImpl
instead.
@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)
Deprecated. |
Method Summary | |
---|---|
boolean |
isForceCreation()
Deprecated. |
protected Content2BeanTransformer |
resolveTransformer(TypeDescriptor type,
Content2BeanTransformer transformer)
Deprecated. |
void |
setForceCreation(boolean handleExceptions)
Deprecated. only used in tests |
protected void |
setProperties(Map<String,Object> values,
Content2BeanTransformer transformer,
TransformationState state)
Deprecated. Populates the properties of the bean with values from the map. |
Object |
setProperties(Object bean,
Content node,
boolean recursive,
Content2BeanTransformer transformer,
ComponentProvider componentProvider)
Deprecated. Similar to toBean() but uses a passed bean as the root bean. |
Object |
toBean(Content node,
boolean recursive,
Content2BeanTransformer transformer,
ComponentProvider componentProvider)
Deprecated. 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)
Deprecated. |
protected Map<String,Object> |
toMap(Content node,
boolean recursive,
Content2BeanTransformer transformer,
TransformationState state,
ComponentProvider componentProvider)
Deprecated. 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 |