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 co.yellowdog.platform.model.builders.ValidatedBuilder
build, validate
-
Method Details
-
buildUnchecked
Description copied from class:ValidatedBuilder
Builds the object without enforcing validation constraints. This should only be used for testing purposes- Overrides:
buildUnchecked
in classValidatedBuilder<StringAttributeDefinition>
- Returns:
- the object being built
-
name
- Returns:
this
.
-
title
- Returns:
this
.
-
description
- Returns:
this
.
-
option
-
options
-
clearOptions
-
toString
-