Node2BeanTransformerImpl
instead.@Deprecated @Singleton public class Content2BeanTransformerImpl extends Object implements Content2BeanTransformer, Content.ContentFilter
Content2BeanTransformer.Factory
Constructor and Description |
---|
Content2BeanTransformerImpl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Content content)
Deprecated.
Process all nodes except MetaData and nodes with names prefixed by "jcr:".
|
Object |
convertPropertyValue(Class<?> propertyType,
Object value)
Deprecated.
Most of the conversion is done by the BeanUtils.
|
Collection<Content> |
getChildren(Content node)
Deprecated.
Returns the children of the node to be transformed.
|
TypeMapping |
getTypeMapping()
Deprecated.
since 4.5, do not use.
|
void |
initBean(TransformationState state,
Map properties)
Deprecated.
Initializes bean by calling its init method if present.
|
Object |
newBeanInstance(TransformationState state,
Map properties,
ComponentProvider componentProvider)
Deprecated.
Use the factory util to instantiate.
|
TransformationState |
newState()
Deprecated.
Create a state object to share the state between the processor and transformer.
|
protected TypeDescriptor |
onResolveType(TransformationState state,
TypeDescriptor resolvedType,
ComponentProvider componentProvider)
|
protected TypeDescriptor |
onResolveType(TypeMapping typeMapping,
TransformationState state,
TypeDescriptor resolvedType,
ComponentProvider componentProvider)
Deprecated.
Called once the type should have been resolved.
|
TypeDescriptor |
resolveType(TransformationState state)
Deprecated.
|
TypeDescriptor |
resolveType(TypeMapping typeMapping,
TransformationState state,
ComponentProvider componentProvider)
Deprecated.
Resolves the
TypeDescriptor from current transformation state. |
void |
setProperty(TransformationState state,
PropertyTypeDescriptor descriptor,
Map<String,Object> values)
Deprecated.
|
void |
setProperty(TypeMapping mapping,
TransformationState state,
PropertyTypeDescriptor descriptor,
Map<String,Object> values)
Deprecated.
Do not set class property.
|
@Deprecated public TypeDescriptor resolveType(TransformationState state) throws ClassNotFoundException
resolveType
in interface Content2BeanTransformer
ClassNotFoundException
public TypeDescriptor resolveType(TypeMapping typeMapping, TransformationState state, ComponentProvider componentProvider) throws ClassNotFoundException
TypeDescriptor
from current transformation state. Resolving happens in the following
order:
resolveType
in interface Content2BeanTransformer
ClassNotFoundException
protected TypeDescriptor onResolveType(TypeMapping typeMapping, TransformationState state, TypeDescriptor resolvedType, ComponentProvider componentProvider)
protected TypeDescriptor onResolveType(TransformationState state, TypeDescriptor resolvedType, ComponentProvider componentProvider)
public Collection<Content> getChildren(Content node)
Content2BeanTransformer
getChildren
in interface Content2BeanTransformer
public boolean accept(Content content)
accept
in interface Content.ContentFilter
public void setProperty(TransformationState state, PropertyTypeDescriptor descriptor, Map<String,Object> values)
setProperty
in interface Content2BeanTransformer
public void setProperty(TypeMapping mapping, TransformationState state, PropertyTypeDescriptor descriptor, Map<String,Object> values)
setProperty
in interface Content2BeanTransformer
public Object convertPropertyValue(Class<?> propertyType, Object value) throws Content2BeanException
convertPropertyValue
in interface Content2BeanTransformer
Content2BeanException
public Object newBeanInstance(TransformationState state, Map properties, ComponentProvider componentProvider) throws Content2BeanException
newBeanInstance
in interface Content2BeanTransformer
Content2BeanException
public void initBean(TransformationState state, Map properties) throws Content2BeanException
initBean
in interface Content2BeanTransformer
Content2BeanException
public TransformationState newState()
Content2BeanTransformer
newState
in interface Content2BeanTransformer
public TypeMapping getTypeMapping()
getTypeMapping
in interface Content2BeanTransformer
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.