Class CHStopPlace.Builder
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.PlaceRef.Builder
-
- com.anaptecs.jeaf.junit.openapi.base.StopPlaceRef.Builder
-
- com.anaptecs.jeaf.junit.openapi.base.CHStopPlace.Builder
-
- Enclosing class:
- CHStopPlace
public static class CHStopPlace.Builder extends StopPlaceRef.Builder
Class implements builder to create a new instance of classCHStopPlace.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()UseCHStopPlace.builder()instead of private constructor to create new builder.protectedBuilder(CHStopPlace pObject)UseCHStopPlace.builder(CHStopPlace)instead of private constructor to create new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CHStopPlacebuild()Method creates a new instance of class CHStopPlace.CHStopPlacebuildValidated()Method creates a new validated instance of class CHStopPlace.CHStopPlace.BuildersetName(java.lang.String pName)Method sets attributePlaceRef.name.
-
-
-
Constructor Detail
-
Builder
protected Builder()
UseCHStopPlace.builder()instead of private constructor to create new builder.
-
Builder
protected Builder(CHStopPlace pObject)
UseCHStopPlace.builder(CHStopPlace)instead of private constructor to create new builder.
-
-
Method Detail
-
setName
public CHStopPlace.Builder setName(java.lang.String pName)
Method sets attributePlaceRef.name.- Overrides:
setNamein classStopPlaceRef.Builder- Parameters:
pName- Value to whichPlaceRef.nameshould be set.- Returns:
CHStopPlace.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
build
public CHStopPlace build()
Method creates a new instance of class CHStopPlace. The object will be initialized with the values of the builder.- Returns:
- CHStopPlace Created object. The method never returns null.
-
buildValidated
public CHStopPlace buildValidated() throws javax.validation.ConstraintViolationException
Method creates a new validated instance of class CHStopPlace. The object will be initialized with the values of the builder and validated afterwards.- Returns:
- CHStopPlace 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.
-
-