Class DirectedEdge.Builder
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.DirectedEdge.Builder
-
- Enclosing class:
- DirectedEdge
public static class DirectedEdge.Builder extends java.lang.ObjectClass implements builder to create a new instance of classDirectedEdge.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()UseDirectedEdge.builder()instead of private constructor to create new builder.protectedBuilder(DirectedEdge pObject)UseDirectedEdge.builder(DirectedEdge)instead of private constructor to create new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DirectedEdgebuild()Method creates a new instance of class DirectedEdge.DirectedEdgebuildValidated()Method creates a new validated instance of class DirectedEdge.DirectedEdge.BuildersetEnd(Stop pEnd)Method sets associationend.DirectedEdge.BuildersetLink(java.lang.String pLink)Method sets attributelink.DirectedEdge.BuildersetStart(Stop pStart)Method sets associationstart.
-
-
-
Constructor Detail
-
Builder
protected Builder()
UseDirectedEdge.builder()instead of private constructor to create new builder.
-
Builder
protected Builder(DirectedEdge pObject)
UseDirectedEdge.builder(DirectedEdge)instead of private constructor to create new builder.
-
-
Method Detail
-
setStart
public DirectedEdge.Builder setStart(Stop pStart)
Method sets associationstart.- Parameters:
pStart- Value to whichstartshould be set.- Returns:
DirectedEdge.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setEnd
public DirectedEdge.Builder setEnd(Stop pEnd)
Method sets associationend.- Parameters:
pEnd- Value to whichendshould be set.- Returns:
DirectedEdge.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setLink
public DirectedEdge.Builder setLink(java.lang.String pLink)
Method sets attributelink.- Parameters:
pLink- Value to whichlinkshould be set.- Returns:
DirectedEdge.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
build
public DirectedEdge build()
Method creates a new instance of class DirectedEdge. The object will be initialized with the values of the builder.- Returns:
- DirectedEdge Created object. The method never returns null.
-
buildValidated
public DirectedEdge buildValidated() throws javax.validation.ConstraintViolationException
Method creates a new validated instance of class DirectedEdge. The object will be initialized with the values of the builder and validated afterwards.- Returns:
- DirectedEdge 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.
-
-