Class StringAttributeDefinition.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<StringAttributeDefinition>
co.yellowdog.platform.model.StringAttributeDefinition.Builder
- Enclosing class:
StringAttributeDefinition
public static class StringAttributeDefinition.Builder
extends ValidatedBuilder<StringAttributeDefinition>
A builder that can be used to build a new StringAttributeDefinition that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the object without enforcing validation constraints.description(String description) options(Collection<? extends @NotBlank String> options) toString()Methods inherited from class ValidatedBuilder
build, validateModifier and TypeMethodDescriptionbuild()Builds and validates the object.Set<jakarta.validation.ConstraintViolation<StringAttributeDefinition>> validate()Performs validation based on the current builder properties and returns the ConstraintViolations without throwing.
-
Method Details
-
buildUnchecked
Description copied from class:ValidatedBuilderBuilds the object without enforcing validation constraints. Use this when the object is validated later, for example as part of an enclosing object built withValidatedBuilder.build(), or when it does not need to be valid on its own.- Overrides:
buildUncheckedin classValidatedBuilder<StringAttributeDefinition>- Returns:
- the object being built
-
name
- Returns:
this.
-
title
- Returns:
this.
-
description
- Returns:
this.
-
option
-
options
-
clearOptions
-
toString
-