
de.vdv.ojp20.DatedJourneyStructure 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.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;
/**
* [equivalent to DATED VEHICLE JOURNEY in TMv6] passenger carrying VEHICLE JOURNEY for one specified DAY TYPE for which the pattern of working is in principle defined by a SERVICE JOURNEY PATTERN. DatedJourney details of a service include its operating days.
*
* Java class for DatedJourneyStructure complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DatedJourneyStructure", propOrder = {
"conventionalModeOfOperation",
"operatingDayRef",
"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",
"trainElements",
"trains",
"compoundTrains",
"bookingArrangements",
"reservationNeeded",
"situationFullRefs",
"extension"
})
public class DatedJourneyStructure {
/**
* MODE OF OPERATION for scheduled and flexible services (NeTEx).
*
*/
@XmlElement(name = "ConventionalModeOfOperation", defaultValue = "scheduled")
@XmlSchemaType(name = "string")
protected ConventionalModesOfOperationEnumeration conventionalModeOfOperation;
/**
* Reference to an OPERATING DAY.
*
*/
@XmlElement(name = "OperatingDayRef")
protected OperatingDayRefStructure operatingDayRef;
/**
* Reference to a Journey
*
*/
@XmlElement(name = "JourneyRef")
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")
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")
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")
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;
@XmlElement(name = "TrainElements", namespace = "http://www.siri.org.uk/siri")
protected de.vdv.ojp20.siri.MonitoredVehicleJourneyStructure.TrainElements trainElements;
@XmlElement(name = "Trains", namespace = "http://www.siri.org.uk/siri")
protected de.vdv.ojp20.siri.MonitoredVehicleJourneyStructure.Trains trains;
@XmlElement(name = "CompoundTrains", namespace = "http://www.siri.org.uk/siri")
protected de.vdv.ojp20.siri.MonitoredVehicleJourneyStructure.CompoundTrains compoundTrains;
/**
* Container with information on booking possibilities for this service.
*
*/
@XmlElement(name = "BookingArrangements")
protected BookingArrangementsContainerStructure bookingArrangements;
/**
* Indicates whether this service needs some kind of reservation or booking to run.
*
*/
@XmlElement(name = "ReservationNeeded", defaultValue = "none")
@XmlSchemaType(name = "string")
protected ReservationNeededEnumeration reservationNeeded;
/**
* A list of references to SITUATIONs.
*
*/
@XmlElement(name = "SituationFullRefs")
protected SituationRefList situationFullRefs;
@XmlElement(name = "Extension")
protected Object extension;
/**
* MODE OF OPERATION for scheduled and flexible services (NeTEx).
*
* @return
* possible object is
* {@link ConventionalModesOfOperationEnumeration }
*
*/
public ConventionalModesOfOperationEnumeration getConventionalModeOfOperation() {
return conventionalModeOfOperation;
}
/**
* Sets the value of the conventionalModeOfOperation property.
*
* @param value
* allowed object is
* {@link ConventionalModesOfOperationEnumeration }
*
* @see #getConventionalModeOfOperation()
*/
public void setConventionalModeOfOperation(ConventionalModesOfOperationEnumeration value) {
this.conventionalModeOfOperation = value;
}
/**
* Reference to an OPERATING DAY.
*
* @return
* possible object is
* {@link OperatingDayRefStructure }
*
*/
public OperatingDayRefStructure getOperatingDayRef() {
return operatingDayRef;
}
/**
* Sets the value of the operatingDayRef property.
*
* @param value
* allowed object is
* {@link OperatingDayRefStructure }
*
* @see #getOperatingDayRef()
*/
public void setOperatingDayRef(OperatingDayRefStructure value) {
this.operatingDayRef = 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;
}
/**
* Gets the value of the trainElements property.
*
* @return
* possible object is
* {@link de.vdv.ojp20.siri.MonitoredVehicleJourneyStructure.TrainElements }
*
*/
public de.vdv.ojp20.siri.MonitoredVehicleJourneyStructure.TrainElements getTrainElements() {
return trainElements;
}
/**
* Sets the value of the trainElements property.
*
* @param value
* allowed object is
* {@link de.vdv.ojp20.siri.MonitoredVehicleJourneyStructure.TrainElements }
*
*/
public void setTrainElements(de.vdv.ojp20.siri.MonitoredVehicleJourneyStructure.TrainElements value) {
this.trainElements = value;
}
/**
* Gets the value of the trains property.
*
* @return
* possible object is
* {@link de.vdv.ojp20.siri.MonitoredVehicleJourneyStructure.Trains }
*
*/
public de.vdv.ojp20.siri.MonitoredVehicleJourneyStructure.Trains getTrains() {
return trains;
}
/**
* Sets the value of the trains property.
*
* @param value
* allowed object is
* {@link de.vdv.ojp20.siri.MonitoredVehicleJourneyStructure.Trains }
*
*/
public void setTrains(de.vdv.ojp20.siri.MonitoredVehicleJourneyStructure.Trains value) {
this.trains = value;
}
/**
* Gets the value of the compoundTrains property.
*
* @return
* possible object is
* {@link de.vdv.ojp20.siri.MonitoredVehicleJourneyStructure.CompoundTrains }
*
*/
public de.vdv.ojp20.siri.MonitoredVehicleJourneyStructure.CompoundTrains getCompoundTrains() {
return compoundTrains;
}
/**
* Sets the value of the compoundTrains property.
*
* @param value
* allowed object is
* {@link de.vdv.ojp20.siri.MonitoredVehicleJourneyStructure.CompoundTrains }
*
*/
public void setCompoundTrains(de.vdv.ojp20.siri.MonitoredVehicleJourneyStructure.CompoundTrains value) {
this.compoundTrains = value;
}
/**
* Container with information on booking possibilities for this service.
*
* @return
* possible object is
* {@link BookingArrangementsContainerStructure }
*
*/
public BookingArrangementsContainerStructure getBookingArrangements() {
return bookingArrangements;
}
/**
* Sets the value of the bookingArrangements property.
*
* @param value
* allowed object is
* {@link BookingArrangementsContainerStructure }
*
* @see #getBookingArrangements()
*/
public void setBookingArrangements(BookingArrangementsContainerStructure value) {
this.bookingArrangements = value;
}
/**
* Indicates whether this service needs some kind of reservation or booking to run.
*
* @return
* possible object is
* {@link ReservationNeededEnumeration }
*
*/
public ReservationNeededEnumeration getReservationNeeded() {
return reservationNeeded;
}
/**
* Sets the value of the reservationNeeded property.
*
* @param value
* allowed object is
* {@link ReservationNeededEnumeration }
*
* @see #getReservationNeeded()
*/
public void setReservationNeeded(ReservationNeededEnumeration value) {
this.reservationNeeded = value;
}
/**
* A list of references to SITUATIONs.
*
* @return
* possible object is
* {@link SituationRefList }
*
*/
public SituationRefList getSituationFullRefs() {
return situationFullRefs;
}
/**
* Sets the value of the situationFullRefs property.
*
* @param value
* allowed object is
* {@link SituationRefList }
*
* @see #getSituationFullRefs()
*/
public void setSituationFullRefs(SituationRefList value) {
this.situationFullRefs = value;
}
/**
* Gets the value of the extension property.
*
* @return
* possible object is
* {@link Object }
*
*/
public Object getExtension() {
return extension;
}
/**
* Sets the value of the extension property.
*
* @param value
* allowed object is
* {@link Object }
*
*/
public void setExtension(Object value) {
this.extension = value;
}
public DatedJourneyStructure withConventionalModeOfOperation(ConventionalModesOfOperationEnumeration value) {
setConventionalModeOfOperation(value);
return this;
}
public DatedJourneyStructure withOperatingDayRef(OperatingDayRefStructure value) {
setOperatingDayRef(value);
return this;
}
public DatedJourneyStructure withJourneyRef(JourneyRefStructure value) {
setJourneyRef(value);
return this;
}
public DatedJourneyStructure withPublicCode(String value) {
setPublicCode(value);
return this;
}
public DatedJourneyStructure withLineRef(LineRefStructure value) {
setLineRef(value);
return this;
}
public DatedJourneyStructure withDirectionRef(DirectionRefStructure value) {
setDirectionRef(value);
return this;
}
public DatedJourneyStructure withMode(ModeStructure value) {
setMode(value);
return this;
}
public DatedJourneyStructure withProductCategory(ProductCategoryStructure value) {
setProductCategory(value);
return this;
}
public DatedJourneyStructure withPublishedServiceName(InternationalTextStructure value) {
setPublishedServiceName(value);
return this;
}
public DatedJourneyStructure withTrainNumber(String value) {
setTrainNumber(value);
return this;
}
public DatedJourneyStructure withVehicleRef(VehicleRefStructure value) {
setVehicleRef(value);
return this;
}
public DatedJourneyStructure withOperatorRefs(OperatorRefs_RelStructure value) {
setOperatorRefs(value);
return this;
}
public DatedJourneyStructure withRouteDescription(InternationalTextStructure value) {
setRouteDescription(value);
return this;
}
public DatedJourneyStructure withVia(ServiceViaPointStructure... values) {
if (values!= null) {
for (ServiceViaPointStructure value: values) {
getVia().add(value);
}
}
return this;
}
public DatedJourneyStructure withVia(Collection values) {
if (values!= null) {
getVia().addAll(values);
}
return this;
}
public DatedJourneyStructure withRestricted(Boolean value) {
setRestricted(value);
return this;
}
public DatedJourneyStructure withRestrictionNote(InternationalTextStructure value) {
setRestrictionNote(value);
return this;
}
public DatedJourneyStructure withAttribute(GeneralAttributeStructure... values) {
if (values!= null) {
for (GeneralAttributeStructure value: values) {
getAttribute().add(value);
}
}
return this;
}
public DatedJourneyStructure withAttribute(Collection values) {
if (values!= null) {
getAttribute().addAll(values);
}
return this;
}
public DatedJourneyStructure withOriginStopPointRef(StopPointRefStructure value) {
setOriginStopPointRef(value);
return this;
}
public DatedJourneyStructure withOriginText(InternationalTextStructure value) {
setOriginText(value);
return this;
}
public DatedJourneyStructure withOperatorRef(OperatorRefStructure value) {
setOperatorRef(value);
return this;
}
public DatedJourneyStructure withProductCategoryRef(ProductCategoryRefStructure value) {
setProductCategoryRef(value);
return this;
}
public DatedJourneyStructure withServiceFeatureRef(ServiceFeatureRefStructure... values) {
if (values!= null) {
for (ServiceFeatureRefStructure value: values) {
getServiceFeatureRef().add(value);
}
}
return this;
}
public DatedJourneyStructure withServiceFeatureRef(Collection values) {
if (values!= null) {
getServiceFeatureRef().addAll(values);
}
return this;
}
public DatedJourneyStructure withVehicleFeatureRef(VehicleFeatureRefStructure... values) {
if (values!= null) {
for (VehicleFeatureRefStructure value: values) {
getVehicleFeatureRef().add(value);
}
}
return this;
}
public DatedJourneyStructure withVehicleFeatureRef(Collection values) {
if (values!= null) {
getVehicleFeatureRef().addAll(values);
}
return this;
}
public DatedJourneyStructure withDestinationStopPointRef(StopPointRefStructure value) {
setDestinationStopPointRef(value);
return this;
}
public DatedJourneyStructure withDestinationText(InternationalTextStructure value) {
setDestinationText(value);
return this;
}
public DatedJourneyStructure withUnplanned(Boolean value) {
setUnplanned(value);
return this;
}
public DatedJourneyStructure withCancelled(Boolean value) {
setCancelled(value);
return this;
}
public DatedJourneyStructure withDeviation(Boolean value) {
setDeviation(value);
return this;
}
public DatedJourneyStructure withUndefinedDelay(Boolean value) {
setUndefinedDelay(value);
return this;
}
public DatedJourneyStructure withOccupancy(OccupancyEnumeration value) {
setOccupancy(value);
return this;
}
public DatedJourneyStructure withJourneyRelations(JourneyRelationsStructure value) {
setJourneyRelations(value);
return this;
}
public DatedJourneyStructure withTrainElements(de.vdv.ojp20.siri.MonitoredVehicleJourneyStructure.TrainElements value) {
setTrainElements(value);
return this;
}
public DatedJourneyStructure withTrains(de.vdv.ojp20.siri.MonitoredVehicleJourneyStructure.Trains value) {
setTrains(value);
return this;
}
public DatedJourneyStructure withCompoundTrains(de.vdv.ojp20.siri.MonitoredVehicleJourneyStructure.CompoundTrains value) {
setCompoundTrains(value);
return this;
}
public DatedJourneyStructure withBookingArrangements(BookingArrangementsContainerStructure value) {
setBookingArrangements(value);
return this;
}
public DatedJourneyStructure withReservationNeeded(ReservationNeededEnumeration value) {
setReservationNeeded(value);
return this;
}
public DatedJourneyStructure withSituationFullRefs(SituationRefList value) {
setSituationFullRefs(value);
return this;
}
public DatedJourneyStructure withExtension(Object value) {
setExtension(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);
}
}