Interface FieldsetGenerator

All Known Implementing Classes:
DefaultFieldGenerator

@DefaultImplementation(DefaultFieldGenerator.class) public interface FieldsetGenerator
API to generate an HTML Fieldset representation of a give type or instance.
Since:
4.1.0
Author:
Sergio del Amo
  • Method Details

    • generate

      @NonNull <T> @NonNull Fieldset generate(@NonNull @NonNull Class<T> type)
      Type Parameters:
      T - type
      Parameters:
      type - A class which should be Introspected.
      Returns:
      A Fieldset
    • generate

      @NonNull <T> @NonNull Fieldset generate(@NonNull @NonNull Class<T> type, @NonNull @NonNull BiConsumer<String,io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer)
      Type Parameters:
      T - type
      Parameters:
      type - A class which should be Introspected.
      builderConsumer - A biconsumer with the property name and the builder
      Returns:
      A Fieldset
    • generate

      @NonNull @NonNull Fieldset generate(@NonNull @NonNull Object instance)
      Parameters:
      instance - The Object instance which should be Introspected.
      Returns:
      A Fieldset
    • generate

      @NonNull @NonNull Fieldset generate(@NonNull @NonNull Object instance, @NonNull @NonNull BiConsumer<String,io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer)
      Parameters:
      instance - The Object instance which should be Introspected.
      builderConsumer - A biconsumer with the property name and the builder
      Returns:
      A Fieldset
    • generate

      @NonNull @NonNull Fieldset generate(@NonNull @NonNull Object instance, @NonNull @NonNull jakarta.validation.ConstraintViolationException ex)
      Parameters:
      instance - The Object instance which should be Introspected.
      ex - A Validation exception
      Returns:
      A Fieldset
    • generate

      @NonNull @NonNull Fieldset generate(@NonNull @NonNull Object instance, @NonNull @NonNull jakarta.validation.ConstraintViolationException ex, @NonNull @NonNull BiConsumer<String,io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer)
      Parameters:
      instance - The Object instance which should be Introspected.
      ex - A Validation exception
      builderConsumer - A biconsumer with the property name and the builder
      Returns:
      A Fieldset