Class ConstantValueProviderService

java.lang.Object
de.floydkretschmar.fixturize.stategies.constants.value.ConstantValueProviderService
All Implemented Interfaces:
ValueProviderService

public class ConstantValueProviderService extends Object implements ValueProviderService
Decides which value during constant creation should be used for a given VariableElement.
  • Field Details

    • DEFAULT_VALUE

      public static final String DEFAULT_VALUE
      The default constant value if all other strategies for generation fail.
      See Also:
  • Constructor Details

  • Method Details

    • getValueFor

      public String getValueFor(Element element)
      Returns the correct value that should be used for constant generation for the specified element.
      Specified by:
      getValueFor in interface ValueProviderService
      Parameters:
      element - - for which the value is being retrieved
      Returns:
      the value used for constant construction