Class ReferencedTypeValueGenerator

  • All Implemented Interfaces:
    ValueGenerator

    public class ReferencedTypeValueGenerator
    extends PropertyValueGenerator
    Dynamically generates a value of the referenced type.
    Since:
    Jun 8, 2016
    Author:
    Jeroen van Schagen
    • Constructor Detail

      • ReferencedTypeValueGenerator

        public ReferencedTypeValueGenerator​(BeanBuilder generator)
    • Method Detail

      • generate

        public Object generate​(PropertyReference reference,
                               Class<?> propertyType)
        Generate a new value of the specified property.
        Specified by:
        generate in class PropertyValueGenerator
        Parameters:
        reference - the property reference
        propertyType - the type of property
        Returns:
        the generation property value