public abstract class CompositePropertyTransformer<V> extends Object implements PropertyTransformer
PropertyTransformer.PropertyDescriptor
Modifier and Type | Field and Description |
---|---|
protected org.apache.log4j.Logger |
mLogger |
Constructor and Description |
---|
CompositePropertyTransformer(Map<Class,PropertyTransformer> pTransformers,
PropertyTransformer pFallbackTransformer) |
Modifier and Type | Method and Description |
---|---|
protected abstract V |
createPrototype() |
protected PropertyTransformer |
getTransformerFor(Class<?> pClass) |
Object |
transform(PropertyTransformer.PropertyDescriptor pDescriptor,
String pValue)
Transforms
pValue into an object of the provided pType |
protected abstract void |
transformToken(V pValue,
String pToken,
PropertyTransformer.PropertyDescriptor pDescriptor) |
public CompositePropertyTransformer(Map<Class,PropertyTransformer> pTransformers, PropertyTransformer pFallbackTransformer)
public final Object transform(PropertyTransformer.PropertyDescriptor pDescriptor, String pValue) throws BusException
PropertyTransformer
pValue
into an object of the provided pType
transform
in interface PropertyTransformer
pDescriptor
- the PropertyTransformer.PropertyDescriptor
describing the property we want to transform pValue
intopValue
- the object to be transformed, should be left unchangedBusException
- if the transformer cannot do it's jobprotected PropertyTransformer getTransformerFor(Class<?> pClass)
protected abstract V createPrototype() throws BusException
BusException
protected abstract void transformToken(V pValue, String pToken, PropertyTransformer.PropertyDescriptor pDescriptor) throws BusException
BusException
© 1998- 2018 Stibo DX