public class EnumPropertyTransformer extends Object implements PropertyTransformer
PropertyTransformer
transforming properties of type Enum
PropertyTransformer.PropertyDescriptor
Constructor and Description |
---|
EnumPropertyTransformer() |
Modifier and Type | Method and Description |
---|---|
Object |
transform(PropertyTransformer.PropertyDescriptor pDescriptor,
String pValue)
Transforms
pValue into an object of the provided pType |
public Object transform(PropertyTransformer.PropertyDescriptor pDescriptor, String pValue) throws IllegalArgumentException, 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 unchangedIllegalArgumentException
- if the input is invalidBusException
- if the transformer cannot do it's job© 1998- 2018 Stibo DX