Class Stop
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.Stop
-
- All Implemented Interfaces:
com.anaptecs.jeaf.core.api.ServiceObject,java.io.Serializable
@Valid public class Stop 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 classStop.BuilderClass implements builder to create a new instance of classStop.
-
Constructor Summary
Constructors Modifier Constructor Description protectedStop()Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.protectedStop(Stop.Builder pBuilder)Initialize object using the passed builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToLinks(LinkObject pLinks)Method adds the passed object tolinks.voidaddToLinks(java.util.Collection<LinkObject> pLinks)Method adds all passed objects tolinks.static Stop.Builderbuilder()Method returns a new builder.static Stop.Builderbuilder(Stop pObject)Method creates a new builder and initialize it with the data from the passed object.static Stop.Builderbuilder(java.lang.String pName, byte pIndex, SoftLink pTheSoftLink)Method creates a new builder and initializes it with the passed attributes.voidclearLinks()Method removes all objects fromlinks.bytegetIndex()Method returns attributeindex.java.util.List<LinkObject>getLinks()Method returns associationlinks.java.lang.StringgetName()Method returns attributename.SoftLinkgetTheSoftLink()Method returns associationtheSoftLink.voidremoveFromLinks(LinkObject pLinks)Method removes the passed object fromlinks.voidsetIndex(byte pIndex)Method sets attributeindex.voidsetName(java.lang.String pName)Method sets attributename.voidsetTheSoftLink(SoftLink pTheSoftLink)Method sets associationtheSoftLink.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.voidunsetTheSoftLink()Method unsetstheSoftLink.
-
-
-
Constructor Detail
-
Stop
protected Stop()
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.
-
Stop
protected Stop(Stop.Builder 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
-
builder
public static Stop.Builder builder()
Method returns a new builder.- Returns:
Stop.BuilderNew builder that can be used to create new Stop objects.
-
builder
public static Stop.Builder builder(Stop pObject)
Method creates a new builder and initialize it with the data from the passed object.- Parameters:
pObject- Object that should be used to initialize the builder. The parameter may be null.- Returns:
Stop.BuilderNew builder that can be used to create new Stop objects. The method never returns null.
-
builder
public static Stop.Builder builder(java.lang.String pName, byte pIndex, SoftLink pTheSoftLink)
Method creates a new builder and initializes it with the passed attributes.
-
getName
public java.lang.String getName()
Method returns attributename.- Returns:
StringValue to whichnameis set.
-
setName
public void setName(java.lang.String pName)
Method sets attributename.- Parameters:
pName- Value to whichnameshould be set.
-
getLinks
public java.util.List<LinkObject> getLinks()
Method returns associationlinks.- Returns:
ListValue to whichlinksis set. The method never returns null and the returned collection is modifiable.
-
addToLinks
public void addToLinks(LinkObject pLinks)
Method adds the passed object tolinks.- Parameters:
pLinks- Object that should be added tolinks. The parameter must not be null.
-
addToLinks
public void addToLinks(java.util.Collection<LinkObject> pLinks)
Method adds all passed objects tolinks.- Parameters:
pLinks- Collection with all objects that should be added tolinks. The parameter must not be null.
-
removeFromLinks
public void removeFromLinks(LinkObject pLinks)
Method removes the passed object fromlinks.- Parameters:
pLinks- Object that should be removed fromlinks. The parameter must not be null.
-
clearLinks
public void clearLinks()
Method removes all objects fromlinks.
-
getIndex
public byte getIndex()
Method returns attributeindex.- Returns:
- byte Value to which
indexis set.
-
setIndex
public void setIndex(byte pIndex)
Method sets attributeindex.- Parameters:
pIndex- Value to whichindexshould be set.
-
getTheSoftLink
public SoftLink getTheSoftLink()
Method returns associationtheSoftLink.
This class uses so called soft links for decoupling. The actual type that is hidden bytheSoftLinkisLinkObject- Returns:
SoftLinkValue to whichtheSoftLinkis set.
-
setTheSoftLink
public void setTheSoftLink(SoftLink pTheSoftLink)
Method sets associationtheSoftLink.- Parameters:
pTheSoftLink- Value to whichtheSoftLinkshould be set.
-
unsetTheSoftLink
public final void unsetTheSoftLink()
Method unsetstheSoftLink.
-
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.
-
-