info.magnolia.content2bean.impl
Class CollectionPropertyHidingTransformer
java.lang.Object
info.magnolia.content2bean.impl.Content2BeanTransformerImpl
info.magnolia.content2bean.impl.CollectionPropertyHidingTransformer
- All Implemented Interfaces:
- Content.ContentFilter, Content2BeanTransformer
- Direct Known Subclasses:
- CompositeExecutorTransformer, CompositeFilterTransformer, VoterSetTransformer
public class CollectionPropertyHidingTransformer
- extends Content2BeanTransformerImpl
A transformer which "hides" a collection node. Extend or pass the type and node name in the constructor.
- Version:
- $Revision: 41137 $ ($Author: gjoseph $)
- Author:
- pbracher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
collectionName
protected String collectionName
type
protected TypeDescriptor type
propertyDescriptor
protected PropertyTypeDescriptor propertyDescriptor
addMethod
protected Method addMethod
propertyType
protected TypeDescriptor propertyType
CollectionPropertyHidingTransformer
public CollectionPropertyHidingTransformer(Class<?> beanClass,
String collectionName)
onResolveType
protected TypeDescriptor onResolveType(TransformationState state,
TypeDescriptor resolvedType)
- Description copied from class:
Content2BeanTransformerImpl
- Called once the type should have been resolved. The resolvedType might be
null if no type has been resolved. After the call the FactoryUtil and
custom transformers are used to get the final type.
TODO - check javadoc
- Overrides:
onResolveType
in class Content2BeanTransformerImpl
setProperty
public void setProperty(TransformationState state,
PropertyTypeDescriptor descriptor,
Map<String,Object> values)
- Description copied from class:
Content2BeanTransformerImpl
- Do not set class property. In case of a map/collection try to use adder method.
- Specified by:
setProperty
in interface Content2BeanTransformer
- Overrides:
setProperty
in class Content2BeanTransformerImpl
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.