@Valid public class Leg extends Object implements com.anaptecs.jeaf.core.api.ServiceObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Leg.Builder
Class implements builder to create a new instance of class Leg.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Leg()
Default constructor is only intended to be used for deserialization as many frameworks required that.
|
protected |
Leg(Leg.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addToStopovers(Collection<PlaceRef> pStopovers)
Method adds all passed objects to the association "stopovers".
|
void |
addToStopovers(PlaceRef pStopovers)
Method adds the passed PlaceRef object to the association "stopovers".
|
static Leg.Builder |
builder()
Method returns a new builder.
|
static Leg.Builder |
builder(Leg pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
void |
clearStopovers()
Method removes all objects from the association "stopovers".
|
PlaceRef |
getStart()
Method returns the association "start".
|
PlaceRef |
getStop()
Method returns the association "stop".
|
List<PlaceRef> |
getStopovers()
Method returns the association "stopovers".
|
void |
removeFromStopovers(PlaceRef pStopovers)
Method removes the passed PlaceRef object from the association "stopovers".
|
void |
setStart(PlaceRef pStart)
Method sets the association "start".
|
void |
setStop(PlaceRef pStop)
Method sets the association "stop".
|
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 |
unsetStart()
Method unsets the association "start".
|
void |
unsetStop()
Method unsets the association "stop".
|
protected Leg()
protected Leg(Leg.Builder pBuilder)
pBuilder - Builder that should be used to initialize this object. The parameter must not be null.public static Leg.Builder builder()
Leg.Builder New builder that can be used to create new Leg objects.public static Leg.Builder builder(Leg pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.Leg.Builder New builder that can be used to create new Leg objects. The method never returns null.public PlaceRef getStart()
public void setStart(PlaceRef pStart)
pStart - PlaceRef to which the association "start" should be set.public final void unsetStart()
public PlaceRef getStop()
public void setStop(PlaceRef pStop)
pStop - PlaceRef to which the association "stop" should be set.public final void unsetStop()
public List<PlaceRef> getStopovers()
public void addToStopovers(PlaceRef pStopovers)
pStopovers - Object that should be added to the association "stopovers". The parameter must not be null.public void addToStopovers(Collection<PlaceRef> pStopovers)
pStopovers - Collection with all objects that should be added to the association "stopovers". The parameter
must not be null.public void removeFromStopovers(PlaceRef pStopovers)
pStopovers - Object that should be removed from the association "stopovers". The parameter must not be null.public void clearStopovers()
public StringBuilder toStringBuilder(String pIndent)
StringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2022. All rights reserved.