Class NumericAttributeDefinition.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<NumericAttributeDefinition>
co.yellowdog.platform.model.NumericAttributeDefinition.Builder
- Enclosing class:
NumericAttributeDefinition
public static class NumericAttributeDefinition.Builder
extends ValidatedBuilder<NumericAttributeDefinition>
A builder that can be used to build a new NumericAttributeDefinition that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the object without enforcing validation constraints.defaultRankOrder(NumericAttributeRankOrder defaultRankOrder) description(String description) options(Collection<? extends @NotNull Number> options) range(NumericAttributeRange range) toString()Methods inherited from class ValidatedBuilder
build, validateModifier and TypeMethodDescriptionbuild()Builds and validates the object.Set<jakarta.validation.ConstraintViolation<NumericAttributeDefinition>> 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<NumericAttributeDefinition>- Returns:
- the object being built
-
name
- Returns:
this.
-
title
- Returns:
this.
-
defaultRankOrder
public NumericAttributeDefinition.Builder defaultRankOrder(NumericAttributeRankOrder defaultRankOrder) - Returns:
this.
-
description
- Returns:
this.
-
units
- Returns:
this.
-
range
- Returns:
this.
-
option
-
options
-
clearOptions
-
toString
-