| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
EnumTest.builder() instead of private constructor to create new builder. |
protected |
Builder(EnumTest pObject)
Use
EnumTest.builder(EnumTest) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
EnumTest |
build()
Method creates a new instance of class EnumTest.
|
EnumTest |
buildValidated()
Method creates a new validated instance of class EnumTest.
|
EnumTest.Builder |
setEnumRef(ExtensibleEnum pEnumRef)
Method sets association
enumRef. |
EnumTest.Builder |
setProperty(ExtensibleEnum pProperty)
Method sets attribute
property. |
protected Builder()
EnumTest.builder() instead of private constructor to create new builder.protected Builder(EnumTest pObject)
EnumTest.builder(EnumTest) instead of private constructor to create new builder.public EnumTest.Builder setProperty(ExtensibleEnum pProperty)
property.pProperty - Value to which property should be set.EnumTest.Builder Instance of this builder to support chaining setters. Method never returns null.public EnumTest.Builder setEnumRef(ExtensibleEnum pEnumRef)
enumRef.pEnumRef - Value to which enumRef should be set.EnumTest.Builder Instance of this builder to support chaining setters. Method never returns null.public EnumTest build()
public EnumTest buildValidated() throws javax.validation.ConstraintViolationException
javax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.Copyright © 2023. All rights reserved.