|
||||||||||
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
Creates singleton instance of content2bean transformer. |
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()
The mapping to use. |
void |
initBean(TransformationState state,
Map values)
Called after all properties are set. |
Object |
newBeanInstance(TransformationState state,
Map values)
Instantiates the bean. |
TransformationState |
newState()
Create a state object to share the state between the processor and transformer. |
TypeDescriptor |
resolveType(TransformationState state)
Resolves the class to use for the current node. |
void |
setProperty(TransformationState state,
PropertyTypeDescriptor descriptor,
Map<String,Object> values)
Set this property on that bean. |
Method Detail |
---|
TransformationState newState()
TypeDescriptor resolveType(TransformationState state) throws ClassNotFoundException
ClassNotFoundException
Collection<Content> getChildren(Content node)
Object newBeanInstance(TransformationState state, Map values) throws Content2BeanException
Content2BeanException
void initBean(TransformationState state, Map values) throws Content2BeanException
Content2BeanException
void setProperty(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 |