Class Stop.Builder
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.Stop.Builder
-
- Direct Known Subclasses:
POI.Builder,UICStop.Builder
- Enclosing class:
- Stop
public static class Stop.Builder extends java.lang.ObjectClass implements builder to create a new instance of classStop.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()UseStop.builder()instead of private constructor to create new builder.protectedBuilder(Stop pObject)UseStop.builder(Stop)instead of private constructor to create new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stopbuild()Method creates a new instance of class Stop.StopbuildValidated()Method creates a new validated instance of class Stop.Stop.BuildersetIndex(byte pIndex)Method sets attributeindex.Stop.BuildersetLinks(java.util.List<LinkObject> pLinks)Method sets associationlinks.Stop.BuildersetName(java.lang.String pName)Method sets attributename.Stop.BuildersetTheSoftLink(SoftLink pTheSoftLink)Method sets associationtheSoftLink.
-
-
-
Constructor Detail
-
Builder
protected Builder()
UseStop.builder()instead of private constructor to create new builder.
-
Builder
protected Builder(Stop pObject)
UseStop.builder(Stop)instead of private constructor to create new builder.
-
-
Method Detail
-
setName
public Stop.Builder setName(java.lang.String pName)
Method sets attributename.- Parameters:
pName- Value to whichnameshould be set.- Returns:
Stop.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setLinks
public Stop.Builder setLinks(java.util.List<LinkObject> pLinks)
Method sets associationlinks.- Parameters:
pLinks- Collection to whichlinksshould be set.- Returns:
Stop.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setIndex
public Stop.Builder setIndex(byte pIndex)
Method sets attributeindex.- Parameters:
pIndex- Value to whichindexshould be set.- Returns:
Stop.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setTheSoftLink
public Stop.Builder setTheSoftLink(SoftLink pTheSoftLink)
Method sets associationtheSoftLink.- Parameters:
pTheSoftLink- Value to whichtheSoftLinkshould be set.- Returns:
Stop.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
build
public Stop build()
Method creates a new instance of class Stop. The object will be initialized with the values of the builder.- Returns:
- Stop Created object. The method never returns null.
-
buildValidated
public Stop buildValidated() throws javax.validation.ConstraintViolationException
Method creates a new validated instance of class Stop. The object will be initialized with the values of the builder and validated afterwards.- Returns:
- Stop 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.
-
-