public abstract class PrimitiveTypePropertyTransformer extends AbstractPropertyTransformer
PropertyTransformer
making it possible to support arrays of primitive objectsPropertyTransformer.PropertyDescriptor
Constructor and Description |
---|
PrimitiveTypePropertyTransformer(Class pPrimitiveType)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected Object |
createArray(Class pComponentType,
int pLength)
Creates an array of the given type with the given size.
|
protected Object |
readStaticField(String pValue,
Class pPropertyType) |
transform, transform, transformWithFallbackToStaticFieldIfTransformationFails
public PrimitiveTypePropertyTransformer(Class pPrimitiveType)
pPrimitiveType
- the primitive property type. This could for instance be Integer.TYPE
protected Object createArray(Class pComponentType, int pLength)
AbstractPropertyTransformer
createArray
in class AbstractPropertyTransformer
pComponentType
- the Class
object representing the component type of the new arraypLength
- the length of the new arrayprotected Object readStaticField(String pValue, Class pPropertyType) throws IllegalAccessException
readStaticField
in class AbstractPropertyTransformer
IllegalAccessException
© 1998- 2018 Stibo DX