Class TopoRef.Builder
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.PlaceRef.Builder
-
- com.anaptecs.jeaf.junit.openapi.base.TopoRef.Builder
-
- Enclosing class:
- TopoRef
public static class TopoRef.Builder extends PlaceRef.Builder
Class implements builder to create a new instance of classTopoRef.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()UseTopoRef.builder()instead of private constructor to create new builder.protectedBuilder(TopoRef pObject)UseTopoRef.builder(TopoRef)instead of private constructor to create new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TopoRefbuild()Method creates a new instance of class TopoRef.TopoRefbuildValidated()Method creates a new validated instance of class TopoRef.TopoRef.BuildersetName(java.lang.String pName)Method sets attributePlaceRef.name.
-
-
-
Constructor Detail
-
Builder
protected Builder()
UseTopoRef.builder()instead of private constructor to create new builder.
-
Builder
protected Builder(TopoRef pObject)
UseTopoRef.builder(TopoRef)instead of private constructor to create new builder.
-
-
Method Detail
-
setName
public TopoRef.Builder setName(java.lang.String pName)
Method sets attributePlaceRef.name.- Overrides:
setNamein classPlaceRef.Builder- Parameters:
pName- Value to whichPlaceRef.nameshould be set.- Returns:
TopoRef.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
build
public TopoRef build()
Method creates a new instance of class TopoRef. The object will be initialized with the values of the builder.- Returns:
- TopoRef Created object. The method never returns null.
-
buildValidated
public TopoRef buildValidated() throws javax.validation.ConstraintViolationException
Method creates a new validated instance of class TopoRef. The object will be initialized with the values of the builder and validated afterwards.- Returns:
- TopoRef Created and validated object. The method never returns null.
- Throws:
javax.validation.ConstraintViolationException- in case that one or more validations for the created object failed.
-
-