info.magnolia.content2bean
Class Content2BeanUtil.ToMapTransformer
java.lang.Object
info.magnolia.content2bean.impl.Content2BeanTransformerImpl
info.magnolia.content2bean.Content2BeanUtil.ToMapTransformer
- All Implemented Interfaces:
- Content.ContentFilter, Content2BeanTransformer
- Enclosing class:
- Content2BeanUtil
public static class Content2BeanUtil.ToMapTransformer
- extends Content2BeanTransformerImpl
A Content2BeanTransformer
transforming all nodes to Maps.
Methods inherited from class info.magnolia.content2bean.impl.Content2BeanTransformerImpl |
accept, convertPropertyValue, getChildren, getTypeMapping, initBean, newBeanInstance, newState, onResolveType, onResolveType, resolveType, setProperty, setProperty |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Content2BeanUtil.ToMapTransformer
public Content2BeanUtil.ToMapTransformer()
resolveType
public TypeDescriptor resolveType(TypeMapping typeMapping,
TransformationState state,
ComponentProvider componentProvider)
throws ClassNotFoundException
- Description copied from class:
Content2BeanTransformerImpl
- Resolves the
TypeDescriptor
from current transformation state. Resolving happens in the following
order:
- checks the class property of the current node
- calls onResolve subclasses should override
- reflection on the parent bean
- in case of a collection/map type call getClassForCollectionProperty
- otherwise use a Map
- Specified by:
resolveType
in interface Content2BeanTransformer
- Overrides:
resolveType
in class Content2BeanTransformerImpl
- Throws:
ClassNotFoundException
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.