public class CollectionPropertyTransformer extends CompositePropertyTransformer<Collection>
PropertyTransformer
which converts the value into a collection of a given type.PropertyTransformer.PropertyDescriptor
mLogger
Constructor and Description |
---|
CollectionPropertyTransformer(Class pTheCollectionClass,
Map<Class,PropertyTransformer> pTransformers,
PropertyTransformer pFallbackTransformer)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected Collection |
createPrototype() |
protected void |
transformToken(Collection pValue,
String pToken,
PropertyTransformer.PropertyDescriptor pDescriptor) |
getTransformerFor, transform
public CollectionPropertyTransformer(Class pTheCollectionClass, Map<Class,PropertyTransformer> pTransformers, PropertyTransformer pFallbackTransformer)
pTheCollectionClass
- the class to use when creating a new collection. The class must be a concrete class
and implement java.util.Collection.pTransformers
- a map of transformers to use when converting the actual valuespFallbackTransformer
- the transformer to use when no other transformer is foundprotected void transformToken(Collection pValue, String pToken, PropertyTransformer.PropertyDescriptor pDescriptor) throws BusException
transformToken
in class CompositePropertyTransformer<Collection>
BusException
protected Collection createPrototype() throws BusException
createPrototype
in class CompositePropertyTransformer<Collection>
BusException
© 1998- 2018 Stibo DX