|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.content2bean.impl.Content2BeanProcessorImpl
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()
|
Method Summary | |
---|---|
boolean |
isForceCreation()
|
protected Content2BeanTransformer |
resolveTransformer(TypeDescriptor type,
Content2BeanTransformer transformer)
|
void |
setForceCreation(boolean handleExceptions)
|
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)
Similar to toBean() but uses a passed bean as the root bean. |
Object |
toBean(Content node,
boolean recursive,
Content2BeanTransformer transformer)
Transforms the node to a bean using the passed transformer. |
protected Object |
toBean(Content node,
boolean recursive,
Content2BeanTransformer transformer,
TransformationState state)
|
protected Map<String,Object> |
toMap(Content node,
boolean recursive,
Content2BeanTransformer transformer,
TransformationState state)
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 |
---|
public Content2BeanProcessorImpl()
Method Detail |
---|
public Object toBean(Content node, boolean recursive, Content2BeanTransformer transformer) throws Content2BeanException
Content2BeanProcessor
toBean
in interface Content2BeanProcessor
Content2BeanException
protected Object toBean(Content node, boolean recursive, Content2BeanTransformer transformer, TransformationState state) throws Content2BeanException
Content2BeanException
public Object setProperties(Object bean, Content node, boolean recursive, Content2BeanTransformer transformer) 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) 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 |