Node2BeanProcessorImpl
instead.@Deprecated @Singleton public class Content2BeanProcessorImpl extends Object implements Content2BeanProcessor
Content2BeanProcessor.Factory
Constructor and Description |
---|
Content2BeanProcessorImpl(TypeMapping typeMapping)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isForceCreation()
Deprecated.
|
protected Content2BeanTransformer |
resolveTransformer(TypeDescriptor type,
Content2BeanTransformer transformer)
Deprecated.
|
void |
setForceCreation(boolean handleExceptions)
Deprecated.
since 5.3.3 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.
|
@Inject public Content2BeanProcessorImpl(TypeMapping typeMapping)
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)
Copyright © 2003–2019 Magnolia International Ltd.. All rights reserved.