|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Content2BeanTransformer
Contract for transformation from content to java beans.
Nested Class Summary | |
---|---|
static class |
Content2BeanTransformer.Factory
Deprecated. since 4.5, we should use IoC... |
Method Summary | |
---|---|
Object |
convertPropertyValue(Class<?> propertyType,
Object value)
Transforms the simple basic jcr property value objects to more complex properties. |
Collection<Content> |
getChildren(Content node)
Returns the children of the node to be transformed. |
TypeMapping |
getTypeMapping()
Deprecated. since 4.5, do not use |
void |
initBean(TransformationState state,
Map values)
Called after all properties are set. |
Object |
newBeanInstance(TransformationState state,
Map values,
ComponentProvider componentProvider)
Instantiates the bean. |
TransformationState |
newState()
Create a state object to share the state between the processor and transformer. |
TypeDescriptor |
resolveType(TransformationState state)
Deprecated. since 4.5, use resolveType(TypeMapping, TransformationState, ComponentProvider) |
TypeDescriptor |
resolveType(TypeMapping typeMapping,
TransformationState state,
ComponentProvider componentProvider)
Resolves the class to use for the current node. |
void |
setProperty(TransformationState state,
PropertyTypeDescriptor descriptor,
Map<String,Object> values)
Deprecated. since 4.5, use setProperty(TypeMapping, TransformationState, PropertyTypeDescriptor, java.util.Map) |
void |
setProperty(TypeMapping typeMapping,
TransformationState state,
PropertyTypeDescriptor descriptor,
Map<String,Object> values)
Set this property on that bean. |
Method Detail |
---|
TransformationState newState()
TypeDescriptor resolveType(TransformationState state) throws ClassNotFoundException
resolveType(TypeMapping, TransformationState, ComponentProvider)
ClassNotFoundException
TypeDescriptor resolveType(TypeMapping typeMapping, TransformationState state, ComponentProvider componentProvider) throws ClassNotFoundException
ClassNotFoundException
Collection<Content> getChildren(Content node)
Object newBeanInstance(TransformationState state, Map values, ComponentProvider componentProvider) throws Content2BeanException
Content2BeanException
void initBean(TransformationState state, Map values) throws Content2BeanException
Content2BeanException
void setProperty(TransformationState state, PropertyTypeDescriptor descriptor, Map<String,Object> values)
setProperty(TypeMapping, TransformationState, PropertyTypeDescriptor, java.util.Map)
void setProperty(TypeMapping typeMapping, TransformationState state, PropertyTypeDescriptor descriptor, Map<String,Object> values)
Object convertPropertyValue(Class<?> propertyType, Object value) throws Content2BeanException
Content2BeanException
TypeMapping getTypeMapping()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |