@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 as many frameworks required that.
|
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 the association "links".
|
void |
addToLinks(LinkObject pLinks)
Method adds the passed LinkObject object to the association "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)
Method creates a new builder and initializes it with the passed attributes.
|
void |
clearLinks()
Method removes all objects from the association "links".
|
byte |
getIndex()
Method returns the attribute "index".
|
List<LinkObject> |
getLinks()
Method returns the association "links".
|
String |
getName()
Method returns the attribute "name".
|
void |
removeFromLinks(LinkObject pLinks)
Method removes the passed LinkObject object from the association "links".
|
void |
setIndex(byte pIndex)
Method sets the attribute "index".
|
void |
setName(String pName)
Method sets the attribute "name".
|
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.
|
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)
public String getName()
public void setName(String pName)
pName - Value to which the attribute "name" should be set.public List<LinkObject> getLinks()
public void addToLinks(LinkObject pLinks)
pLinks - Object that should be added to the association "links". The parameter must not be null.public void addToLinks(Collection<LinkObject> pLinks)
pLinks - Collection with all objects that should be added to the association "links". The parameter must not
be null.public void removeFromLinks(LinkObject pLinks)
pLinks - Object that should be removed from the association "links". The parameter must not be null.public void clearLinks()
public byte getIndex()
public void setIndex(byte pIndex)
pIndex - Value to which the attribute "index" should be set.public StringBuilder toStringBuilder(String pIndent)
StringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2022. All rights reserved.