Package io.micronaut.views.fields
Interface FieldsetGenerator
- All Known Implementing Classes:
DefaultFieldGenerator
API to generate an HTML Fieldset representation of a give type or instance.
- Since:
- 4.1.0
- Author:
- Sergio del Amo
-
Method Summary
Modifier and TypeMethodDescription<T> @NonNull Fieldset
<T> @NonNull Fieldset
generate
(@NonNull Class<T> type, @NonNull BiConsumer<String, io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer) @NonNull Fieldset
@NonNull Fieldset
@NonNull Fieldset
generate
(@NonNull Object instance, @NonNull jakarta.validation.ConstraintViolationException ex, @NonNull BiConsumer<String, io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer) @NonNull Fieldset
generate
(@NonNull Object instance, @NonNull BiConsumer<String, io.micronaut.core.beans.BeanIntrospection.Builder<? extends FormElement>> builderConsumer)
-
Method Details
-
generate
- Type Parameters:
T
- type- Parameters:
type
- A class which should beIntrospected
.- 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 beIntrospected
.builderConsumer
- A biconsumer with the property name and the builder- Returns:
- A Fieldset
-
generate
- Parameters:
instance
- The Object instance which should beIntrospected
.- 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 beIntrospected
.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 beIntrospected
.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 beIntrospected
.ex
- A Validation exceptionbuilderConsumer
- A biconsumer with the property name and the builder- Returns:
- A Fieldset
-