Class VersionedObjectSoftLinkBase.BuilderBase
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.VersionedObjectSoftLinkBase.BuilderBase
-
- Direct Known Subclasses:
VersionedObjectSoftLink.Builder
- Enclosing class:
- VersionedObjectSoftLinkBase
public abstract static class VersionedObjectSoftLinkBase.BuilderBase extends java.lang.ObjectClass implements builder to create a new instance of class VersionedObjectSoftLink. 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 VersionedObjectSoftLink.builder()} instead of protected constructor to create new builder.protectedBuilderBase(VersionedObjectSoftLinkBase pObject)Use {@link VersionedObjectSoftLink.builder(VersionedObjectSoftLink)} instead of protected constructor to create new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VersionedObjectSoftLinkbuild()Method creates a new instance of class VersionedObjectSoftLink.VersionedObjectSoftLinkbuildValidated()Method creates a new validated instance of class VersionedObjectSoftLink.VersionedObjectSoftLinkBase.BuilderBasesetDataUnit(DataUnit pDataUnit)Method sets associationdataUnit.VersionedObjectSoftLinkBase.BuilderBasesetEntity(Entity pEntity)Method sets associationentity.VersionedObjectSoftLinkBase.BuilderBasesetObjectID(long pObjectID)Method sets attributeobjectID.
-
-
-
Constructor Detail
-
BuilderBase
protected BuilderBase()
Use {@link VersionedObjectSoftLink.builder()} instead of protected constructor to create new builder.
-
BuilderBase
protected BuilderBase(VersionedObjectSoftLinkBase pObject)
Use {@link VersionedObjectSoftLink.builder(VersionedObjectSoftLink)} instead of protected constructor to create new builder.
-
-
Method Detail
-
setObjectID
public VersionedObjectSoftLinkBase.BuilderBase setObjectID(long pObjectID)
Method sets attributeobjectID.- Parameters:
pObjectID- Value to whichobjectIDshould be set.- Returns:
VersionedObjectSoftLinkBase.BuilderBaseInstance of this builder to support chaining setters. Method never returns null.
-
setDataUnit
public VersionedObjectSoftLinkBase.BuilderBase setDataUnit(DataUnit pDataUnit)
Method sets associationdataUnit.- Parameters:
pDataUnit- Value to whichdataUnitshould be set.- Returns:
VersionedObjectSoftLinkBase.BuilderBaseInstance of this builder to support chaining setters. Method never returns null.
-
setEntity
public VersionedObjectSoftLinkBase.BuilderBase setEntity(Entity pEntity)
Method sets associationentity.- Parameters:
pEntity- Value to whichentityshould be set.- Returns:
VersionedObjectSoftLinkBase.BuilderBaseInstance of this builder to support chaining setters. Method never returns null.
-
build
public VersionedObjectSoftLink build()
Method creates a new instance of class VersionedObjectSoftLink. The object will be initialized with the values of the builder.- Returns:
- VersionedObjectSoftLink Created object. The method never returns null.
-
buildValidated
public VersionedObjectSoftLink buildValidated() throws javax.validation.ConstraintViolationException
Method creates a new validated instance of class VersionedObjectSoftLink. The object will be initialized with the values of the builder and validated afterwards.- Returns:
- VersionedObjectSoftLink 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.
-
-