Class UICStop.Builder
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.Stop.Builder
-
- com.anaptecs.jeaf.junit.openapi.base.UICStop.Builder
-
- Enclosing class:
- UICStop
public static class UICStop.Builder extends Stop.Builder
Class implements builder to create a new instance of classUICStop.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()UseUICStop.builder()instead of private constructor to create new builder.protectedBuilder(UICStop pObject)UseUICStop.builder(UICStop)instead of private constructor to create new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UICStopbuild()Method creates a new instance of class UICStop.UICStopbuildValidated()Method creates a new validated instance of class UICStop.UICStop.BuildersetCode(long pCode)Method sets attributecode.UICStop.BuildersetIndex(byte pIndex)Method sets attributeStop.index.UICStop.BuildersetIndex2(byte pIndex2)Method sets attributeindex2.UICStop.BuildersetLinks(java.util.List<LinkObject> pLinks)Method sets associationStop.links.UICStop.BuildersetName(java.lang.String pName)Method sets attributeStop.name.UICStop.BuildersetPriority(int pPriority)Method sets attributepriority.UICStop.BuildersetTheSoftLink(SoftLink pTheSoftLink)Method sets associationStop.theSoftLink.UICStop.BuildersetUicCode(java.lang.String pUicCode)Method sets attributeuicCode.
-
-
-
Constructor Detail
-
Builder
protected Builder()
UseUICStop.builder()instead of private constructor to create new builder.
-
Builder
protected Builder(UICStop pObject)
UseUICStop.builder(UICStop)instead of private constructor to create new builder.
-
-
Method Detail
-
setName
public UICStop.Builder setName(java.lang.String pName)
Method sets attributeStop.name.- Overrides:
setNamein classStop.Builder- Parameters:
pName- Value to whichStop.nameshould be set.- Returns:
UICStop.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setLinks
public UICStop.Builder setLinks(java.util.List<LinkObject> pLinks)
Method sets associationStop.links.- Overrides:
setLinksin classStop.Builder- Parameters:
pLinks- Collection to whichStop.linksshould be set.- Returns:
UICStop.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setIndex
public UICStop.Builder setIndex(byte pIndex)
Method sets attributeStop.index.- Overrides:
setIndexin classStop.Builder- Parameters:
pIndex- Value to whichStop.indexshould be set.- Returns:
UICStop.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setTheSoftLink
public UICStop.Builder setTheSoftLink(SoftLink pTheSoftLink)
Method sets associationStop.theSoftLink.- Overrides:
setTheSoftLinkin classStop.Builder- Parameters:
pTheSoftLink- Value to whichStop.theSoftLinkshould be set.- Returns:
UICStop.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setUicCode
public UICStop.Builder setUicCode(java.lang.String pUicCode)
Method sets attributeuicCode.- Parameters:
pUicCode- Value to whichuicCodeshould be set.- Returns:
UICStop.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setPriority
public UICStop.Builder setPriority(int pPriority)
Method sets attributepriority.- Parameters:
pPriority- Value to whichpriorityshould be set.- Returns:
UICStop.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setCode
public UICStop.Builder setCode(long pCode)
Method sets attributecode.- Parameters:
pCode- Value to whichcodeshould be set.- Returns:
UICStop.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
setIndex2
public UICStop.Builder setIndex2(byte pIndex2)
Method sets attributeindex2.- Parameters:
pIndex2- Value to whichindex2should be set.- Returns:
UICStop.BuilderInstance of this builder to support chaining setters. Method never returns null.
-
build
public UICStop build()
Method creates a new instance of class UICStop. The object will be initialized with the values of the builder.- Overrides:
buildin classStop.Builder- Returns:
- UICStop Created object. The method never returns null.
-
buildValidated
public UICStop buildValidated() throws javax.validation.ConstraintViolationException
Method creates a new validated instance of class UICStop. The object will be initialized with the values of the builder and validated afterwards.- Overrides:
buildValidatedin classStop.Builder- Returns:
- UICStop 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.
-
-