Package io.micronaut.views.fields
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> @NonNull Form
Generate POST Form.default <T> @NonNull Form
generate
(@NonNull String action, @NonNull Class<T> type, @NonNull InputSubmitFormElement inputSubmitFormElement) Generate a POST form.default <T> @NonNull Form
Generate a POST Form.default @NonNull Form
Generate FORM Post.default @NonNull Form
generate
(@NonNull String action, @NonNull Object instance, @NonNull InputSubmitFormElement inputSubmitFormElement) Generate FORM Post.default @NonNull Form
Generate FORM Post.default @NonNull Form
generate
(@NonNull String action, @NonNull Object instance, @NonNull jakarta.validation.ConstraintViolationException ex) Generate POST form.default @NonNull Form
generate
(@NonNull String action, @NonNull Object instance, @NonNull jakarta.validation.ConstraintViolationException ex, @NonNull InputSubmitFormElement inputSubmitFormElement) Generate POST form.default @NonNull Form
generate
(@NonNull String action, @NonNull Object instance, @NonNull jakarta.validation.ConstraintViolationException ex, @NonNull Message submitValue) Generate POST form.default <T> @NonNull Form
<T> @NonNull Form
generate
(@NonNull String action, @NonNull String method, @NonNull Class<T> type, @NonNull InputSubmitFormElement inputSubmitFormElement) default <T> @NonNull Form
generate
(@NonNull String action, @NonNull String method, @NonNull Class<T> type, @NonNull Message submitValue) default @NonNull Form
@NonNull Form
generate
(@NonNull String action, @NonNull String method, @NonNull Object instance, @NonNull InputSubmitFormElement inputSubmitFormElement) default @NonNull Form
generate
(@NonNull String action, @NonNull String method, @NonNull Object instance, @NonNull Message submitValue) default @NonNull Form
generate
(@NonNull String action, @NonNull String method, @NonNull Object instance, @NonNull jakarta.validation.ConstraintViolationException ex) @NonNull Form
generate
(@NonNull String action, @NonNull String method, @NonNull Object instance, @NonNull jakarta.validation.ConstraintViolationException ex, @NonNull InputSubmitFormElement inputSubmitFormElement) default @NonNull Form
generate
(@NonNull String action, @NonNull String method, @NonNull Object instance, @NonNull jakarta.validation.ConstraintViolationException ex, @NonNull Message submitValue) default @NonNull Form
generateWithFieldset
(@NonNull String action, @NonNull Fieldset fieldset) Generate Form with fieldset.default @NonNull Form
generateWithFieldset
(@NonNull String action, @NonNull Fieldset fieldset, @NonNull Message submitValue) Generate Form with fieldset.@NonNull Form
generateWithFieldset
(@NonNull String action, @NonNull String method, @NonNull Fieldset fieldset, @NonNull InputSubmitFormElement inputSubmitFormElement) Generate FORM with fieldset.default @NonNull Form
generateWithFieldset
(@NonNull String action, @NonNull String method, @NonNull Fieldset fieldset, @NonNull Message submitValue) Generate FORM with fieldset.
-
Field Details
-
POST
Form method `post`.- See Also:
-
SUBMIT
Default Submit message.
-
-
Method Details
-
generate
@NonNull default @NonNull Form generate(@NonNull @NonNull String action, @NonNull @NonNull String method, @NonNull @NonNull Object instance) - Parameters:
action
- Form action attributemethod
- Form method attributeinstance
- The Object instance which should beIntrospected
.- Returns:
- A Form
-
generate
@NonNull default @NonNull Form generate(@NonNull @NonNull String action, @NonNull @NonNull Object instance) Generate FORM Post.- Parameters:
action
- Form action attributeinstance
- The Object instance which should beIntrospected
.- Returns:
- A Form
-
generateWithFieldset
@NonNull @NonNull Form generateWithFieldset(@NonNull @NonNull String action, @NonNull @NonNull String method, @NonNull @NonNull Fieldset fieldset, @NonNull @NonNull InputSubmitFormElement inputSubmitFormElement) Generate FORM with fieldset.- Parameters:
action
- Form action attributemethod
- Form method attributefieldset
- FieldsetinputSubmitFormElement
- input submit- Returns:
- A Form
-
generateWithFieldset
@NonNull default @NonNull Form generateWithFieldset(@NonNull @NonNull String action, @NonNull @NonNull String method, @NonNull @NonNull Fieldset fieldset, @NonNull @NonNull Message submitValue) Generate FORM with fieldset.- Parameters:
action
- Form action attributemethod
- Form method attributefieldset
- FieldsetsubmitValue
- input submit- Returns:
- A Form
-
generateWithFieldset
@NonNull default @NonNull Form generateWithFieldset(@NonNull @NonNull String action, @NonNull @NonNull Fieldset fieldset, @NonNull @NonNull Message submitValue) Generate Form with fieldset.- Parameters:
action
- Form action attributefieldset
- FieldsetsubmitValue
- input submit- Returns:
- A Form
-
generateWithFieldset
@NonNull default @NonNull Form generateWithFieldset(@NonNull @NonNull String action, @NonNull @NonNull Fieldset fieldset) Generate Form with fieldset.- Parameters:
action
- Form action attributefieldset
- Fieldset- Returns:
- A Form
-
generate
@NonNull default @NonNull Form generate(@NonNull @NonNull String action, @NonNull @NonNull String method, @NonNull @NonNull Object instance, @NonNull @NonNull Message submitValue) - Parameters:
action
- Form action attributemethod
- Form method attributeinstance
- The Object instance which should beIntrospected
.submitValue
- input submit- Returns:
- A Form
-
generate
@NonNull default @NonNull Form generate(@NonNull @NonNull String action, @NonNull @NonNull Object instance, @NonNull @NonNull Message submitValue) Generate FORM Post.- Parameters:
action
- Form action attributeinstance
- The Object instance which should beIntrospected
.submitValue
- input submit- Returns:
- A Form
-
generate
@NonNull @NonNull Form generate(@NonNull @NonNull String action, @NonNull @NonNull String method, @NonNull @NonNull Object instance, @NonNull @NonNull InputSubmitFormElement inputSubmitFormElement) - Parameters:
action
- Form action attributemethod
- Form method attributeinstance
- The Object instance which should beIntrospected
.inputSubmitFormElement
- input submit- Returns:
- A Form
-
generate
@NonNull default @NonNull Form generate(@NonNull @NonNull String action, @NonNull @NonNull Object instance, @NonNull @NonNull InputSubmitFormElement inputSubmitFormElement) Generate FORM Post.- Parameters:
action
- Form action attributeinstance
- The Object instance which should beIntrospected
.inputSubmitFormElement
- input submit- Returns:
- A Form
-
generate
@NonNull default @NonNull Form generate(@NonNull @NonNull String action, @NonNull @NonNull String method, @NonNull @NonNull Object instance, @NonNull @NonNull jakarta.validation.ConstraintViolationException ex) - Parameters:
action
- Form action attributemethod
- Form method attributeinstance
- The Object instance which should beIntrospected
.ex
- A Validation exception- Returns:
- A Form
-
generate
@NonNull default @NonNull Form generate(@NonNull @NonNull String action, @NonNull @NonNull Object instance, @NonNull @NonNull jakarta.validation.ConstraintViolationException ex) Generate POST form.- Parameters:
action
- Form action attributeinstance
- The Object instance which should beIntrospected
.ex
- A Validation exception- Returns:
- A Form
-
generate
@NonNull default @NonNull Form generate(@NonNull @NonNull String action, @NonNull @NonNull String method, @NonNull @NonNull Object instance, @NonNull @NonNull jakarta.validation.ConstraintViolationException ex, @NonNull @NonNull Message submitValue) - Parameters:
action
- Form action attributemethod
- Form method attributeinstance
- The Object instance which should beIntrospected
.ex
- A Validation exceptionsubmitValue
- input submit- Returns:
- A Form
-
generate
@NonNull default @NonNull Form generate(@NonNull @NonNull String action, @NonNull @NonNull Object instance, @NonNull @NonNull jakarta.validation.ConstraintViolationException ex, @NonNull @NonNull Message submitValue) Generate POST form.- Parameters:
action
- Form action attributeinstance
- The Object instance which should beIntrospected
.ex
- A Validation exceptionsubmitValue
- input submit- Returns:
- A Form
-
generate
@NonNull @NonNull Form generate(@NonNull @NonNull String action, @NonNull @NonNull String method, @NonNull @NonNull Object instance, @NonNull @NonNull jakarta.validation.ConstraintViolationException ex, @NonNull @NonNull InputSubmitFormElement inputSubmitFormElement) - Parameters:
action
- Form action attributemethod
- Form method attributeinstance
- The Object instance which should beIntrospected
.ex
- A Validation exceptioninputSubmitFormElement
- input submit- Returns:
- A Form
-
generate
@NonNull default @NonNull Form generate(@NonNull @NonNull String action, @NonNull @NonNull Object instance, @NonNull @NonNull jakarta.validation.ConstraintViolationException ex, @NonNull @NonNull InputSubmitFormElement inputSubmitFormElement) Generate POST form.- Parameters:
action
- Form action attributeinstance
- The Object instance which should beIntrospected
.ex
- A Validation exceptioninputSubmitFormElement
- input submit- Returns:
- A Form
-
generate
@NonNull default <T> @NonNull Form generate(@NonNull @NonNull String action, @NonNull @NonNull String method, @NonNull @NonNull Class<T> type) - Type Parameters:
T
- type- Parameters:
action
- Form action attributemethod
- Form method attributetype
- A class which should beIntrospected
.- Returns:
- A Form
-
generate
@NonNull default <T> @NonNull Form generate(@NonNull @NonNull String action, @NonNull @NonNull Class<T> type) Generate POST Form.- Type Parameters:
T
- type- Parameters:
action
- Form action attributetype
- A class which should beIntrospected
.- Returns:
- A Form
-
generate
@NonNull default <T> @NonNull Form generate(@NonNull @NonNull String action, @NonNull @NonNull String method, @NonNull @NonNull Class<T> type, @NonNull @NonNull Message submitValue) - Type Parameters:
T
- type- Parameters:
action
- Form action attributemethod
- Form method attributetype
- A class which should beIntrospected
.submitValue
- input submit- Returns:
- A Form
-
generate
@NonNull default <T> @NonNull Form generate(@NonNull @NonNull String action, @NonNull @NonNull Class<T> type, @NonNull @NonNull Message submitValue) Generate a POST Form.- Type Parameters:
T
- type- Parameters:
action
- Form action attributetype
- A class which should beIntrospected
.submitValue
- input submit- Returns:
- A Form
-
generate
@NonNull <T> @NonNull Form generate(@NonNull @NonNull String action, @NonNull @NonNull String method, @NonNull @NonNull Class<T> type, @NonNull @NonNull InputSubmitFormElement inputSubmitFormElement) - Type Parameters:
T
- type- Parameters:
action
- Form action attributemethod
- Form method attributetype
- A class which should beIntrospected
.inputSubmitFormElement
- input submit- Returns:
- A Form
-
generate
@NonNull default <T> @NonNull Form generate(@NonNull @NonNull String action, @NonNull @NonNull Class<T> type, @NonNull @NonNull InputSubmitFormElement inputSubmitFormElement) Generate a POST form.- Type Parameters:
T
- type- Parameters:
action
- Form action attributetype
- A class which should beIntrospected
.inputSubmitFormElement
- input submit- Returns:
- A Form
-