Interface ValidationContextConfig

All Superinterfaces:
Prototype.Api, Prototype.Factory<ValidationContext>
All Known Implementing Classes:
ValidationContextConfig.BuilderBase.ValidationContextConfigImpl

public interface ValidationContextConfig extends Prototype.Api
Configuration of Validation process, used to create a ValidationContext.
See Also:
  • Method Details

    • builder

      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • rootType

      Class<?> rootType()
      Top level validation root type.
      Returns:
      root type
    • rootObject

      Optional<Object> rootObject()
      Top level validation root object. If empty, we may be validating a constructor.
      Returns:
      root object if specified, empty otherwise
    • clock

      Clock clock()
      Clock to use for validation of calendar constraints.
      Returns:
      clock for validation