|
||||||||||
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(java.util.Map<java.lang.String,java.lang.Object> values,
Content2BeanTransformer transformer,
TransformationState state)
Populates the properties of the bean with values from the map. |
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. |
protected java.lang.Object |
toBean(Content node,
boolean recursive,
Content2BeanTransformer transformer,
TransformationState state)
|
protected java.util.Map<java.lang.String,java.lang.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 java.lang.Object toBean(Content node, boolean recursive, Content2BeanTransformer transformer) throws Content2BeanException
Content2BeanProcessor
toBean
in interface Content2BeanProcessor
Content2BeanException
protected java.lang.Object toBean(Content node, boolean recursive, Content2BeanTransformer transformer, TransformationState state) throws Content2BeanException
Content2BeanException
public java.lang.Object setProperties(java.lang.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 java.util.Map<java.lang.String,java.lang.Object> toMap(Content node, boolean recursive, Content2BeanTransformer transformer, TransformationState state) throws Content2BeanException
Content2BeanException
protected void setProperties(java.util.Map<java.lang.String,java.lang.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 |