public class SizeTypeInitMapperTransformer extends SubTypeInitMapperTransformer<Size>
Size
sub-type based on field name and value.
TODO: Does not handle SizeDimensions
type. Only SizeFit
and SizeString
Constructor and Description |
---|
SizeTypeInitMapperTransformer() |
Modifier and Type | Method and Description |
---|---|
protected Size |
instantiate(String filedName,
Object fieldValue)
Default implementation will return the fieldValue.
This is because in many cases like JPA, the sub-type maybe instantiated already if it has a value. |
transform
protected Size instantiate(String filedName, Object fieldValue)
SubTypeInitMapperTransformer
instantiate
in class SubTypeInitMapperTransformer<Size>
filedName
- as StringfieldValue
- as Object (Default case expected ENTITY type)Copyright © 2018. All rights reserved.