@Valid public class Stop extends Object implements com.anaptecs.jeaf.core.api.ServiceObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Stop.Builder
Class implements builder to create a new instance of class
Stop. |
| Modifier | Constructor and Description |
|---|---|
protected |
Stop()
Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.
|
protected |
Stop(Stop.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToLinks(Collection<LinkObject> pLinks)
Method adds all passed objects to
links. |
void |
addToLinks(LinkObject pLinks)
Method adds the passed object to
links. |
static Stop.Builder |
builder()
Method returns a new builder.
|
static Stop.Builder |
builder(Stop pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
static Stop.Builder |
builder(String pName,
byte pIndex,
SoftLink pTheSoftLink)
Method creates a new builder and initializes it with the passed attributes.
|
void |
clearLinks()
Method removes all objects from
links. |
byte |
getIndex()
Method returns attribute
index. |
List<LinkObject> |
getLinks()
Method returns association
links. |
String |
getName()
Method returns attribute
name. |
SoftLink |
getTheSoftLink()
Method returns association
theSoftLink. |
void |
removeFromLinks(LinkObject pLinks)
Method removes the passed object from
links. |
void |
setIndex(byte pIndex)
Method sets attribute
index. |
void |
setName(String pName)
Method sets attribute
name. |
void |
setTheSoftLink(SoftLink pTheSoftLink)
Method sets association
theSoftLink. |
String |
toString()
Method creates a new String with the values of all attributes of this class.
|
StringBuilder |
toStringBuilder(String pIndent)
Method returns a StringBuilder that can be used to create a String representation of this object.
|
void |
unsetTheSoftLink()
Method unsets
theSoftLink. |
protected Stop()
protected Stop(Stop.Builder pBuilder)
pBuilder - Builder that should be used to initialize this object. The parameter must not be null.public static Stop.Builder builder()
Stop.Builder New builder that can be used to create new Stop objects.public static Stop.Builder builder(Stop pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.Stop.Builder New builder that can be used to create new Stop objects. The method never returns null.public static Stop.Builder builder(String pName, byte pIndex, SoftLink pTheSoftLink)
public void setName(String pName)
name.pName - Value to which name should be set.public List<LinkObject> getLinks()
links.List Value to which links is set. The method never returns null and the
returned collection is modifiable.public void addToLinks(LinkObject pLinks)
links.pLinks - Object that should be added to links. The parameter must not be null.public void addToLinks(Collection<LinkObject> pLinks)
links.pLinks - Collection with all objects that should be added to links. The parameter must not be null.public void removeFromLinks(LinkObject pLinks)
links.pLinks - Object that should be removed from links. The parameter must not be null.public void clearLinks()
links.public byte getIndex()
index.index is set.public void setIndex(byte pIndex)
index.pIndex - Value to which index should be set.public SoftLink getTheSoftLink()
theSoftLink.theSoftLink is
LinkObjectSoftLink Value to which theSoftLink is set.public void setTheSoftLink(SoftLink pTheSoftLink)
theSoftLink.pTheSoftLink - Value to which theSoftLink should be set.public final void unsetTheSoftLink()
theSoftLink.public StringBuilder toStringBuilder(String pIndent)
StringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2023. All rights reserved.