Package nl._42.beanie.generator
Class PropertyValueGenerator
java.lang.Object
nl._42.beanie.generator.PropertyValueGenerator
- All Implemented Interfaces:
ValueGenerator
- Direct Known Subclasses:
ReferencedTypeValueGenerator
Value generator that is capable of providing the property.
- Since:
- Jun 8, 2016
- Author:
- Jeroen van Schagen
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
PropertyValueGenerator
public PropertyValueGenerator()
-
-
Method Details
-
generate
Generate a new value of the specified property.- Parameters:
reference
- the property referencepropertyType
- the type of property- Returns:
- the generation property value
-
generate
Generate a new value of the specified type.- Specified by:
generate
in interfaceValueGenerator
- Parameters:
type
- the type of value- Returns:
- the generation value
-