Interface ValueGenerator<T>


@Deprecated(since="6.2", forRemoval=true) public interface ValueGenerator<T>
Deprecated, for removal: This API element is subject to removal in a future version.
Replaced by Generator
Defines a generator for in-VM generation of (non-identifier) attribute values.
Author:
Steve Ebersole
  • Method Summary

    Modifier and Type
    Method
    Description
    generateValue(Session session, Object owner)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Generate the value.
    default T
    generateValue(Session session, Object owner, Object currentValue)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Generate the value.
  • Method Details

    • generateValue

      T generateValue(Session session, Object owner)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Generate the value.
      Parameters:
      session - The Session from which the request originates.
      owner - The instance of the object owning the attribute for which we are generating a value.
      Returns:
      The generated value
    • generateValue

      default T generateValue(Session session, Object owner, Object currentValue)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Generate the value.
      Parameters:
      session - The Session from which the request originates.
      owner - The instance of the object owning the attribute for which we are generating a value.
      currentValue - The current value assigned to the property
      Returns:
      The generated value