public abstract class RandomFieldSupplier extends Object
Modifier and Type | Method and Description |
---|---|
abstract boolean |
canSupply(String fieldName,
Class<?> fieldClass)
Returns if this random field should be used to render the field name.
|
RandomField |
createRandomField()
Deprecated.
use
createRandomField(String, Class) instead |
RandomField |
createRandomField(String fieldName,
Class<?> fieldClass)
Creates a new instance of
RandomField to use for a
RandomFactory . |
static RandomField |
createRandomFieldByField(String propertyName,
Class<?> propertyClass)
Creates a
RandomField for a property name and class. |
static RandomFieldSupplier |
findSupplierByField(String propertyName,
Class<?> propertyClass)
Returns a
RandomFieldSupplier for a property name and class. |
static List<RandomFieldSupplier> |
getAllSuppliers()
Returns all
RandomFieldSupplier s that this module brings along. |
public static RandomField createRandomFieldByField(String propertyName, Class<?> propertyClass)
RandomField
for a property name and class.propertyName
- the property's namepropertyClass
- the property's classRandomField
or nullpublic static RandomFieldSupplier findSupplierByField(String propertyName, Class<?> propertyClass)
RandomFieldSupplier
for a property name and class.propertyName
- the property's namepropertyClass
- the property's classRandomFieldSupplier
or nullpublic static List<RandomFieldSupplier> getAllSuppliers()
RandomFieldSupplier
s that this module brings along.RandomFieldSupplier
; never null; probably never emptypublic abstract boolean canSupply(String fieldName, Class<?> fieldClass)
fieldName
- name of the fieldfieldClass
- class of the fieldRandomField
can be supplied@Deprecated public RandomField createRandomField()
createRandomField(String, Class)
insteadRandomField
to use for a
RandomFactory
.public RandomField createRandomField(String fieldName, Class<?> fieldClass)
RandomField
to use for a
RandomFactory
.fieldName
- the name of the field to be filledfieldClass
- the class of the field to be filledCopyright © 2020. All rights reserved.