AbstractObjectValueGenerator

public abstract class AbstractObjectValueGenerator<T> implements ObjectValueGenerator

Base class for other generator classes. It takes value of property (see getPropertName() method) from object and modify it depending on the implementation. If the modified value is null then the java.lang.IllegalStateException is thrown.

Parameters:
  • <T> – type of property

Methods

generate

public Object generate(ExecutionContext ec, Object obj, ExtensionMetaData[] extensions)

getPropertName

protected abstract String getPropertName()

modify

protected abstract T modify(T value)

Modifies the given value. This method cannot return null value.

Parameters:
  • value – the given value related with property.
Returns:

modified value.