public class FakerUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
private static Map<String,FakerMethodHolder> |
datatypeFunctionMap |
static String |
DEFAULT_DATE_PROPERTY_NAME |
(package private) static AllowableValue |
FT_BIRTHDAY |
(package private) static AllowableValue |
FT_BOOL |
(package private) static AllowableValue |
FT_FUTURE_DATE |
(package private) static AllowableValue |
FT_NUMBER |
(package private) static AllowableValue |
FT_PAST_DATE |
(package private) static AllowableValue |
FT_SHA256 |
(package private) static AllowableValue |
FT_SHA512 |
private static String |
PACKAGE_PREFIX |
private static int |
RANDOM_DATE_DAYS |
| Constructor and Description |
|---|
FakerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static AllowableValue[] |
createFakerPropertyList() |
static DataType |
getDataType(String type) |
static Map<String,FakerMethodHolder> |
getDatatypeFunctionMap() |
static Object |
getFakeData(String type,
com.github.javafaker.Faker faker) |
private static String |
normalizeClassName(String name) |
private static String |
normalizeDisplayName(String name) |
private static String |
normalizeMethodName(String name) |
public static final String DEFAULT_DATE_PROPERTY_NAME
private static final int RANDOM_DATE_DAYS
private static final Map<String,FakerMethodHolder> datatypeFunctionMap
static final AllowableValue FT_BOOL
static final AllowableValue FT_FUTURE_DATE
static final AllowableValue FT_PAST_DATE
static final AllowableValue FT_BIRTHDAY
static final AllowableValue FT_NUMBER
static final AllowableValue FT_SHA256
static final AllowableValue FT_SHA512
private static final String PACKAGE_PREFIX
public static AllowableValue[] createFakerPropertyList()
public static Map<String,FakerMethodHolder> getDatatypeFunctionMap()
Copyright © 2023 Apache NiFi Project. All rights reserved.