Class VersionedObjectSoftLinkBase
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.VersionedObjectSoftLinkBase
-
- All Implemented Interfaces:
com.anaptecs.jeaf.core.api.ServiceObject,java.io.Serializable
- Direct Known Subclasses:
VersionedObjectSoftLink
@Valid public abstract class VersionedObjectSoftLinkBase extends java.lang.Object implements com.anaptecs.jeaf.core.api.ServiceObject- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVersionedObjectSoftLinkBase.BuilderBaseClass implements builder to create a new instance of class VersionedObjectSoftLink.
-
Constructor Summary
Constructors Modifier Constructor Description protectedVersionedObjectSoftLinkBase()Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.protectedVersionedObjectSoftLinkBase(VersionedObjectSoftLinkBase.BuilderBase pBuilder)Initialize object using the passed builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataUnitgetDataUnit()Method returns associationdataUnit.EntitygetEntity()Method returns associationentity.longgetObjectID()Method returns attributeobjectID.
Internal ID of a versioned objectvoidsetDataUnit(DataUnit pDataUnit)Method sets associationdataUnit.voidsetEntity(Entity pEntity)Method sets associationentity.java.lang.StringtoString()Method creates a new String with the values of all attributes of this class.java.lang.StringBuildertoStringBuilder(java.lang.String pIndent)Method returns a StringBuilder that can be used to create a String representation of this object.voidunsetDataUnit()Method unsetsdataUnit.voidunsetEntity()Method unsetsentity.
-
-
-
Constructor Detail
-
VersionedObjectSoftLinkBase
protected VersionedObjectSoftLinkBase()
Default constructor is only intended to be used for deserialization by tools like Jackson for JSON. For "normal" object creation builder should be used instead.
-
VersionedObjectSoftLinkBase
protected VersionedObjectSoftLinkBase(VersionedObjectSoftLinkBase.BuilderBase pBuilder)
Initialize object using the passed builder.- Parameters:
pBuilder- Builder that should be used to initialize this object. The parameter must not be null.
-
-
Method Detail
-
getObjectID
public long getObjectID()
Method returns attributeobjectID.
Internal ID of a versioned object- Returns:
- long Value to which
objectIDis set.
-
setDataUnit
public void setDataUnit(DataUnit pDataUnit)
Method sets associationdataUnit.- Parameters:
pDataUnit- Value to whichdataUnitshould be set.
-
unsetDataUnit
public final void unsetDataUnit()
Method unsetsdataUnit.
-
setEntity
public void setEntity(Entity pEntity)
Method sets associationentity.- Parameters:
pEntity- Value to whichentityshould be set.
-
unsetEntity
public final void unsetEntity()
Method unsetsentity.
-
toStringBuilder
public java.lang.StringBuilder toStringBuilder(java.lang.String pIndent)
Method returns a StringBuilder that can be used to create a String representation of this object. The returned StringBuilder also takes care about attributes of super classes.- Returns:
StringBuilderStringBuilder representing this object. The method never returns null.
-
toString
public java.lang.String toString()
Method creates a new String with the values of all attributes of this class. All references to other objects will be ignored.- Overrides:
toStringin classjava.lang.Object- Returns:
StringString representation of this object. The method never returns null.
-
-