Class ChannelBase.BuilderBase
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.ChannelBase.BuilderBase
-
- Direct Known Subclasses:
Channel.Builder
- Enclosing class:
- ChannelBase
public abstract static class ChannelBase.BuilderBase extends java.lang.ObjectClass implements builder to create a new instance of class Channel. As the class has read only attributes or associations instances can not be created directly. Instead this builder class has to be used.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilderBase()Use {@link Channel.builder()} instead of protected constructor to create new builder.protectedBuilderBase(ChannelBase pObject)Use {@link Channel.builder(Channel)} instead of protected constructor to create new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Channelbuild()Method creates a new instance of class Channel.ChannelbuildValidated()Method creates a new validated instance of class Channel.ChannelBase.BuilderBasesetChannelCode(ChannelCode pChannelCode)Method sets associationchannelCode.ChannelBase.BuilderBasesetChannelType(ChannelType pChannelType)Method sets associationchannelType.ChannelBase.BuilderBasesetCode(int pCode)Method sets attributecode.ChannelBase.BuilderBasesetReseller(Reseller pReseller)Method sets associationreseller.ChannelBase.BuilderBasesetSelfServiceChannel(boolean pSelfServiceChannel)Method sets attributeselfServiceChannel.
-
-
-
Constructor Detail
-
BuilderBase
protected BuilderBase()
Use {@link Channel.builder()} instead of protected constructor to create new builder.
-
BuilderBase
protected BuilderBase(ChannelBase pObject)
Use {@link Channel.builder(Channel)} instead of protected constructor to create new builder.
-
-
Method Detail
-
setChannelType
public ChannelBase.BuilderBase setChannelType(ChannelType pChannelType)
Method sets associationchannelType.- Parameters:
pChannelType- Value to whichchannelTypeshould be set.- Returns:
ChannelBase.BuilderBaseInstance of this builder to support chaining setters. Method never returns null.
-
setChannelCode
public ChannelBase.BuilderBase setChannelCode(ChannelCode pChannelCode)
Method sets associationchannelCode.- Parameters:
pChannelCode- Value to whichchannelCodeshould be set.- Returns:
ChannelBase.BuilderBaseInstance of this builder to support chaining setters. Method never returns null.
-
setCode
public ChannelBase.BuilderBase setCode(int pCode)
Method sets attributecode.- Parameters:
pCode- Value to whichcodeshould be set.- Returns:
ChannelBase.BuilderBaseInstance of this builder to support chaining setters. Method never returns null.
-
setSelfServiceChannel
public ChannelBase.BuilderBase setSelfServiceChannel(boolean pSelfServiceChannel)
Method sets attributeselfServiceChannel.- Parameters:
pSelfServiceChannel- Value to whichselfServiceChannelshould be set.- Returns:
ChannelBase.BuilderBaseInstance of this builder to support chaining setters. Method never returns null.
-
setReseller
public ChannelBase.BuilderBase setReseller(Reseller pReseller)
Method sets associationreseller.- Parameters:
pReseller- Value to whichresellershould be set.- Returns:
ChannelBase.BuilderBaseInstance of this builder to support chaining setters. Method never returns null.
-
build
public Channel build()
Method creates a new instance of class Channel. The object will be initialized with the values of the builder.- Returns:
- Channel Created object. The method never returns null.
-
buildValidated
public Channel buildValidated() throws javax.validation.ConstraintViolationException
Method creates a new validated instance of class Channel. The object will be initialized with the values of the builder and validated afterwards.- Returns:
- Channel 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.
-
-