
de.vdv.ojp20.ParallelServiceStructure Maven / Gradle / Ivy
Show all versions of ojp-java-model Show documentation
//
// This file was generated by the Eclipse Implementation of JAXB, v4.0.5
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
//
package de.vdv.ojp20;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import de.vdv.ojp20.siri.DirectionRefStructure;
import de.vdv.ojp20.siri.JourneyRelationsStructure;
import de.vdv.ojp20.siri.LineRefStructure;
import de.vdv.ojp20.siri.OccupancyEnumeration;
import de.vdv.ojp20.siri.OperatorRefStructure;
import de.vdv.ojp20.siri.ProductCategoryRefStructure;
import de.vdv.ojp20.siri.ServiceFeatureRefStructure;
import de.vdv.ojp20.siri.StopPointRefStructure;
import de.vdv.ojp20.siri.VehicleFeatureRefStructure;
import de.vdv.ojp20.siri.VehicleRefStructure;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.NormalizedStringAdapter;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.opentripplanner.ojp.netex.OmitNullsToStringStyle;
/**
* Services running combined with at least parts of this journey, e.g., wing trains. The contained stop sequence interval refers to the original journey.
*
* Java class for ParallelServiceStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ParallelServiceStructure", propOrder = {
"fromStopSequenceNumber",
"toStopSequenceNumber",
"journeyRef",
"publicCode",
"lineRef",
"directionRef",
"mode",
"productCategory",
"publishedServiceName",
"trainNumber",
"vehicleRef",
"operatorRefs",
"routeDescription",
"via",
"restricted",
"restrictionNote",
"attribute",
"originStopPointRef",
"originText",
"operatorRef",
"productCategoryRef",
"serviceFeatureRef",
"vehicleFeatureRef",
"destinationStopPointRef",
"destinationText",
"unplanned",
"cancelled",
"deviation",
"undefinedDelay",
"occupancy",
"journeyRelations"
})
public class ParallelServiceStructure {
/**
* Stop sequence number, where the interval begins (inclusive). If missing, the interval begins at the beginning of the leg (or at the beginning of the journey for uses in StopEvents and TripInfo).
*
*/
@XmlElement(name = "FromStopSequenceNumber")
@XmlSchemaType(name = "positiveInteger")
protected BigInteger fromStopSequenceNumber;
/**
* Stop sequence number, where the interval ends (inclusive). If missing, the interval ends at the end of the leg (or at the end of the journey for uses in StopEvents and TripInfo).
*
*/
@XmlElement(name = "ToStopSequenceNumber")
@XmlSchemaType(name = "positiveInteger")
protected BigInteger toStopSequenceNumber;
/**
* Reference to a Journey
*
*/
@XmlElement(name = "JourneyRef", required = true)
protected JourneyRefStructure journeyRef;
/**
* Public code of the SERVICE JOURNEY (same meaning as in NeTEx). Examples: "512", "S8" or "Circle Line" or "ICE 488".
*
*/
@XmlElement(name = "PublicCode")
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
@XmlSchemaType(name = "normalizedString")
protected String publicCode;
@XmlElement(name = "LineRef", namespace = "http://www.siri.org.uk/siri", required = true)
protected LineRefStructure lineRef;
@XmlElement(name = "DirectionRef", namespace = "http://www.siri.org.uk/siri")
protected DirectionRefStructure directionRef;
/**
* [a specialisation of MODE in TMv6] an extended range of VEHICLE MODEs, aggregating them with some SUBMODEs
*
*/
@XmlElement(name = "Mode", required = true)
protected ModeStructure mode;
/**
* A product category for the service. This is a classification defined in NeTEx/SIRI used to identify groups of journeys with some special properties for marketing and fare products, e.g., "TE2" for SNCF or a special panorama train "PE" in Switzerland.
*
*/
@XmlElement(name = "ProductCategory")
protected ProductCategoryStructure productCategory;
/**
* Line name or service description as known to the public, e.g., "512", "S8" or "Circle Line" or "ICE 488".
*
*/
@XmlElement(name = "PublishedServiceName", required = true)
protected InternationalTextStructure publishedServiceName;
/**
* Contains the TrainNumber from NeTEx (TRAIN NUMBER from Transmodel). If several TrainNumber types exist, use the commercial one. In some cases also non-train modes will use TrainNumber.
*
*/
@XmlElement(name = "TrainNumber")
@XmlJavaTypeAdapter(NormalizedStringAdapter.class)
@XmlSchemaType(name = "normalizedString")
protected String trainNumber;
/**
* Contains the Vehicle reference of the vehicle. In Transmodel this may be the VEHICLE id.
*
*/
@XmlElement(name = "VehicleRef", namespace = "http://www.siri.org.uk/siri")
protected VehicleRefStructure vehicleRef;
/**
* References to the OPERATORS. Multiple OPERATORS in case a ContinuousLeg can be operated by more than one operator, especially in the ALTERNATIVE MODE OF OPERATION where there can be dozens of taxi companies and many free-floating sharing companies.
*
*/
@XmlElement(name = "OperatorRefs")
protected OperatorRefs_RelStructure operatorRefs;
/**
* Descriptive text for a route, e.g., "Airport via City Centre".
*
*/
@XmlElement(name = "RouteDescription")
protected InternationalTextStructure routeDescription;
/**
* Via points of the service that may help identify the vehicle to the public (In Transmodel modelled as TRIP REQUEST PLACE.TRIP VIA PLACE.GoVia; it will also most probably be detailed as a VIA and associated DESTINATION DISPLAY in the ROUTE description).
*
*/
@XmlElement(name = "Via")
protected List via;
/**
* This flag is set if the service can only be used in a restricted way. For example, a specific ACCESS MODE is required (e.g., dragLift) or the LINE is only made available to certain passenger groups (e.g., school buses, hotel shuttles).
*
*/
@XmlElement(name = "Restricted")
protected Boolean restricted;
/**
* Information about the restriction.
*
*/
@XmlElement(name = "RestrictionNote")
protected InternationalTextStructure restrictionNote;
/**
* Note or service attribute.
*
*/
@XmlElement(name = "Attribute")
protected List attribute;
/**
* First stop of the vehicle journey; origin stop point.
*
*/
@XmlElement(name = "OriginStopPointRef")
protected StopPointRefStructure originStopPointRef;
/**
* Label for first stop.
*
*/
@XmlElement(name = "OriginText")
protected InternationalTextStructure originText;
@XmlElement(name = "OperatorRef", namespace = "http://www.siri.org.uk/siri")
protected OperatorRefStructure operatorRef;
@XmlElement(name = "ProductCategoryRef", namespace = "http://www.siri.org.uk/siri")
protected ProductCategoryRefStructure productCategoryRef;
@XmlElement(name = "ServiceFeatureRef", namespace = "http://www.siri.org.uk/siri")
protected List serviceFeatureRef;
@XmlElement(name = "VehicleFeatureRef", namespace = "http://www.siri.org.uk/siri")
protected List vehicleFeatureRef;
/**
* Last stop of vehicle journey; destination stop point.
*
*/
@XmlElement(name = "DestinationStopPointRef")
protected StopPointRefStructure destinationStopPointRef;
/**
* Label for last stop. Should be set for classic public transport. Demand responsive and newer modes of operation will often not have a destination text.
*
*/
@XmlElement(name = "DestinationText")
protected InternationalTextStructure destinationText;
/**
* Whether this trip is an additional one that has not been planned. Default is false.
*
*/
@XmlElement(name = "Unplanned", defaultValue = "false")
protected Boolean unplanned;
/**
* Whether this trip is cancelled and will not be run. Default is false.
*
*/
@XmlElement(name = "Cancelled", defaultValue = "false")
protected Boolean cancelled;
/**
* Whether this trip deviates from the planned service pattern. Default is false.
*
*/
@XmlElement(name = "Deviation", defaultValue = "false")
protected Boolean deviation;
/**
* Whether this trip may have an undefined delay. Default is false. More details could be provided in a PtSituation.
*
*/
@XmlElement(name = "UndefinedDelay", defaultValue = "false")
protected Boolean undefinedDelay;
/**
* [equivalent to OCCUPANCY in SIRI] passenger load status of a VEHICLE. If omitted, not known.
*
*/
@XmlElement(name = "Occupancy")
@XmlSchemaType(name = "NMTOKEN")
protected OccupancyEnumeration occupancy;
/**
* Relations of the journey with other journeys, e.g., in case a joining/splitting takes place or the journey substitutes for another one etc.
*
*/
@XmlElement(name = "JourneyRelations")
protected JourneyRelationsStructure journeyRelations;
/**
* Stop sequence number, where the interval begins (inclusive). If missing, the interval begins at the beginning of the leg (or at the beginning of the journey for uses in StopEvents and TripInfo).
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getFromStopSequenceNumber() {
return fromStopSequenceNumber;
}
/**
* Sets the value of the fromStopSequenceNumber property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
* @see #getFromStopSequenceNumber()
*/
public void setFromStopSequenceNumber(BigInteger value) {
this.fromStopSequenceNumber = value;
}
/**
* Stop sequence number, where the interval ends (inclusive). If missing, the interval ends at the end of the leg (or at the end of the journey for uses in StopEvents and TripInfo).
*
* @return
* possible object is
* {@link BigInteger }
*
*/
public BigInteger getToStopSequenceNumber() {
return toStopSequenceNumber;
}
/**
* Sets the value of the toStopSequenceNumber property.
*
* @param value
* allowed object is
* {@link BigInteger }
*
* @see #getToStopSequenceNumber()
*/
public void setToStopSequenceNumber(BigInteger value) {
this.toStopSequenceNumber = value;
}
/**
* Reference to a Journey
*
* @return
* possible object is
* {@link JourneyRefStructure }
*
*/
public JourneyRefStructure getJourneyRef() {
return journeyRef;
}
/**
* Sets the value of the journeyRef property.
*
* @param value
* allowed object is
* {@link JourneyRefStructure }
*
* @see #getJourneyRef()
*/
public void setJourneyRef(JourneyRefStructure value) {
this.journeyRef = value;
}
/**
* Public code of the SERVICE JOURNEY (same meaning as in NeTEx). Examples: "512", "S8" or "Circle Line" or "ICE 488".
*
* @return
* possible object is
* {@link String }
*
*/
public String getPublicCode() {
return publicCode;
}
/**
* Sets the value of the publicCode property.
*
* @param value
* allowed object is
* {@link String }
*
* @see #getPublicCode()
*/
public void setPublicCode(String value) {
this.publicCode = value;
}
/**
* Gets the value of the lineRef property.
*
* @return
* possible object is
* {@link LineRefStructure }
*
*/
public LineRefStructure getLineRef() {
return lineRef;
}
/**
* Sets the value of the lineRef property.
*
* @param value
* allowed object is
* {@link LineRefStructure }
*
*/
public void setLineRef(LineRefStructure value) {
this.lineRef = value;
}
/**
* Gets the value of the directionRef property.
*
* @return
* possible object is
* {@link DirectionRefStructure }
*
*/
public DirectionRefStructure getDirectionRef() {
return directionRef;
}
/**
* Sets the value of the directionRef property.
*
* @param value
* allowed object is
* {@link DirectionRefStructure }
*
*/
public void setDirectionRef(DirectionRefStructure value) {
this.directionRef = value;
}
/**
* [a specialisation of MODE in TMv6] an extended range of VEHICLE MODEs, aggregating them with some SUBMODEs
*
* @return
* possible object is
* {@link ModeStructure }
*
*/
public ModeStructure getMode() {
return mode;
}
/**
* Sets the value of the mode property.
*
* @param value
* allowed object is
* {@link ModeStructure }
*
* @see #getMode()
*/
public void setMode(ModeStructure value) {
this.mode = value;
}
/**
* A product category for the service. This is a classification defined in NeTEx/SIRI used to identify groups of journeys with some special properties for marketing and fare products, e.g., "TE2" for SNCF or a special panorama train "PE" in Switzerland.
*
* @return
* possible object is
* {@link ProductCategoryStructure }
*
*/
public ProductCategoryStructure getProductCategory() {
return productCategory;
}
/**
* Sets the value of the productCategory property.
*
* @param value
* allowed object is
* {@link ProductCategoryStructure }
*
* @see #getProductCategory()
*/
public void setProductCategory(ProductCategoryStructure value) {
this.productCategory = value;
}
/**
* Line name or service description as known to the public, e.g., "512", "S8" or "Circle Line" or "ICE 488".
*
* @return
* possible object is
* {@link InternationalTextStructure }
*
*/
public InternationalTextStructure getPublishedServiceName() {
return publishedServiceName;
}
/**
* Sets the value of the publishedServiceName property.
*
* @param value
* allowed object is
* {@link InternationalTextStructure }
*
* @see #getPublishedServiceName()
*/
public void setPublishedServiceName(InternationalTextStructure value) {
this.publishedServiceName = value;
}
/**
* Contains the TrainNumber from NeTEx (TRAIN NUMBER from Transmodel). If several TrainNumber types exist, use the commercial one. In some cases also non-train modes will use TrainNumber.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTrainNumber() {
return trainNumber;
}
/**
* Sets the value of the trainNumber property.
*
* @param value
* allowed object is
* {@link String }
*
* @see #getTrainNumber()
*/
public void setTrainNumber(String value) {
this.trainNumber = value;
}
/**
* Contains the Vehicle reference of the vehicle. In Transmodel this may be the VEHICLE id.
*
* @return
* possible object is
* {@link VehicleRefStructure }
*
*/
public VehicleRefStructure getVehicleRef() {
return vehicleRef;
}
/**
* Sets the value of the vehicleRef property.
*
* @param value
* allowed object is
* {@link VehicleRefStructure }
*
* @see #getVehicleRef()
*/
public void setVehicleRef(VehicleRefStructure value) {
this.vehicleRef = value;
}
/**
* References to the OPERATORS. Multiple OPERATORS in case a ContinuousLeg can be operated by more than one operator, especially in the ALTERNATIVE MODE OF OPERATION where there can be dozens of taxi companies and many free-floating sharing companies.
*
* @return
* possible object is
* {@link OperatorRefs_RelStructure }
*
*/
public OperatorRefs_RelStructure getOperatorRefs() {
return operatorRefs;
}
/**
* Sets the value of the operatorRefs property.
*
* @param value
* allowed object is
* {@link OperatorRefs_RelStructure }
*
* @see #getOperatorRefs()
*/
public void setOperatorRefs(OperatorRefs_RelStructure value) {
this.operatorRefs = value;
}
/**
* Descriptive text for a route, e.g., "Airport via City Centre".
*
* @return
* possible object is
* {@link InternationalTextStructure }
*
*/
public InternationalTextStructure getRouteDescription() {
return routeDescription;
}
/**
* Sets the value of the routeDescription property.
*
* @param value
* allowed object is
* {@link InternationalTextStructure }
*
* @see #getRouteDescription()
*/
public void setRouteDescription(InternationalTextStructure value) {
this.routeDescription = value;
}
/**
* Via points of the service that may help identify the vehicle to the public (In Transmodel modelled as TRIP REQUEST PLACE.TRIP VIA PLACE.GoVia; it will also most probably be detailed as a VIA and associated DESTINATION DISPLAY in the ROUTE description).
*
* Gets the value of the via property.
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the via property.
*
*
* For example, to add a new item, do as follows:
*
*
* getVia().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ServiceViaPointStructure }
*
*
*
* @return
* The value of the via property.
*/
public List getVia() {
if (via == null) {
via = new ArrayList<>();
}
return this.via;
}
/**
* This flag is set if the service can only be used in a restricted way. For example, a specific ACCESS MODE is required (e.g., dragLift) or the LINE is only made available to certain passenger groups (e.g., school buses, hotel shuttles).
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isRestricted() {
return restricted;
}
/**
* Sets the value of the restricted property.
*
* @param value
* allowed object is
* {@link Boolean }
*
* @see #isRestricted()
*/
public void setRestricted(Boolean value) {
this.restricted = value;
}
/**
* Information about the restriction.
*
* @return
* possible object is
* {@link InternationalTextStructure }
*
*/
public InternationalTextStructure getRestrictionNote() {
return restrictionNote;
}
/**
* Sets the value of the restrictionNote property.
*
* @param value
* allowed object is
* {@link InternationalTextStructure }
*
* @see #getRestrictionNote()
*/
public void setRestrictionNote(InternationalTextStructure value) {
this.restrictionNote = value;
}
/**
* Note or service attribute.
*
* Gets the value of the attribute property.
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the attribute property.
*
*
* For example, to add a new item, do as follows:
*
*
* getAttribute().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link GeneralAttributeStructure }
*
*
*
* @return
* The value of the attribute property.
*/
public List getAttribute() {
if (attribute == null) {
attribute = new ArrayList<>();
}
return this.attribute;
}
/**
* First stop of the vehicle journey; origin stop point.
*
* @return
* possible object is
* {@link StopPointRefStructure }
*
*/
public StopPointRefStructure getOriginStopPointRef() {
return originStopPointRef;
}
/**
* Sets the value of the originStopPointRef property.
*
* @param value
* allowed object is
* {@link StopPointRefStructure }
*
* @see #getOriginStopPointRef()
*/
public void setOriginStopPointRef(StopPointRefStructure value) {
this.originStopPointRef = value;
}
/**
* Label for first stop.
*
* @return
* possible object is
* {@link InternationalTextStructure }
*
*/
public InternationalTextStructure getOriginText() {
return originText;
}
/**
* Sets the value of the originText property.
*
* @param value
* allowed object is
* {@link InternationalTextStructure }
*
* @see #getOriginText()
*/
public void setOriginText(InternationalTextStructure value) {
this.originText = value;
}
/**
* Gets the value of the operatorRef property.
*
* @return
* possible object is
* {@link OperatorRefStructure }
*
*/
public OperatorRefStructure getOperatorRef() {
return operatorRef;
}
/**
* Sets the value of the operatorRef property.
*
* @param value
* allowed object is
* {@link OperatorRefStructure }
*
*/
public void setOperatorRef(OperatorRefStructure value) {
this.operatorRef = value;
}
/**
* Gets the value of the productCategoryRef property.
*
* @return
* possible object is
* {@link ProductCategoryRefStructure }
*
*/
public ProductCategoryRefStructure getProductCategoryRef() {
return productCategoryRef;
}
/**
* Sets the value of the productCategoryRef property.
*
* @param value
* allowed object is
* {@link ProductCategoryRefStructure }
*
*/
public void setProductCategoryRef(ProductCategoryRefStructure value) {
this.productCategoryRef = value;
}
/**
* Gets the value of the serviceFeatureRef property.
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the serviceFeatureRef property.
*
*
* For example, to add a new item, do as follows:
*
*
* getServiceFeatureRef().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ServiceFeatureRefStructure }
*
*
*
* @return
* The value of the serviceFeatureRef property.
*/
public List getServiceFeatureRef() {
if (serviceFeatureRef == null) {
serviceFeatureRef = new ArrayList<>();
}
return this.serviceFeatureRef;
}
/**
* Gets the value of the vehicleFeatureRef property.
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the vehicleFeatureRef property.
*
*
* For example, to add a new item, do as follows:
*
*
* getVehicleFeatureRef().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link VehicleFeatureRefStructure }
*
*
*
* @return
* The value of the vehicleFeatureRef property.
*/
public List getVehicleFeatureRef() {
if (vehicleFeatureRef == null) {
vehicleFeatureRef = new ArrayList<>();
}
return this.vehicleFeatureRef;
}
/**
* Last stop of vehicle journey; destination stop point.
*
* @return
* possible object is
* {@link StopPointRefStructure }
*
*/
public StopPointRefStructure getDestinationStopPointRef() {
return destinationStopPointRef;
}
/**
* Sets the value of the destinationStopPointRef property.
*
* @param value
* allowed object is
* {@link StopPointRefStructure }
*
* @see #getDestinationStopPointRef()
*/
public void setDestinationStopPointRef(StopPointRefStructure value) {
this.destinationStopPointRef = value;
}
/**
* Label for last stop. Should be set for classic public transport. Demand responsive and newer modes of operation will often not have a destination text.
*
* @return
* possible object is
* {@link InternationalTextStructure }
*
*/
public InternationalTextStructure getDestinationText() {
return destinationText;
}
/**
* Sets the value of the destinationText property.
*
* @param value
* allowed object is
* {@link InternationalTextStructure }
*
* @see #getDestinationText()
*/
public void setDestinationText(InternationalTextStructure value) {
this.destinationText = value;
}
/**
* Whether this trip is an additional one that has not been planned. Default is false.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isUnplanned() {
return unplanned;
}
/**
* Sets the value of the unplanned property.
*
* @param value
* allowed object is
* {@link Boolean }
*
* @see #isUnplanned()
*/
public void setUnplanned(Boolean value) {
this.unplanned = value;
}
/**
* Whether this trip is cancelled and will not be run. Default is false.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isCancelled() {
return cancelled;
}
/**
* Sets the value of the cancelled property.
*
* @param value
* allowed object is
* {@link Boolean }
*
* @see #isCancelled()
*/
public void setCancelled(Boolean value) {
this.cancelled = value;
}
/**
* Whether this trip deviates from the planned service pattern. Default is false.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isDeviation() {
return deviation;
}
/**
* Sets the value of the deviation property.
*
* @param value
* allowed object is
* {@link Boolean }
*
* @see #isDeviation()
*/
public void setDeviation(Boolean value) {
this.deviation = value;
}
/**
* Whether this trip may have an undefined delay. Default is false. More details could be provided in a PtSituation.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isUndefinedDelay() {
return undefinedDelay;
}
/**
* Sets the value of the undefinedDelay property.
*
* @param value
* allowed object is
* {@link Boolean }
*
* @see #isUndefinedDelay()
*/
public void setUndefinedDelay(Boolean value) {
this.undefinedDelay = value;
}
/**
* [equivalent to OCCUPANCY in SIRI] passenger load status of a VEHICLE. If omitted, not known.
*
* @return
* possible object is
* {@link OccupancyEnumeration }
*
*/
public OccupancyEnumeration getOccupancy() {
return occupancy;
}
/**
* Sets the value of the occupancy property.
*
* @param value
* allowed object is
* {@link OccupancyEnumeration }
*
* @see #getOccupancy()
*/
public void setOccupancy(OccupancyEnumeration value) {
this.occupancy = value;
}
/**
* Relations of the journey with other journeys, e.g., in case a joining/splitting takes place or the journey substitutes for another one etc.
*
* @return
* possible object is
* {@link JourneyRelationsStructure }
*
*/
public JourneyRelationsStructure getJourneyRelations() {
return journeyRelations;
}
/**
* Sets the value of the journeyRelations property.
*
* @param value
* allowed object is
* {@link JourneyRelationsStructure }
*
* @see #getJourneyRelations()
*/
public void setJourneyRelations(JourneyRelationsStructure value) {
this.journeyRelations = value;
}
public ParallelServiceStructure withFromStopSequenceNumber(BigInteger value) {
setFromStopSequenceNumber(value);
return this;
}
public ParallelServiceStructure withToStopSequenceNumber(BigInteger value) {
setToStopSequenceNumber(value);
return this;
}
public ParallelServiceStructure withJourneyRef(JourneyRefStructure value) {
setJourneyRef(value);
return this;
}
public ParallelServiceStructure withPublicCode(String value) {
setPublicCode(value);
return this;
}
public ParallelServiceStructure withLineRef(LineRefStructure value) {
setLineRef(value);
return this;
}
public ParallelServiceStructure withDirectionRef(DirectionRefStructure value) {
setDirectionRef(value);
return this;
}
public ParallelServiceStructure withMode(ModeStructure value) {
setMode(value);
return this;
}
public ParallelServiceStructure withProductCategory(ProductCategoryStructure value) {
setProductCategory(value);
return this;
}
public ParallelServiceStructure withPublishedServiceName(InternationalTextStructure value) {
setPublishedServiceName(value);
return this;
}
public ParallelServiceStructure withTrainNumber(String value) {
setTrainNumber(value);
return this;
}
public ParallelServiceStructure withVehicleRef(VehicleRefStructure value) {
setVehicleRef(value);
return this;
}
public ParallelServiceStructure withOperatorRefs(OperatorRefs_RelStructure value) {
setOperatorRefs(value);
return this;
}
public ParallelServiceStructure withRouteDescription(InternationalTextStructure value) {
setRouteDescription(value);
return this;
}
public ParallelServiceStructure withVia(ServiceViaPointStructure... values) {
if (values!= null) {
for (ServiceViaPointStructure value: values) {
getVia().add(value);
}
}
return this;
}
public ParallelServiceStructure withVia(Collection values) {
if (values!= null) {
getVia().addAll(values);
}
return this;
}
public ParallelServiceStructure withRestricted(Boolean value) {
setRestricted(value);
return this;
}
public ParallelServiceStructure withRestrictionNote(InternationalTextStructure value) {
setRestrictionNote(value);
return this;
}
public ParallelServiceStructure withAttribute(GeneralAttributeStructure... values) {
if (values!= null) {
for (GeneralAttributeStructure value: values) {
getAttribute().add(value);
}
}
return this;
}
public ParallelServiceStructure withAttribute(Collection values) {
if (values!= null) {
getAttribute().addAll(values);
}
return this;
}
public ParallelServiceStructure withOriginStopPointRef(StopPointRefStructure value) {
setOriginStopPointRef(value);
return this;
}
public ParallelServiceStructure withOriginText(InternationalTextStructure value) {
setOriginText(value);
return this;
}
public ParallelServiceStructure withOperatorRef(OperatorRefStructure value) {
setOperatorRef(value);
return this;
}
public ParallelServiceStructure withProductCategoryRef(ProductCategoryRefStructure value) {
setProductCategoryRef(value);
return this;
}
public ParallelServiceStructure withServiceFeatureRef(ServiceFeatureRefStructure... values) {
if (values!= null) {
for (ServiceFeatureRefStructure value: values) {
getServiceFeatureRef().add(value);
}
}
return this;
}
public ParallelServiceStructure withServiceFeatureRef(Collection values) {
if (values!= null) {
getServiceFeatureRef().addAll(values);
}
return this;
}
public ParallelServiceStructure withVehicleFeatureRef(VehicleFeatureRefStructure... values) {
if (values!= null) {
for (VehicleFeatureRefStructure value: values) {
getVehicleFeatureRef().add(value);
}
}
return this;
}
public ParallelServiceStructure withVehicleFeatureRef(Collection values) {
if (values!= null) {
getVehicleFeatureRef().addAll(values);
}
return this;
}
public ParallelServiceStructure withDestinationStopPointRef(StopPointRefStructure value) {
setDestinationStopPointRef(value);
return this;
}
public ParallelServiceStructure withDestinationText(InternationalTextStructure value) {
setDestinationText(value);
return this;
}
public ParallelServiceStructure withUnplanned(Boolean value) {
setUnplanned(value);
return this;
}
public ParallelServiceStructure withCancelled(Boolean value) {
setCancelled(value);
return this;
}
public ParallelServiceStructure withDeviation(Boolean value) {
setDeviation(value);
return this;
}
public ParallelServiceStructure withUndefinedDelay(Boolean value) {
setUndefinedDelay(value);
return this;
}
public ParallelServiceStructure withOccupancy(OccupancyEnumeration value) {
setOccupancy(value);
return this;
}
public ParallelServiceStructure withJourneyRelations(JourneyRelationsStructure value) {
setJourneyRelations(value);
return this;
}
/**
* Generates a String representation of the contents of this type.
* This is an extension method, produced by the 'ts' xjc plugin
*
*/
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, OmitNullsToStringStyle.INSTANCE);
}
}