Class POI.Builder
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.Stop.Builder
-
- com.anaptecs.jeaf.junit.openapi.base.POI.Builder
-
- Enclosing class:
- POI
public static class POI.Builder extends Stop.Builder
Class implements builder to create a new instance of classPOI.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()UsePOI.builder()instead of private constructor to create new builder.protectedBuilder(POI pObject)UsePOI.builder(POI)instead of private constructor to create new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description POIbuild()Method creates a new instance of class POI.POIbuildValidated()Method creates a new validated instance of class POI.POI.BuildersetDescription(java.lang.String pDescription)Method sets attributedescription.POI.BuildersetEvenMoreLinks(java.util.Set<SoftLink> pEvenMoreLinks)Deprecated.POI.BuildersetIndex(byte pIndex)Method sets attributeStop.index.POI.BuildersetLinks(java.util.List<LinkObject> pLinks)Method sets associationStop.links.POI.BuildersetName(java.lang.String pName)Method sets attributeStop.name.POI.BuildersetTheLink(java.lang.Long pTheLink)Deprecated.POI.BuildersetTheSoftLink(SoftLink pTheSoftLink)Method sets associationStop.theSoftLink.
-
-
-
Constructor Detail
-
Builder
protected Builder()
UsePOI.builder()instead of private constructor to create new builder.
-
Builder
protected Builder(POI pObject)
UsePOI.builder(POI)instead of private constructor to create new builder.
-
-
Method Detail
-
setName
public POI.Builder setName(java.lang.String pName)
Method sets attributeStop.name.- Overrides:
setNamein classStop.Builder- Parameters:
pName- Value to whichStop.nameshould be set.- Returns:
POI.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setLinks
public POI.Builder setLinks(java.util.List<LinkObject> pLinks)
Method sets associationStop.links.- Overrides:
setLinksin classStop.Builder- Parameters:
pLinks- Collection to whichStop.linksshould be set.- Returns:
POI.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setIndex
public POI.Builder setIndex(byte pIndex)
Method sets attributeStop.index.- Overrides:
setIndexin classStop.Builder- Parameters:
pIndex- Value to whichStop.indexshould be set.- Returns:
POI.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setTheSoftLink
public POI.Builder setTheSoftLink(SoftLink pTheSoftLink)
Method sets associationStop.theSoftLink.- Overrides:
setTheSoftLinkin classStop.Builder- Parameters:
pTheSoftLink- Value to whichStop.theSoftLinkshould be set.- Returns:
POI.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setDescription
public POI.Builder setDescription(java.lang.String pDescription)
Method sets attributedescription.- Parameters:
pDescription- Value to whichdescriptionshould be set.- Returns:
POI.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setTheLink
@Deprecated public POI.Builder setTheLink(java.lang.Long pTheLink)
Deprecated.Method sets associationtheLink.- Parameters:
pTheLink- Value to whichtheLinkshould be set.- Returns:
POI.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setEvenMoreLinks
@Deprecated public POI.Builder setEvenMoreLinks(java.util.Set<SoftLink> pEvenMoreLinks)
Deprecated.Method sets associationevenMoreLinks.- Parameters:
pEvenMoreLinks- Collection to whichevenMoreLinksshould be set.- Returns:
POI.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
build
public POI build()
Method creates a new instance of class POI. The object will be initialized with the values of the builder.- Overrides:
buildin classStop.Builder- Returns:
- POI Created object. The method never returns null.
-
buildValidated
public POI buildValidated() throws javax.validation.ConstraintViolationException
Method creates a new validated instance of class POI. The object will be initialized with the values of the builder and validated afterwards.- Overrides:
buildValidatedin classStop.Builder- Returns:
- POI 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.
-
-