Interface FormGenerator

All Known Implementing Classes:
DefaultFormGenerator

public interface FormGenerator
Generates a Form for a given type representing a form class.
Since:
4.1.0
Author:
Sergio del Amo
  • Field Details

  • Method Details

    • generate

      default @NonNull Form generate(@NonNull String action, @NonNull String method, @NonNull Object instance)
      Parameters:
      action - Form action attribute
      method - Form method attribute
      instance - The Object instance which should be Introspected.
      Returns:
      A Form
    • generate

      default @NonNull Form generate(@NonNull String action, @NonNull Object instance)
      Generate FORM Post.
      Parameters:
      action - Form action attribute
      instance - The Object instance which should be Introspected.
      Returns:
      A Form
    • generateWithFieldset

      @NonNull Form generateWithFieldset(@NonNull String action, @NonNull String method, @NonNull Fieldset fieldset, @NonNull InputSubmitFormElement inputSubmitFormElement)
      Generate FORM with fieldset.
      Parameters:
      action - Form action attribute
      method - Form method attribute
      fieldset - Fieldset
      inputSubmitFormElement - input submit
      Returns:
      A Form
    • generateWithFieldset

      default @NonNull Form generateWithFieldset(@NonNull String action, @NonNull String method, @NonNull Fieldset fieldset, @NonNull Message submitValue)
      Generate FORM with fieldset.
      Parameters:
      action - Form action attribute
      method - Form method attribute
      fieldset - Fieldset
      submitValue - input submit
      Returns:
      A Form
    • generateWithFieldset

      default @NonNull Form generateWithFieldset(@NonNull String action, @NonNull Fieldset fieldset, @NonNull Message submitValue)
      Generate Form with fieldset.
      Parameters:
      action - Form action attribute
      fieldset - Fieldset
      submitValue - input submit
      Returns:
      A Form
    • generateWithFieldset

      default @NonNull Form generateWithFieldset(@NonNull String action, @NonNull Fieldset fieldset)
      Generate Form with fieldset.
      Parameters:
      action - Form action attribute
      fieldset - Fieldset
      Returns:
      A Form
    • generate

      default @NonNull Form generate(@NonNull String action, @NonNull String method, @NonNull Object instance, @NonNull Message submitValue)
      Parameters:
      action - Form action attribute
      method - Form method attribute
      instance - The Object instance which should be Introspected.
      submitValue - input submit
      Returns:
      A Form
    • generate

      default @NonNull Form generate(@NonNull String action, @NonNull Object instance, @NonNull Message submitValue)
      Generate FORM Post.
      Parameters:
      action - Form action attribute
      instance - The Object instance which should be Introspected.
      submitValue - input submit
      Returns:
      A Form
    • generate

      @NonNull Form generate(@NonNull String action, @NonNull String method, @NonNull Object instance, @NonNull InputSubmitFormElement inputSubmitFormElement)
      Parameters:
      action - Form action attribute
      method - Form method attribute
      instance - The Object instance which should be Introspected.
      inputSubmitFormElement - input submit
      Returns:
      A Form
    • generate

      default @NonNull Form generate(@NonNull String action, @NonNull Object instance, @NonNull InputSubmitFormElement inputSubmitFormElement)
      Generate FORM Post.
      Parameters:
      action - Form action attribute
      instance - The Object instance which should be Introspected.
      inputSubmitFormElement - input submit
      Returns:
      A Form
    • generate

      default @NonNull Form generate(@NonNull String action, @NonNull String method, @NonNull Object instance, @NonNull jakarta.validation.ConstraintViolationException ex)
      Parameters:
      action - Form action attribute
      method - Form method attribute
      instance - The Object instance which should be Introspected.
      ex - A Validation exception
      Returns:
      A Form
    • generate

      default @NonNull Form generate(@NonNull String action, @NonNull Object instance, @NonNull jakarta.validation.ConstraintViolationException ex)
      Generate POST form.
      Parameters:
      action - Form action attribute
      instance - The Object instance which should be Introspected.
      ex - A Validation exception
      Returns:
      A Form
    • generate

      default @NonNull Form generate(@NonNull String action, @NonNull String method, @NonNull Object instance, @NonNull jakarta.validation.ConstraintViolationException ex, @NonNull Message submitValue)
      Parameters:
      action - Form action attribute
      method - Form method attribute
      instance - The Object instance which should be Introspected.
      ex - A Validation exception
      submitValue - input submit
      Returns:
      A Form
    • generate

      default @NonNull Form generate(@NonNull String action, @NonNull Object instance, @NonNull jakarta.validation.ConstraintViolationException ex, @NonNull Message submitValue)
      Generate POST form.
      Parameters:
      action - Form action attribute
      instance - The Object instance which should be Introspected.
      ex - A Validation exception
      submitValue - input submit
      Returns:
      A Form
    • generate

      @NonNull Form generate(@NonNull String action, @NonNull String method, @NonNull Object instance, @NonNull jakarta.validation.ConstraintViolationException ex, @NonNull InputSubmitFormElement inputSubmitFormElement)
      Parameters:
      action - Form action attribute
      method - Form method attribute
      instance - The Object instance which should be Introspected.
      ex - A Validation exception
      inputSubmitFormElement - input submit
      Returns:
      A Form
    • generate

      default @NonNull Form generate(@NonNull String action, @NonNull Object instance, @NonNull jakarta.validation.ConstraintViolationException ex, @NonNull InputSubmitFormElement inputSubmitFormElement)
      Generate POST form.
      Parameters:
      action - Form action attribute
      instance - The Object instance which should be Introspected.
      ex - A Validation exception
      inputSubmitFormElement - input submit
      Returns:
      A Form
    • generate

      default <T> @NonNull Form generate(@NonNull String action, @NonNull String method, @NonNull Class<T> type)
      Type Parameters:
      T - type
      Parameters:
      action - Form action attribute
      method - Form method attribute
      type - A class which should be Introspected.
      Returns:
      A Form
    • generate

      default <T> @NonNull Form generate(@NonNull String action, @NonNull Class<T> type)
      Generate POST Form.
      Type Parameters:
      T - type
      Parameters:
      action - Form action attribute
      type - A class which should be Introspected.
      Returns:
      A Form
    • generate

      default <T> @NonNull Form generate(@NonNull String action, @NonNull String method, @NonNull Class<T> type, @NonNull Message submitValue)
      Type Parameters:
      T - type
      Parameters:
      action - Form action attribute
      method - Form method attribute
      type - A class which should be Introspected.
      submitValue - input submit
      Returns:
      A Form
    • generate

      default <T> @NonNull Form generate(@NonNull String action, @NonNull Class<T> type, @NonNull Message submitValue)
      Generate a POST Form.
      Type Parameters:
      T - type
      Parameters:
      action - Form action attribute
      type - A class which should be Introspected.
      submitValue - input submit
      Returns:
      A Form
    • generate

      <T> @NonNull Form generate(@NonNull String action, @NonNull String method, @NonNull Class<T> type, @NonNull InputSubmitFormElement inputSubmitFormElement)
      Type Parameters:
      T - type
      Parameters:
      action - Form action attribute
      method - Form method attribute
      type - A class which should be Introspected.
      inputSubmitFormElement - input submit
      Returns:
      A Form
    • generate

      default <T> @NonNull Form generate(@NonNull String action, @NonNull Class<T> type, @NonNull InputSubmitFormElement inputSubmitFormElement)
      Generate a POST form.
      Type Parameters:
      T - type
      Parameters:
      action - Form action attribute
      type - A class which should be Introspected.
      inputSubmitFormElement - input submit
      Returns:
      A Form
    • generate

      default @NonNull Form generate(@NonNull String action, @NonNull String method, @NonNull Object instance, @NonNull BiConsumer<String,io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer)
      Parameters:
      action - Form action attribute
      method - Form method attribute
      instance - The Object instance which should be Introspected.
      builderConsumer - A BiConsumer with the property name and the builder. It allows to consume a form element builder while the form fieldset is being generated.
      Returns:
      A Form
      Since:
      5.1.0
    • generate

      default @NonNull Form generate(@NonNull String action, @NonNull Object instance, @NonNull BiConsumer<String,io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer)
      Generate FORM Post.
      Parameters:
      action - Form action attribute
      instance - The Object instance which should be Introspected.
      builderConsumer - A BiConsumer with the property name and the builder. It allows to consume a form element builder while the form fieldset is being generated.
      Returns:
      A Form
      Since:
      5.1.0
    • generate

      default @NonNull Form generate(@NonNull String action, @NonNull String method, @NonNull Object instance, @NonNull Message submitValue, @NonNull BiConsumer<String,io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer)
      Parameters:
      action - Form action attribute
      method - Form method attribute
      instance - The Object instance which should be Introspected.
      submitValue - input submit
      builderConsumer - A BiConsumer with the property name and the builder. It allows to consume a form element builder while the form fieldset is being generated.
      Returns:
      A Form
      Since:
      5.1.0
    • generate

      default @NonNull Form generate(@NonNull String action, @NonNull Object instance, @NonNull Message submitValue, @NonNull BiConsumer<String,io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer)
      Generate FORM Post.
      Parameters:
      action - Form action attribute
      instance - The Object instance which should be Introspected.
      submitValue - input submit
      builderConsumer - A BiConsumer with the property name and the builder. It allows to consume a form element builder while the form fieldset is being generated.
      Returns:
      A Form
      Since:
      5.1.0
    • generate

      @NonNull Form generate(@NonNull String action, @NonNull String method, @NonNull Object instance, @NonNull InputSubmitFormElement inputSubmitFormElement, @NonNull BiConsumer<String,io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer)
      Parameters:
      action - Form action attribute
      method - Form method attribute
      instance - The Object instance which should be Introspected.
      inputSubmitFormElement - input submit
      builderConsumer - A BiConsumer with the property name and the builder. It allows to consume a form element builder while the form fieldset is being generated.
      Returns:
      A Form
      Since:
      5.1.0
    • generate

      default @NonNull Form generate(@NonNull String action, @NonNull Object instance, @NonNull InputSubmitFormElement inputSubmitFormElement, @NonNull BiConsumer<String,io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer)
      Generate FORM Post.
      Parameters:
      action - Form action attribute
      instance - The Object instance which should be Introspected.
      inputSubmitFormElement - input submit
      builderConsumer - A BiConsumer with the property name and the builder. It allows to consume a form element builder while the form fieldset is being generated.
      Returns:
      A Form
      Since:
      5.1.0
    • generate

      default @NonNull Form generate(@NonNull String action, @NonNull String method, @NonNull Object instance, @NonNull jakarta.validation.ConstraintViolationException ex, @NonNull BiConsumer<String,io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer)
      Parameters:
      action - Form action attribute
      method - Form method attribute
      instance - The Object instance which should be Introspected.
      ex - A Validation exception
      builderConsumer - A BiConsumer with the property name and the builder. It allows to consume a form element builder while the form fieldset is being generated.
      Returns:
      A Form
      Since:
      5.1.0
    • generate

      default @NonNull Form generate(@NonNull String action, @NonNull Object instance, @NonNull jakarta.validation.ConstraintViolationException ex, @NonNull BiConsumer<String,io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer)
      Generate POST form.
      Parameters:
      action - Form action attribute
      instance - The Object instance which should be Introspected.
      ex - A Validation exception
      builderConsumer - A BiConsumer with the property name and the builder. It allows to consume a form element builder while the form fieldset is being generated.
      Returns:
      A Form
      Since:
      5.1.0
    • generate

      default @NonNull Form generate(@NonNull String action, @NonNull String method, @NonNull Object instance, @NonNull jakarta.validation.ConstraintViolationException ex, @NonNull Message submitValue, @NonNull BiConsumer<String,io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer)
      Parameters:
      action - Form action attribute
      method - Form method attribute
      instance - The Object instance which should be Introspected.
      ex - A Validation exception
      submitValue - input submit
      builderConsumer - A BiConsumer with the property name and the builder. It allows to consume a form element builder while the form fieldset is being generated.
      Returns:
      A Form
      Since:
      5.1.0
    • generate

      default @NonNull Form generate(@NonNull String action, @NonNull Object instance, @NonNull jakarta.validation.ConstraintViolationException ex, @NonNull Message submitValue, @NonNull BiConsumer<String,io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer)
      Generate POST form.
      Parameters:
      action - Form action attribute
      instance - The Object instance which should be Introspected.
      ex - A Validation exception
      submitValue - input submit
      builderConsumer - A BiConsumer with the property name and the builder. It allows to consume a form element builder while the form fieldset is being generated.
      Returns:
      A Form
      Since:
      5.1.0
    • generate

      @NonNull Form generate(@NonNull String action, @NonNull String method, @NonNull Object instance, @NonNull jakarta.validation.ConstraintViolationException ex, @NonNull InputSubmitFormElement inputSubmitFormElement, @NonNull BiConsumer<String,io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer)
      Parameters:
      action - Form action attribute
      method - Form method attribute
      instance - The Object instance which should be Introspected.
      ex - A Validation exception
      inputSubmitFormElement - input submit
      builderConsumer - A BiConsumer with the property name and the builder. It allows to consume a form element builder while the form fieldset is being generated.
      Returns:
      A Form
      Since:
      5.1.0
    • generate

      default @NonNull Form generate(@NonNull String action, @NonNull Object instance, @NonNull jakarta.validation.ConstraintViolationException ex, @NonNull InputSubmitFormElement inputSubmitFormElement, @NonNull BiConsumer<String,io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer)
      Generate POST form.
      Parameters:
      action - Form action attribute
      instance - The Object instance which should be Introspected.
      ex - A Validation exception
      inputSubmitFormElement - input submit
      builderConsumer - A BiConsumer with the property name and the builder. It allows to consume a form element builder while the form fieldset is being generated.
      Returns:
      A Form
      Since:
      5.1.0
    • generate

      default <T> @NonNull Form generate(@NonNull String action, @NonNull String method, @NonNull Class<T> type, @NonNull BiConsumer<String,io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer)
      Type Parameters:
      T - type
      Parameters:
      action - Form action attribute
      method - Form method attribute
      type - A class which should be Introspected.
      builderConsumer - A BiConsumer with the property name and the builder. It allows to consume a form element builder while the form fieldset is being generated.
      Returns:
      A Form
      Since:
      5.1.0
    • generate

      default <T> @NonNull Form generate(@NonNull String action, @NonNull Class<T> type, @NonNull BiConsumer<String,io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer)
      Generate POST Form.
      Type Parameters:
      T - type
      Parameters:
      action - Form action attribute
      type - A class which should be Introspected.
      builderConsumer - A BiConsumer with the property name and the builder. It allows to consume a form element builder while the form fieldset is being generated.
      Returns:
      A Form
      Since:
      5.1.0
    • generate

      default <T> @NonNull Form generate(@NonNull String action, @NonNull String method, @NonNull Class<T> type, @NonNull Message submitValue, @NonNull BiConsumer<String,io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer)
      Type Parameters:
      T - type
      Parameters:
      action - Form action attribute
      method - Form method attribute
      type - A class which should be Introspected.
      submitValue - input submit
      builderConsumer - A BiConsumer with the property name and the builder. It allows to consume a form element builder while the form fieldset is being generated.
      Returns:
      A Form
      Since:
      5.1.0
    • generate

      default <T> @NonNull Form generate(@NonNull String action, @NonNull Class<T> type, @NonNull Message submitValue, @NonNull BiConsumer<String,io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer)
      Generate a POST Form.
      Type Parameters:
      T - type
      Parameters:
      action - Form action attribute
      type - A class which should be Introspected.
      submitValue - input submit
      builderConsumer - A BiConsumer with the property name and the builder. It allows to consume a form element builder while the form fieldset is being generated.
      Returns:
      A Form
      Since:
      5.1.0
    • generate

      <T> @NonNull Form generate(@NonNull String action, @NonNull String method, @NonNull Class<T> type, @NonNull InputSubmitFormElement inputSubmitFormElement, @NonNull BiConsumer<String,io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer)
      Type Parameters:
      T - type
      Parameters:
      action - Form action attribute
      method - Form method attribute
      type - A class which should be Introspected.
      inputSubmitFormElement - input submit
      builderConsumer - A BiConsumer with the property name and the builder. It allows to consume a form element builder while the form fieldset is being generated.
      Returns:
      A Form
      Since:
      5.1.0
    • generate

      default <T> @NonNull Form generate(@NonNull String action, @NonNull Class<T> type, @NonNull InputSubmitFormElement inputSubmitFormElement, @NonNull BiConsumer<String,io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer)
      Generate a POST form.
      Type Parameters:
      T - type
      Parameters:
      action - Form action attribute
      type - A class which should be Introspected.
      inputSubmitFormElement - input submit
      builderConsumer - A BiConsumer with the property name and the builder. It allows to consume a form element builder while the form fieldset is being generated.
      Returns:
      A Form
      Since:
      5.1.0