Class StringAttributeConstraint.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<StringAttributeConstraint>
co.yellowdog.platform.model.StringAttributeConstraint.Builder
- Enclosing class:
StringAttributeConstraint
public static class StringAttributeConstraint.Builder
extends ValidatedBuilder<StringAttributeConstraint>
A builder that can be used to build a new StringAttributeConstraint.
-
Method Summary
Modifier and TypeMethodDescriptionanyOf(Collection<?> anyOf) Builds the object without enforcing validation constraints.noneOf(Collection<?> noneOf) toString()Methods inherited from class ValidatedBuilder
build, validateModifier and TypeMethodDescriptionbuild()Builds and validates the object.Set<jakarta.validation.ConstraintViolation<StringAttributeConstraint>> validate()Performs validation based on the current builder properties and returns the ConstraintViolations without throwing.
-
Method Details
-
anyOf
-
anyOf
-
noneOf
-
noneOf
-
attribute
- Returns:
this.
-
pattern
- Returns:
this.
-
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<StringAttributeConstraint>- Returns:
- the object being built
-
toString
-