Class EnumValueProvider
java.lang.Object
de.floydkretschmar.fixturize.stategies.constants.value.providers.fallback.EnumValueProvider
- All Implemented Interfaces:
ValueProvider
Default value provider for enums.
-
Field Summary
Fields inherited from interface de.floydkretschmar.fixturize.stategies.constants.value.providers.ValueProvider
DEFAULT_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprovideValueAsString(Element field, TypeMetadata metadata) Returns a string representation of a value that will be used when creating a constant for the specified field.
-
Constructor Details
-
EnumValueProvider
public EnumValueProvider()
-
-
Method Details
-
provideValueAsString
Description copied from interface:ValueProviderReturns a string representation of a value that will be used when creating a constant for the specified field.- Specified by:
provideValueAsStringin interfaceValueProvider- Parameters:
field- - for which the value is being providedmetadata- - used for creating the fixture- Returns:
- the string representation of the value
-